Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-07-09 22:51:30

WmAWeevil
Member
Registered: 2022-07-09
Posts: 5

Abandoned: How to add snap application to Whisker Menu?

Sorry, you won't find an answer here. I discovered that I didn't need to solve this because the app was in my distribution's repository - the snap version wasn't needed.


I'm updating from the KeePassX password manager to KeePassXC. I installed KeePassXC with snap. (I've never used snap before.) I can start KeePassXC in a console with
snap run keepassxc
But I would like to have it in the Whisker menu.

I copied my
/usr/share/applications/keepassx.desktop
file to
/usr/share/applications/keepassxc.desktop
and edited it a little. I changed the Name to KeePassXC, and changed the Exec line to
Exec=snap run keepassxc

Now the Whisker menu has an entry for KeePassXC, but when I select that entry, it seems that nothing happens.

I must not have the right Exec line, but what needs to change?

Thanks for any ideas.

Last edited by WmAWeevil (2022-07-10 03:47:18)

Offline

#2 2022-07-10 02:33:29

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Abandoned: How to add snap application to Whisker Menu?

Hello and welcome.

Can you post back the full contents of the desktop file?

Generally, you would add the location of the snap .desktop files to your XDG_DATA_DIRS variable for them to be automatically recognized. So if they are being placed in /var/lib/snapd/desktop/applications, you would add "/var/lib/snapd/desktop" to your XDG_DATA_DIRS environment variable.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2022-07-10 03:42:49

WmAWeevil
Member
Registered: 2022-07-09
Posts: 5

Re: Abandoned: How to add snap application to Whisker Menu?

Thanks very much for the quick reply.

I had overlooked that there is a Debian package for keepassxc, so I removed the snap version and installed the Debian package with apt. It went straight into the Whisker menu. So my problem is solved in an easy way.

I'll be happy to post the .desktop file if you still want to see it (but I'm guessing not).

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 524.55 KiB (Peak: 532.17 KiB) ]