Expose the launched SNAP application in environment variable
Bug #1969783 reported by
Marco Trevisan (Treviño)
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
New
|
Undecided
|
Unassigned |
Bug Description
Snaps may expose multiple applications, and desktop names depend on that.
To be able to figure out what would be the desktop name of a snapped application we should use the `$SNAP_NAME` variable, and that should be joined together with the application name. But there's no such information for us.
So for example running:
snap run fooo.bar --shell
I have environment variables for fooo, but nothing for bar.
I can figure it from /proc/self/cgroup, but I think having a $SNAP_APP env variable would be useful.
To post a comment you must log in.
Ah, `/proc/ self/attr/ current` that would be clearer, isn't readable either.