Op 14-12-11 16:34, Jean-Marc Lasgouttes schreef:
Le 14/12/2011 12:05, Pavel Sanda a écrit :
Cor Blom wrote:
Trunk has now a lyx.desktop file, but what happens when lyx is compiled
with the option "--with-version-suffix=..."? The binary then gets a
suffix,
but in the desktop file the command "lyx", without suffix, is still
found.
For me as a packager (openSUSE) it is no problem to patch the desktop
file
when building with version suffix (which I do only for test/unstable
builds), but is this what you want?
there is no specialist here on the issue, we just did what other
packages are
doing (afaik). i guess just other destionation won't help, you would need
to change also content of the file for proper binding to binary i think.
anyway feel free to post some patch if you feel its important issue...
Having the desktop file autogenerated by autoconf from a lyx.desktop.in
file is not a problem. I just need to know what stuff shall be replaced.
The intention of "--with-version-suffix=xxx" is to be able to have two
lyx installations on the same system. That means own directory
(lyx[suffix]) and own binary (lyx[suffix] and lyxclient[suffix] and
tex2lyx[suffix]). For the desktop file and icons a similar solution is
necessary, because otherwise it is overwriting a previous lyx
installation. This mean that "Name", "Exec" and "Icon" should be changed
according to the version-suffix (don't know about "StartupWMClass", but
probably the same). Also the name of the desktop file and the app icons
should change accordingly: lyx[suffix].png/svg/desktop.
Cor
JMarc