Open FSMaxB opened 6 years ago
Happy to consider a PR.
I don't understand how make install
works for unison to be honest. Usually there is DESTDIR
that can be set for installation directory. But unison doesn't seem to do that. It uses "$(HOME)" instead.
Maybe that should be fixed first. (DESTDIR
could be set to $(HOME)
by default to preserve the existing behavior.
I don't think that many people use "make install," other than me. :-|
Your proposed refinement sounds good.
Actually I gave up for now. This is more complicated than I expected.
It would be easier if:
UISTYLE
. e.g. unison-text
unison-gtk2
make install
, which could just be the filenames from the build stepmake install
These also seem like reasonable refinements. One could retain backward compatibility by copying the latest-built binary (unison-text or whatever) to 'unison'.
The reason we never did something like this is that there are actually just three UI configurations (text, GTK, and the OSX native one); of these, the build and install procedure for the third is separate from the other two, while the GTK configuration supersedes the text one (i.e., it can be used in both ways).
The one from Debian is better IMHO, it properly utilizes GenericName, although needs version string removed or scripted:
[Desktop Entry]
Name=Unison
Comment=GTK interface for the unison file synchronization tool 2.48.4
GenericName=File synchronization tool
Exec=unison-2.48.4-gtk
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=unison-gtk.svg
Categories=Utility;FileTools;GTK;
StartupWMClass=Unison-gtk
StartupNotify=true
It would be great to add a .desktop file by default when installing the GUI version. Look here for an example.
This would also require installing an icon to
/usr/share/pixmaps
. PreferablyU.svg
.