kde-material-you-colors
kde-material-you-colors copied to clipboard
Autostart doesn't work
To Reproduce Steps to reproduce the behavior:
- kde-material-you-colors -a
- Logout and login
Expected behavior Should autostart but it does not
Desktop (please complete the following information): Operating System: Arch Linux KDE Plasma Version: 6.0.80 KDE Frameworks Version: 6.1.0 Qt Version: 6.6.2 Graphics Platform: Wayland
It seems systemd-xdg-autostart-generator doesn't recognize programs from /home/$(whoami)/.local/bin/kde-material-you-colors
not sure if this is new or it's been always like that and I just didn't notice.
Mar 24 14:04:57 archlinux systemd-xdg-autostart-generator[269916]: Exec binary 'kde-material-you-colors' does not exist: No such file or directory
Mar 24 14:04:57 archlinux systemd-xdg-autostart-generator[269916]: /home/luis/.config/autostart/kde-material-you-colors.desktop: not generating unit, executable specified in Exec= does not exist.
Neither does KDE for the Start/Stop launchers
Mar 24 14:08:18 archlinux plasmashell[270865]: org.kde.plasma.runner.services: Failed to resolve executable from service. Error: "Could not find the program 'kde-material-you-colors'"
Mar 24 14:08:21 archlinux plasmashell[270865]: kf.kio.gui: "Could not find the program 'kde-material-you-colors'"
This only happens if the program is installed by pip/pipx (for the current user only).
$ whereis kde-material-you-colors
kde-material-you-colors: /home/luis/.local/bin/kde-material-you-colors
The solution is adding $HOME/.local/bin
to the environment variable used by KDE
- https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s07.html
- https://userbase.kde.org/Session_Environment_Variables
cat $HOME/.config/plasma-workspace/env/path.sh
export PATH=$HOME/.local/bin:$PATH