Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with KDE 5.27.4 #127

Open
ALutz273 opened this issue Nov 21, 2023 · 3 comments
Open

Problem with KDE 5.27.4 #127

ALutz273 opened this issue Nov 21, 2023 · 3 comments

Comments

@ALutz273
Copy link

ALutz273 commented Nov 21, 2023

System:

        #####           hostname
       #######          ------------- 
       ##O#O##          OS: AlmaLinux 9.2 (Turquoise Kodkod) x86_64 
       #######          Host: 21HH002WGE ThinkPad T16 Gen 2 
     ###########        Kernel: 5.14.0-284.30.1.el9_2.x86_64 
    #############       Uptime: 1 day, 2 hours, 56 mins 
   ###############      Packages: 1672 (rpm), 18 (flatpak) 
   ################     Shell: bash 5.1.8 
  #################     Resolution: 3840x1600 
#####################   DE: Plasma 5.27.4 
#####################   WM: kwin 
  #################     Theme: [Plasma], Breeze [GTK2/3] 
                        Icons: [Plasma], breeze-dark [GTK2/3] 
                        Terminal: konsole 
                        CPU: 13th Gen Intel i7-1355U (12) @ 5.000GHz 
                        GPU: Intel Raptor Lake-P [Iris Xe Graphics] 
                        Memory: 14364MiB / 31748MiB 

Errorlog:

Plasma version 'plasmashell 5.27.4
'.
Exception in thread himawaripy-main-thread:
Traceback (most recent call last):
  File "/usr/lib64/python3.9/threading.py", line 980, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.9/threading.py", line 917, in run
    self._target(*self._args, **self._kwargs)
  File "/home/andre/.local/lib/python3.9/site-packages/himawaripy/__main__.py", line 214, in thread_main
    r = set_background(output_file)
  File "/home/andre/.local/lib/python3.9/site-packages/himawaripy/utils.py", line 76, in set_background
    subprocess.check_output(
  File "/usr/lib64/python3.9/subprocess.py", line 424, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib64/python3.9/subprocess.py", line 505, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib64/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib64/python3.9/subprocess.py", line 1821, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'qdbus'

@skyywj
Copy link

skyywj commented Nov 21, 2023 via email

@ALutz273
Copy link
Author

change utils.py an now it works

from:

                try:
                    subprocess.check_output(
                        [
                            "qdbus",
                            "org.kde.plasmashell",
                            "/PlasmaShell",
                            "org.kde.PlasmaShell.evaluateScript",
                            script.format(file_path),
                        ]
                    )

to:

                try:
                    subprocess.check_output(
                        [
                            "qdbus-qt5",
                            "org.kde.plasmashell",
                            "/PlasmaShell",
                            "org.kde.PlasmaShell.evaluateScript",
                            script.format(file_path),
                        ]
                    )

@manjaroer
Copy link

Can you tell me where exactly utils.py is located?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants