pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Adding ~/pkg/share to XDG_DATA_DIRS on Linux



November 18, 2026 at 6:14 AM, leeplusplus%protonmail.com@localhost mailto:leeplusplus%protonmail.com@localhost  wrote:


> 
> Hello NetBSD community,
> 
> Recently, I got pkgsrc working in an unprivileged environment, and I even built (and played) SuperTux with it. However, while I was able to add pkg/bin to my path, allowing me to run apps built with pkgsrc from my terminal, I have yet to find a way to add /pkg/share to my data directories, which would allow me to run pkgsrc apps directly from my GUI app launcher in KDE Plasma. I am running Gentoo with OpenRC. Any help would be greatly appreciated!
> 
> Lee
>

Hi,

Most grahpical launchers search the `$XDG_DATA_DIRS` environment variable for .desktop files (see https://specifications.freedesktop.org/desktop-entry/latest/file-naming.html). Setting something like `export XDG_DATA_DIRS=/home/username/pkg/share:/usr/local/share:/usr/share` should do the trick. Not sure on where to put this though especially if you're not just using a window manager but im sure that this is somehow possible. I've put this into `$HOME/.bash_profile` and fuzzel (my application launcher) was happy about it.

Hope this somehow helped :)

Best regards,
Ivan


Home | Main Index | Thread Index | Old Index