flatpak / flatpak-xdg-utils

Simple portal-based commandline tools for use inside flatpak sandboxes
GNU Lesser General Public License v2.1
34 stars 14 forks source link

Doesn't provide xdg-icon-resource or xdg-desktop-menu #35

Closed wjt closed 4 years ago

wjt commented 4 years ago

I am attempting to update the Tuxpaint Flatpak. The latest version uses these two tools to install icons & desktop files to the correct locations; however, they are not available in the SDK.

Of course, I can install (and clean up) the real ones. But perhaps providing the latter would be a way to, in future, support applications exporting new desktop files at runtime?

TingPing commented 4 years ago

Until such a portal exists I see no reason for those tools to exist here.

wjt commented 4 years ago

The runtime portal use case was secondary, in my mind. The primary goal was:

So I gave up and patched the build system to use install. I don't know how widespread usage of these is in build scripts – probably not very.

Mailaender commented 2 years ago

Transcribe, Calibre and SameBoy use these commands as well. Instead of patching you can also compile your own xdg-utils.

Mailaender commented 2 years ago

Nevermind it doesn't work:

xdg-desktop-menu install --novendor --mode system FreeDesktop/sameboy.desktop xdg-desktop-menu: No writable system menu directory found. make: [Makefile:508: install] Error 3 (ignored)