You are not logged in.

#1 2022-10-15 20:57:16

JasonMehmel
Member
Registered: 2015-10-06
Posts: 186

Getting Snap to be listed among available commands / programs

I'm using Snap to get the most up to date versions of a few of the programs I'm using.

Acknowledging the debate of Snap in general...

How can I get the terminal to automatically include Snap programs when it's looking for commands?

I know I can do:

snap run [program]

And I can use this as a way to get the snap commands available in the terminal:

export PATH=$PATH:/snap/bin

But those commands still aren't showing up when I try to tab-autocomplete in the terminal. They're also not showing up with alt-F2 or in the programs that autocomplete from the Super-Main Menu functionality.

I'd love to not have to take this extra step running programs via Snap!


Fortune favours the bold.
ThinkPad T15 Gen 2i

Offline

#2 2022-10-17 09:05:16

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,746

Re: Getting Snap to be listed among available commands / programs

As of tab autocomplete, the only thing I can think of right now is to check if /snap/bin/someapps are marked as executable.

file /snap/bin/something

should tell you something.

Offline

#3 2022-10-17 11:39:58

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

Re: Getting Snap to be listed among available commands / programs

In my boxes, directory /snap/bin/ contains symlinks to /usr/bin/snap.

Usually I start snaps from terminal. In terminal autocompletion works for snaps, but not in gmrun.
Creating a symlink for cherrytree in ~/bin, makes auto-completion work in gmrun.
Command "which cherrytree", now points to $HOME/bin/cherrytree, instead of /snap/bin/cherrytree.


// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

Board footer

Powered by FluxBB