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
412 stars 6 forks source link

Autostart not working #214

Closed chrostino closed 4 months ago

chrostino commented 4 months ago

Describe the bug as per title, the program doesn't autostart. kde-material-you-colors --autostart gives:

kde-material-you-colors --autostart
[W] utils: copy_user_files: Replacing /home/brudda/.config/autostart/kde-material-you-colors.desktop
[D] utils: update_desktop_entry: Updating Exec /home/brudda/.config/autostart/kde-material-you-colors.desktop
[D] utils: update_desktop_entry: Updating link /usr/local/bin/kde-material-you-colors -> /home/brudda/.local/bin/kde-material-you-colors

so I went investigating in the mentioned directories and found that the file /usr/local/bin/kde-material-you-colors doesn't exist, though I am still able to manually start the program with the terminal or through the widget

Desktop (please complete the following information):

Additional context I installed kde-material-you-colors following the instructions for Fedora 40 with the copr repository

luisbocanegra commented 4 months ago

Hmm in Fedora the sysconfig.get_path("scripts") returns /usr/local/bin/ but on Arch returns /usr/bin/ so it needs to be updated so it returns the correct location (/usr/bin/) on both

https://github.com/luisbocanegra/kde-material-you-colors/blob/0d81481dc34cc9536f748c18949e1d019440f745/src/kde_material_you_colors/settings.py#L16

sysconfig documentation https://docs.python.org/3/library/sysconfig.html