Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support .desktop files #1489

Open
Enn3Developer opened this issue Oct 24, 2024 · 3 comments
Open

Support .desktop files #1489

Enn3Developer opened this issue Oct 24, 2024 · 3 comments
Labels
feature request New feature or request

Comments

@Enn3Developer
Copy link

It'd be nice if one can configure the shell installer to create a .desktop file on Linux, especially for GUI applications

@ashleygwilliams
Copy link
Member

hey @Enn3Developer! that's a cool request- while it's not currently something we can prioritize, we would totally accept a PR for it- and are happy to help point you in the right direction either here or on our discord (https://discord.gg/XAFG6xSZ).

are you shipping some GUI applications? always love to hear what people are shipping with dist!

@ashleygwilliams ashleygwilliams added the feature request New feature or request label Oct 28, 2024
@Enn3Developer
Copy link
Author

Yes, it's a music player and I found that dist simplifies my release workflow.
I already joined the discord so we could continue there

@duckinator
Copy link
Contributor

I think it makes sense to leverage XDG here, since we're already looking to do so in #287 and it provides a well-defined path for user-installed .desktop files.

  • $XDG_DATA_HOME defaults to $HOME/.local/share.
  • .desktop files would go under $XDG_DATA_HOME/applications.

The main catch here is .desktop files usually reference icons. As best I can tell, the most portable way is to provide an icon yourself and specify an absolute path to it. The freedesktop.org desktop entry spec implies that you can't use e.g. an inlined base64-encoded image file, or at least can't guarantee that'll work. (Which is rather unfortunate.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants