Enrico Forestieri
2014-05-06 16:10:39 UTC
I have problems using lyx.desktop in the existing form. Changing all paths to
absolute cures it for me, but I am unsure about the effect it may have on
autoconf build.
Also the .desktop here (on linux) has to have set the executable flag,
otherwise it is not usable.
What? .desktop files are only useful for desktop environments andabsolute cures it for me, but I am unsure about the effect it may have on
autoconf build.
Also the .desktop here (on linux) has to have set the executable flag,
otherwise it is not usable.
certainly they don't need to be executable.
I propose the appended changes.
Kornel
[...]Kornel
@@ -4,9 +4,9 @@ Type=Application
Name=LyX
GenericName=Document Processor
Comment=High level LaTeX frontend
StartupNotify=false
StartupWMClass=Lyx
Terminal=false
This is the most wrong thing you could do. In this way you disallowName=LyX
GenericName=Document Processor
Comment=High level LaTeX frontend
StartupNotify=false
StartupWMClass=Lyx
Terminal=false
having a script with same name early in the PATH for performing some
customization or workaround bugs/deficiencies.
Currently, without the full path in the .desktop file, when I click
on a LyX document in the GUI, this is the command that is executed:
--8<--------8<---------
$ cat ~/bin/lyx
#!/bin/sh
quoted=""
while [ $# -ne 0 ]; do
quoted="$quoted \"$1\""
shift
done
eval exec /usr/bin/lyx -geometry 910x870-4-7 $quoted
--8<--------8<---------
Using a full path in the .desktop file would upset me ;)
--
Enrico
Enrico