Open colinxs opened 2 years ago
This was supported before the Rust rewrite: https://github.com/pop-os/shell/commit/2fb9c406e975c718d2d05a63dc2f69772f25c081
It looks like Nix support was recently hardcoded, but the latest release is too old to include that change. I'd personally still like to see XDG_DATA_DIRS
and XDG_DATA_HOME
support. I ran into this when I added a directory I had just made up out of thin air only to see my desktop entries show up in the applications overview and not the launcher. For now I added my own hardcoded path, compiled the plugin, and stuck it at ~/.local/share/pop-launcher/plugins/desktop_entries/
to work around the issue.
PRs #764, #1005, #1018 look to have added this flexibility to the previous implementation and removed the hardcoded paths. @mmstick, would you be interested in something similar for the rust implementation?
@reddraggone9 could you please share your workaround?
@felkal This issue was resolved with pop-launcher version 1.2.0 and should be closed. My workaround is no longer necessary. Specifically, https://github.com/pop-os/freedesktop-desktop-entry/pull/3 added XDG_DATA_DIRS
support, and launcher version 1.2.0 was released 13 days ago including the updated desktop entries plugin. You can check your installed version using dpkg -s pop-launcher
and, if necessary, update your system.
(1) Issue/Bug Description:
I use Nix as a package manager on PopOS, which installs packages to
~/.nix-profile
. Desktop entries live at~/.nix-profile/share/applications
. These applications do not appear in the launcher.XDG_DATA_DIRS
is correctly set and includes~/.nix-profile/share
.It appears the issue stems from this code which ignores
XDG_DATA_DIRS
.Issue was originally filed at nix-community/home-manager#1439 but it looks like the bug is with pop-os/shell.
Ubuntu's "Show Applications" window correctly finds all the desktop entries in
XDG_DATA_DIRS
.(2) Steps to reproduce (if you know):
(3) Expected behavior:
All desktop entries found in
XDG_DATA_DIRS
should appear in the launcher.(4) Distribution (run
cat /etc/os-release
):(5) Gnome Shell version:
(6) Pop Shell version (run
apt policy pop-shell
or provide the latest commit if building locally):(7) Where was Pop Shell installed from:
ISO from website.
(8) Monitor Setup (2 x 1080p, 4K, Primary(Horizontal), Secondary(Vertical), etc):
N/A
(9) Other Installed/Enabled Extensions:
N/A
(10) Other Notes: