bcpierce00 / unison

Unison file synchronizer
GNU General Public License v3.0
4.17k stars 235 forks source link

Add a .desktop file #162

Open FSMaxB opened 6 years ago

FSMaxB commented 6 years ago

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. Preferably U.svg.

bcpierce00 commented 6 years ago

Happy to consider a PR.

FSMaxB commented 6 years ago

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.

bcpierce00 commented 6 years ago

I don't think that many people use "make install," other than me. :-|

Your proposed refinement sounds good.

FSMaxB commented 6 years ago

Actually I gave up for now. This is more complicated than I expected.

FSMaxB commented 6 years ago

It would be easier if:

bcpierce00 commented 6 years ago

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).

Vladimir-csp commented 5 years ago

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