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

Feature Request - Implementation for Plasma desktop #27

Open
lordman opened this issue Aug 7, 2020 · 2 comments
Open

Feature Request - Implementation for Plasma desktop #27

lordman opened this issue Aug 7, 2020 · 2 comments

Comments

@lordman
Copy link

lordman commented Aug 7, 2020

Currently the app is only implemented for GNOME, MATE and Cinnamon desktops. It would be great if the necessary developments were made in order it could also work in Plasma desktop.

@atareao
Copy link
Owner

atareao commented Feb 11, 2021

Updated. Plase @lordman test it

@lordman
Copy link
Author

lordman commented Jul 27, 2021

Hi @atareao

I get the following issue when installing from the repo and running from the terminal:

$ daily-wallpaper 
[Errno 2] No translation file found for domain: 'daily-wallpaper'
Traceback (most recent call last):
  File "/usr/share/daily-wallpaper/main.py", line 219, in on_realize
    scale = monitor.get_scale_factor()
AttributeError: 'NoneType' object has no attribute 'get_scale_factor'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
    with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_bin_daily-wallpaper.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/share/daily-wallpaper/main.py", line 219, in on_realize
    scale = monitor.get_scale_factor()
AttributeError: 'NoneType' object has no attribute 'get_scale_factor'

Note I got this error just opening the program, and when I click on "Change now" button apparently nothing happens (the wallpaper is not changed nor do I receive any message through the terminal ).

I am investigating the offending code

    def on_realize(self, *_):
        monitor = Gdk.Display.get_primary_monitor(Gdk.Display.get_default())
        scale = monitor.get_scale_factor()

to try to figure it out what can be the issue, if I got any useful information I will let you know.

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

2 participants