wrappers: add new X-Snap-Exec=$snap.$app support to .desktop files #1943

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Collaborator

mvo5 commented Sep 19, 2016

Strawman branch based on feedback from seb128 about the challenges of upstream packaging of gtk apps.

This allows upstreams to have a desktop file that contains
both the traditional Exec= line as well as a snap specific way
to start the app. This should make it easy to use the upstream
desktop file directly in meta/gui/.

This allows to write:

[Desktop Entry]
Name=Something
Exec=/usr/bin/non-snap-way to-start-the-thing
X-Snap-Exec=snap.app that-starts-the-thing
Add new X-Snap-Exec=$snap.$app support to .desktop files
This allows upstreams to have a desktop file that contains
both the traditional Exec= line as well as a snap specific way
to start the app. This should make it easy to use the upstream
desktop file directly in meta/gui/.

This allows to write:
```
[Desktop Entry]
Name=Something
Exec=/usr/bin/non-snap-way to-start-the-thing
X-Snap-Exec=snap.app that-starts-the-thing
```
Contributor

seb128 commented Sep 19, 2016

thanks for the work, unsure that's the right way though

What Sergio suggested on IRC was to have the declaration in the snapcraft.yaml and let you redefine the exec there

Not having to change the upstream desktop would make things easier

@mvo5 mvo5 closed this Sep 19, 2016

Collaborator

mvo5 commented Sep 19, 2016

Closing as requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment