davatorium / rofi

Rofi: A window switcher, application launcher and dmenu replacement
https://davatorium.github.io/rofi/
Other
13.06k stars 608 forks source link

Cannot See Snap/Snapcraft Packages/Apps in Rofi #964

Closed Arszilla closed 5 years ago

Arszilla commented 5 years ago

Version

Version: 1.5.2

Configuration

rofi -help

Launch Command

$mod+d exec rofi -show run -lines 3 -eh 2 -width 100 -padding 800 -opacity "85" -bw 0 -bc "$bg-color" -bg "$bg-color" -fg "$text-color" -hlbg "$bg-color" -hlfg "#9575cd" -font "Hack Nerd Font 15"

Steps to reproduce

Install spotify via snapd using sudo snap install spotify

What behaviour you see

I don't see spotify in rofi -show run

What behaviour you expect to see

To see spotify in rofi -show run

DaveDavenport commented 5 years ago

Are the snaps in your $PATH? Can you post the content of your $PATH?

DaveDavenport commented 5 years ago

For drun mode check if your XDG_DATA_DIRS is setup correctly to include the snap desktop files:

XDG_DATA_DIRS=/usr/share/:/usr/local/share/:/var/lib/snapd/desktop
Arszilla commented 5 years ago

echo $PATH returns this: /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl

For drun mode check if your XDG_DATA_DIRS is setup correctly to include the snap desktop files:

XDG_DATA_DIRS=/usr/share/:/usr/local/share/:/var/lib/snapd/desktop

Not sure how can I do that

DaveDavenport commented 5 years ago

That looks like snap (normally in /snap/bin/ ) is not in your PATH.

You need to fix your PATH. Best is to check with your distribution support to see what the best way to do this.

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.