From 4440730bf38b79039e3d0ea9c72ce6e82b790be6 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Sat, 15 May 2021 14:52:18 +0300 Subject: [PATCH] Use -desktop to launch matlab from desktop --- flake.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 262572f..4b855ae 100644 --- a/flake.nix +++ b/flake.nix @@ -32,7 +32,9 @@ desktopName = "Matlab"; name = "matlab"; # We use substituteInPlace after we run `install` - exec = "@out@/bin/matlab %F"; + # -desktop is needed, see: + # https://www.mathworks.com/matlabcentral/answers/20-how-do-i-make-a-desktop-launcher-for-matlab-in-linux#answer_25 + exec = "@out@/bin/matlab -desktop %F"; icon = "matlab"; # Most of the following are copied from octave's desktop launcher categories = "Utility;TextEditor;Development;IDE;";