luisbocanegra / kde-material-you-colors

Automatic color scheme generator from your wallpaper for KDE Plasma powered by Material You
https://store.kde.org/p/2136963
GNU General Public License v3.0
378 stars 6 forks source link

Autostart doesn't work #193

Closed luisbocanegra closed 5 months ago

luisbocanegra commented 6 months ago

To Reproduce Steps to reproduce the behavior:

  1. kde-material-you-colors -a
  2. 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

luisbocanegra commented 6 months ago

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

cat $HOME/.config/plasma-workspace/env/path.sh
export PATH=$HOME/.local/bin:$PATH