GNOME Snap Manager extension

Hi,

Currently to be reviewed (unfortunately just after Dash to Panel v40 !):
https://extensions.gnome.org/review/19813

This is a simple popup menu in the top bar to do the usual snap actions. Tell me if you see something to add/change (if it’s not too complicated for me…).

I find it handy. I earn one auto-like. :blush:

Edit: now available through the GNOME Extensions website
https://extensions.gnome.org/extension/3715/snap-manager/
with the new Yaru’s upcoming Snap symbolic icon :wink: .

6 Likes

Neat! I have a couple of suggestions!
snap refresh --list which lists updates before they happen. Handy to see what’s going to update before you actually hit refresh.
snap refresh --time which shows when the next update is due to occur.
snap set system refresh.hold=$(date --iso-8601=seconds -d "60 minutes") (requires sudo / pkexec) - this defers updates for an hour. Could have a set of options like 1 hour, 1 day, 1 week.

Here it is:
https://extensions.gnome.org/review/19817
or
https://github.com/fthx/snap-manager

If you think to some other useful commands, you’re welcome. It has to stay somewhat simple because anyone will use directly a terminal for complex stuff?

OK, the extension v2 is now published here:
https://extensions.gnome.org/extension/3715/snap-manager/

BUT I had a nasty surprise (my fault, I should have checked that): your snap set system commands do not work without sudo. The other ones (refresh, install…) do display a nice Gnome Shell password popup, so I was confident. I know that I should never be confident in bash because I’m low-shkilled. So there’s a v3 pending:
https://extensions.gnome.org/review/19820
Edit: already reviewed!

(I’d like to know WHY snap set system do behave not like some other snap commands ? Thanks!)

you shoudl probably ask that to the snapd developers over at forum.snapcraft.io

2 Likes

v4 with a proper Refresh submenu (hold refresh, cancel hold, schedule).

https://extensions.gnome.org/review/19847
or
https://github.com/fthx/snap-manager

I asked Yaru team about creating a Snap symbolic icon:
https://github.com/ubuntu/yaru/issues/2403

1 Like

Well, I made a sort of symbolic icon. Being reviewed. Uploaded to github.
edit: community made a nice svg icon, so using it.

2 Likes

@popey

The v8 is reviewed and online. Does the refresh menu match your suggestions? Do you see anything to change/upgrade/add? The “Change channel” item has been refined too with adding available channels.

Ideally I’d like to display results in a nice GS popup but I don’t know how to send these results from terminal output to popup.

1 Like