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

[Ubuntu 20.04] Wallpaper not change #96

Open
juanwulu opened this issue Jun 29, 2022 · 18 comments
Open

[Ubuntu 20.04] Wallpaper not change #96

juanwulu opened this issue Jun 29, 2022 · 18 comments

Comments

@juanwulu
Copy link

Hello there, thanks for the amazing repository.

It's not working on my Ubuntu 20.04 here, and as required the output of $DESKTOP_SESSION is

$ echo $DESKTOP_SESSION
ubuntu

In addition, my system runs on Linux 5.14.0-1042-oem and has applied a custom gnome-look theme.

Thank you.

@Roigo21
Copy link

Roigo21 commented Jul 24, 2022

Since you have a custom gnome-look theme, that can be causing the issue, i think that the theme is dark based and uses the dark colors of gnome. The way to fix is:

Go to /usr/bin in the terminal and open as sudo the file 'dwall' (with a text editor for your choice). Then look for the part of the code where gnome is talked about, (here: elif [[ "$DESKTOP_SESSION" =~ ^(PANTHEON|Pantheon|pantheon|GNOME|Gnome|gnome|Gnome-xorg|gnome-xorg|UBUNTU|Ubuntu|ubuntu|DEEPIN|Deepin|deepin|POP|Pop|pop)$ ]]; then), then the line after this is you have a SETTER... statement, look for the last word in that line which is picture-uri and just change it to picure-uri-dark, looking like this:
SETTER="gsettings set org.gnome.desktop.background picture-uri-dark", then I think it should be fixed

dont mind about the format of the post, im new on github

@juanwulu
Copy link
Author

Since you have a custom gnome-look theme, that can be causing the issue, i think that the theme is dark based and uses the dark colors of gnome. The way to fix is:

Go to /usr/bin in the terminal and open as sudo the file 'dwall' (with a text editor for your choice). Then look for the part of the code where gnome is talked about, (here: elif [[ "$DESKTOP_SESSION" =~ ^(PANTHEON|Pantheon|pantheon|GNOME|Gnome|gnome|Gnome-xorg|gnome-xorg|UBUNTU|Ubuntu|ubuntu|DEEPIN|Deepin|deepin|POP|Pop|pop)$ ]]; then), then the line after this is you have a SETTER... statement, look for the last word in that line which is picture-uri and just change it to picure-uri-dark, looking like this:
SETTER="gsettings set org.gnome.desktop.background picture-uri-dark", then I think it should be fixed

dont mind about the format of the post, im new on github

Thanks for the quick reply. After the change I got the No such key error:

Screenshot from 2022-07-28 00-27-56

What might be the cause of this issue?

@Roigo21
Copy link

Roigo21 commented Jul 28, 2022 via email

@juanwulu
Copy link
Author

juanwulu commented Aug 1, 2022

what changes have you done, and where? A qui, 28 de jul de 2022, 08:31, David Juanwu Lu @.> escreveu:

Since you have a custom gnome-look theme, that can be causing the issue, i think that the theme is dark based and uses the dark colors of gnome. The way to fix is: Go to /usr/bin in the terminal and open as sudo the file 'dwall' (with a text editor for your choice). Then look for the part of the code where gnome is talked about, (here: elif [[ "$DESKTOP_SESSION" =~ ^(PANTHEON|Pantheon|pantheon|GNOME|Gnome|gnome|Gnome-xorg|gnome-xorg|UBUNTU|Ubuntu|ubuntu|DEEPIN|Deepin|deepin|POP|Pop|pop)$ ]]; then), then the line after this is you have a SETTER... statement, look for the last word in that line which is picture-uri and just change it to picure-uri-dark, looking like this: SETTER="gsettings set org.gnome.desktop.background picture-uri-dark", then I think it should be fixed dont mind about the format of the post, im new on github Thanks for the quick reply. After the change I got the No such key error: [image: Screenshot from 2022-07-28 00-27-56] https://user-images.githubusercontent.com/45930715/181447116-438d3d46-0224-4bad-8c09-c7f2a721f425.png What might be the cause of this issue? — Reply to this email directly, view it on GitHub <#96 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASMAVECRH7PIG4N75JBPWPLVWIZOHANCNFSM52D6IC3A . You are receiving this because you commented.Message ID: @.
>

I followed the steps you mentioned and changed SETTER="gsettings set org.gnome.desktop.background picture-uri" into SETTER="gsettings set org.gnome.desktop.background picture-uri-dark" in the dwall file.

@Roigo21
Copy link

Roigo21 commented Aug 1, 2022 via email

@Roigo21
Copy link

Roigo21 commented Aug 1, 2022

you need to change in usr/bin, locate it there and open it with an editor, and make the changes, then go to terminal and try to use dwall

@Roigo21
Copy link

Roigo21 commented Aug 1, 2022

oh nevermind, I totally forgot that I told you already the path, then i dont know how it can be fixed, maybe, try with gnome dark theme to change the wallpaper, if it works, you know the problem.

@juanwulu
Copy link
Author

juanwulu commented Aug 5, 2022

oh nevermind, I totally forgot that I told you already the path, then i dont know how it can be fixed, maybe, try with gnome dark theme to change the wallpaper, if it works, you know the problem.

Thanks for following up. I've been using the dark theme the whole time. FYI, I'm now testing on Ubuntu 22.04 LTS with similar settings and it doesn't work as well.

@Roigo21
Copy link

Roigo21 commented Aug 5, 2022 via email

@Roigo21
Copy link

Roigo21 commented Oct 11, 2022 via email

@rarahim75
Copy link

Go to /usr/bin in the terminal and open as sudo the file 'dwall' (with a text editor for your choice). Then look for the part of the code where gnome is talked about, (here: elif [[ "$DESKTOP_SESSION" =~ ^(PANTHEON|Pantheon|pantheon|GNOME|Gnome|gnome|Gnome-xorg|gnome-xorg|UBUNTU|Ubuntu|ubuntu|DEEPIN|Deepin|deepin|POP|Pop|pop)$ ]]; then), then the line after this is you have a SETTER... statement, look for the last word in that line which is picture-uri and just change it to picure-uri-dark, looking like this:
SETTER="gsettings set org.gnome.desktop.background picture-uri-dark", then I think it should be fixed

This did the trick for me.. it would be nice if this was mentioned somewhere in the setup guide. Would this be worth a PR?

@WillRun4Cake
Copy link

WillRun4Cake commented Apr 19, 2023

I was using Dark theme in Ubuntu 20.04 and experienced this same issue. I changed the theme to Light theme and now I am able to change the background:

gsettings set org.gnome.desktop.background picture-uri file:///path/to/my/image.jpg

@Roigo21
Copy link

Roigo21 commented Apr 20, 2023 via email

@WillRun4Cake
Copy link

@Roigo21, thank you so much! This is exactly what I needed.

@Roigo21
Copy link

Roigo21 commented Apr 20, 2023 via email

@WillRun4Cake
Copy link

WillRun4Cake commented Apr 22, 2023

I observed no ill effects from issuing both variations in succession, e.g.

gsettings set org.gnome.desktop.background picture-uri "file:///path/to/my/image.jpg"

gsettings set org.gnome.desktop.background picture-uri-dark "file:///path/to/my/image.jpg"

So no need to detect light or dark theme in this scenario.

@Roigo21
Copy link

Roigo21 commented Apr 24, 2023 via email

@jmellodev
Copy link

I carried out all these procedures and there was no change, but I realized that at the end of the session the dynamic wallpaper is "underneath" the normal wallpaper.
Ubuntu 22.04
Gnome

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

5 participants