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
please provide the output of `which snap` and `echo $PATH` from your normal session as well as the Plasma snap session.
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.
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?
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!
$ ls /usr/bin/snap /usr/bin/snap The directory exists.
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.
Cross-posted to https://forum.snapcraft.io/t/cant-run-snap-commands-in-konsole-on-plasma-snap/9484
Problem with snapd itself, or rather, deficiency. What snapd needs is an interface to launch other snaps.