Bug 402264 - Snap commands don't work in Konsole
Summary: Snap commands don't work in Konsole
Status: RESOLVED UPSTREAM
Alias: None
Product: neon
Classification: KDE Neon
Component: Snaps (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Harald Sitter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-17 22:45 UTC by Ads20000
Modified: 2019-04-01 10:17 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ads20000 2018-12-17 22:45:29 UTC
SUMMARY
One can't run snap commands in Konsole in the KDE snap session, nor can one run snaps in that session from the application menu.

STEPS TO REPRODUCE
1. Run `snap install --edge --devmode plasma-desktop` on a snap-enabled system.
2. Run `sudo wget https://metadata.neon.kde.org/snap/plasma-snap.desktop -O /usr/share/xsessions/plasma-snap.desktop`
3. Log out of your current session and log into Plasma (snap)
4. Press Ctrl+Alt+T
5. Run `snap version`

OBSERVED RESULT
`bash: snap: command not found` or something like that!

EXPECTED RESULT
One can run `snap` commands in Konsole and they function as normal.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 18.10, core 2.36.3+git1063.bbf4a49~ubuntu16.04.1 (6148)  [edge]
(available in About System)
KDE Plasma Version: master+3ffadd6 (4) [edge]
KDE Frameworks Version: 5.47.0 (27) [stable]
Qt Version: unsure

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2018-12-27 03:22:07 UTC
please provide the output of `which snap` and `echo $PATH` from your normal session  as well as the Plasma snap session.
Comment 2 Ads20000 2018-12-28 01:32:52 UTC
Ubuntu session:
```
$ which snap
/usr/bin/snap
$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/var/lib/snapd/snap/bin
```

Plasma snap session:
```
$ which snap
$ echo $PATH
/snap/plasma-desktop/4/kinit/usr/lib/x86_64-linux-gnu/libexec/kf5/:/home/adam/snap/plasma-desktop/common/bin:/snap/plasma-desktop/4:/snap/plasma-desktop/4/kinit/usr/bin:/snap/plasma-desktop/4//usr/bin:/snap/plasma-desktop/4//usr/sbin:/snap/plasma-desktop/4/usr/sbin:/snap/plasma-desktop/4/usr/bin:/snap/plasma-desktop/4/sbin:/snap/plasma-desktop/4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
```

`which snap` has no output in the Plasma session.
Comment 3 Nate Graham 2018-12-28 03:48:13 UTC
Thanks for the info! When you're in the Plasma snap session, does `/usr/bin/snap` actually exist on the system? What does `ls /usr/bin/snap` say?
Comment 4 Bug Janitor Service 2019-01-12 04:33:13 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Ads20000 2019-01-16 02:44:23 UTC
$ ls /usr/bin/snap
/usr/bin/snap

The directory exists.
Comment 6 Nate Graham 2019-01-16 03:14:38 UTC
Very strange.

/usr/bin/snap exists. It's in your $PATH. Yet `which` can't find it, and neither can anything else.

I have no idea what could be causing this.
Comment 8 Harald Sitter 2019-04-01 10:17:21 UTC
Problem with snapd itself, or rather, deficiency. What snapd needs is an interface to launch other snaps.