gnustep / tools-make

The makefile package is a simple, powerful and extensible way to write makefiles for a GNUstep-based project.
https://www.gnustep.org/
GNU General Public License v3.0
27 stars 43 forks source link

Install desktop files of applications #40

Open ethanc8 opened 7 months ago

ethanc8 commented 7 months ago

Hello, is it possible for GNUstep make to install the desktop files of applications that include a .desktop file in ${appname}.app/Resources/${appname}.desktop? Therefore, the user wouldn't have to manually copy it to /usr/local/share/applications or ~/.local/share/applications.

rfm commented 7 months ago

Yes gnustep-make supports installing app resources. For instance if your app is called MyApp MyApp_RESOURCE_FILES = MyApp.desktop would install your desktop file as you suggest.

ethanc8 commented 7 months ago

The issue is that desktop files must be installed to a global location to be discovered by the desktop environment. This is a consequence on the non-Mac way of doing things where all files are grouped by purpose rather than by application.

rfm commented 7 months ago

Well obviously, it's make, so adding a rule to your makefile to install particular files to a fixed location is documented, with an example template GNUmakefile.postamble, but I guess that's not what you mean. Perhaps you are wanting to grab information from other people's apps, but that's really not the role of gnustep-make, so it seems unlikely too. Maybe someone else will better understand what you are asking for and be more able to help.