oskarsh / Yin-Yang

Auto Nightmode for KDE, Gnome, Budgie, VSCode, Atom and more
MIT License
635 stars 52 forks source link

YY run from CLI crashes but GUI is OK #318

Open noyannus opened 21 hours ago

noyannus commented 21 hours ago

What happened?

YY, when called from CLI crashes, the GUI (started from launcher) runs OK.

Version

3.4 latest, built as instructed in README

How did you install Yin & Yang?

Git clone + running install script

What desktop environments are you seeing the problem on?

KDE

Which plugin causes the issue?

None

What software version do you use?

No response

Relevant log output

CLI call:

localhost% yin-yang --debug --systemd
Plugin Icons has no support for your desktop environment yet!
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/opt/yin-yang/yin_yang/__main__.py", line 16, in <module>
from yin_yang import daemon_handler
File "/opt/yin-yang/yin_yang/daemon_handler.py", line 7, in <module>
from .config import ConfigWatcher, config
File "/opt/yin-yang/yin_yang/config.py", line 482, in <module>
for pl in filter(lambda pl: pl.available, plugins):
File "/opt/yin-yang/yin_yang/config.py", line 482, in <lambda>
for pl in filter(lambda pl: pl.available, plugins):
^^^^^^^^^^^^
File "/opt/yin-yang/yin_yang/plugins/_plugin.py", line 167, in available
return self.check_command([self.command[0], '--help'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/yin-yang/yin_yang/plugins/_plugin.py", line 156, in check_command
subprocess.check_call(command, stdout=subprocess.DEVNULL)
File "/usr/lib64/python3.11/subprocess.py", line 408, in check_call
retcode = call(*popenargs, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/subprocess.py", line 389, in call
with Popen(*popenargs, **kwargs) as p:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib64/python3.11/subprocess.py", line 1955, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: 'kvantummanager'

GUI, started by launcher:

# journalctl -b | grep yin-yang
Nov 22 19:15:57 localhost.localdomain yin-yang[275794]: Plugin Icons has no support for your desktop environment yet!
noyannus commented 8 hours ago

Forgot the system info.

Operating System: openSUSE Tumbleweed-Slowroll 20241103 KDE Plasma Version: 6.2.3 KDE Frameworks Version: 6.7.0 Qt Version: 6.8.0 Kernel Version: 6.11.6-2-default (64-bit) Graphics Platform: X11