Cannot change lock screen background on Ubuntu 18.04












2















Before you mark the question as a duplicate, I read all of the posts regarding this, but nothing helped me. I'd like to change the background picture of the lock screen.



I changed the ubuntu.css and gdm3.css accordingly to



#lockDialogGroup {
background: #000000 url(file:///usr/share/wallpapers/minimalistic-gray_00323985.jpg);
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}


Which results in a change of the Background of the log in screen, not the lock screen. When I press super + L the screen containing time has the correct background. When I swipe it up to tipe in my password, the purple Ubuntu screen still appears. If I click to change the user, the log in screen appears with the right background. I have the same background picture enabled in gnome tweaks for desktop background and lock screen.



I'm running Ubuntu 18.04 GNOME on a TuXedo Laptop. And I use Communitheme - maybe thats the problem?



Any ideas why it doesn't work? (I rebooted multiple times, so that's not the problem.)



EDIT: The output of sudo nano /usr/share/gnome-shell/modes/ubuntu.json is



{
"parentMode": "user",
"stylesheetName": "ubuntu.css",
"enabledExtensions": ["ubuntu-dock@ubuntu.com", "ubuntu-appindicators@ubuntu.com"]
}









share|improve this question

























  • @PRATAP Exactly, thats the picture I want to use. Hm, I can change the appearance of the background and lock screen both in settings and gnome-tweaks. I'm not a 100 percent sure, how it's called on your system since mine is in german, but it should be something like Appearance in gnome-tweaks.

    – jeypeu
    Dec 9 '18 at 12:54











  • I bought it last week, so I assume it's a fresh install. I changed the file, but unfortunately it changes nothing. Maybe it's because I use Communitheme? Or maybe, because it says I don't have the extension installed to change the Shell theme?

    – jeypeu
    Dec 9 '18 at 13:10











  • @PRATAP See the updated question above.

    – jeypeu
    Dec 9 '18 at 14:17











  • while i was trying to solve similar question.. i got a clue why it didn't work.. can you please let me know how did you instaall that Communitheme.. snap install or PPA and APT install?

    – PRATAP
    Mar 5 at 16:38






  • 1





    snap and apt are two different things.. you can get differences easily by googling.. you can check by opening snap file in the below answer and see the color which is showing at lock screen..

    – PRATAP
    Mar 7 at 7:32
















2















Before you mark the question as a duplicate, I read all of the posts regarding this, but nothing helped me. I'd like to change the background picture of the lock screen.



I changed the ubuntu.css and gdm3.css accordingly to



#lockDialogGroup {
background: #000000 url(file:///usr/share/wallpapers/minimalistic-gray_00323985.jpg);
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}


Which results in a change of the Background of the log in screen, not the lock screen. When I press super + L the screen containing time has the correct background. When I swipe it up to tipe in my password, the purple Ubuntu screen still appears. If I click to change the user, the log in screen appears with the right background. I have the same background picture enabled in gnome tweaks for desktop background and lock screen.



I'm running Ubuntu 18.04 GNOME on a TuXedo Laptop. And I use Communitheme - maybe thats the problem?



Any ideas why it doesn't work? (I rebooted multiple times, so that's not the problem.)



EDIT: The output of sudo nano /usr/share/gnome-shell/modes/ubuntu.json is



{
"parentMode": "user",
"stylesheetName": "ubuntu.css",
"enabledExtensions": ["ubuntu-dock@ubuntu.com", "ubuntu-appindicators@ubuntu.com"]
}









share|improve this question

























  • @PRATAP Exactly, thats the picture I want to use. Hm, I can change the appearance of the background and lock screen both in settings and gnome-tweaks. I'm not a 100 percent sure, how it's called on your system since mine is in german, but it should be something like Appearance in gnome-tweaks.

    – jeypeu
    Dec 9 '18 at 12:54











  • I bought it last week, so I assume it's a fresh install. I changed the file, but unfortunately it changes nothing. Maybe it's because I use Communitheme? Or maybe, because it says I don't have the extension installed to change the Shell theme?

    – jeypeu
    Dec 9 '18 at 13:10











  • @PRATAP See the updated question above.

    – jeypeu
    Dec 9 '18 at 14:17











  • while i was trying to solve similar question.. i got a clue why it didn't work.. can you please let me know how did you instaall that Communitheme.. snap install or PPA and APT install?

    – PRATAP
    Mar 5 at 16:38






  • 1





    snap and apt are two different things.. you can get differences easily by googling.. you can check by opening snap file in the below answer and see the color which is showing at lock screen..

    – PRATAP
    Mar 7 at 7:32














2












2








2








Before you mark the question as a duplicate, I read all of the posts regarding this, but nothing helped me. I'd like to change the background picture of the lock screen.



I changed the ubuntu.css and gdm3.css accordingly to



#lockDialogGroup {
background: #000000 url(file:///usr/share/wallpapers/minimalistic-gray_00323985.jpg);
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}


Which results in a change of the Background of the log in screen, not the lock screen. When I press super + L the screen containing time has the correct background. When I swipe it up to tipe in my password, the purple Ubuntu screen still appears. If I click to change the user, the log in screen appears with the right background. I have the same background picture enabled in gnome tweaks for desktop background and lock screen.



I'm running Ubuntu 18.04 GNOME on a TuXedo Laptop. And I use Communitheme - maybe thats the problem?



Any ideas why it doesn't work? (I rebooted multiple times, so that's not the problem.)



EDIT: The output of sudo nano /usr/share/gnome-shell/modes/ubuntu.json is



{
"parentMode": "user",
"stylesheetName": "ubuntu.css",
"enabledExtensions": ["ubuntu-dock@ubuntu.com", "ubuntu-appindicators@ubuntu.com"]
}









share|improve this question
















Before you mark the question as a duplicate, I read all of the posts regarding this, but nothing helped me. I'd like to change the background picture of the lock screen.



I changed the ubuntu.css and gdm3.css accordingly to



#lockDialogGroup {
background: #000000 url(file:///usr/share/wallpapers/minimalistic-gray_00323985.jpg);
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}


Which results in a change of the Background of the log in screen, not the lock screen. When I press super + L the screen containing time has the correct background. When I swipe it up to tipe in my password, the purple Ubuntu screen still appears. If I click to change the user, the log in screen appears with the right background. I have the same background picture enabled in gnome tweaks for desktop background and lock screen.



I'm running Ubuntu 18.04 GNOME on a TuXedo Laptop. And I use Communitheme - maybe thats the problem?



Any ideas why it doesn't work? (I rebooted multiple times, so that's not the problem.)



EDIT: The output of sudo nano /usr/share/gnome-shell/modes/ubuntu.json is



{
"parentMode": "user",
"stylesheetName": "ubuntu.css",
"enabledExtensions": ["ubuntu-dock@ubuntu.com", "ubuntu-appindicators@ubuntu.com"]
}






gnome 18.04 lock-screen






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 1 hour ago









pomsky

32.2k11100131




32.2k11100131










asked Dec 9 '18 at 12:25









jeypeujeypeu

1136




1136













  • @PRATAP Exactly, thats the picture I want to use. Hm, I can change the appearance of the background and lock screen both in settings and gnome-tweaks. I'm not a 100 percent sure, how it's called on your system since mine is in german, but it should be something like Appearance in gnome-tweaks.

    – jeypeu
    Dec 9 '18 at 12:54











  • I bought it last week, so I assume it's a fresh install. I changed the file, but unfortunately it changes nothing. Maybe it's because I use Communitheme? Or maybe, because it says I don't have the extension installed to change the Shell theme?

    – jeypeu
    Dec 9 '18 at 13:10











  • @PRATAP See the updated question above.

    – jeypeu
    Dec 9 '18 at 14:17











  • while i was trying to solve similar question.. i got a clue why it didn't work.. can you please let me know how did you instaall that Communitheme.. snap install or PPA and APT install?

    – PRATAP
    Mar 5 at 16:38






  • 1





    snap and apt are two different things.. you can get differences easily by googling.. you can check by opening snap file in the below answer and see the color which is showing at lock screen..

    – PRATAP
    Mar 7 at 7:32



















  • @PRATAP Exactly, thats the picture I want to use. Hm, I can change the appearance of the background and lock screen both in settings and gnome-tweaks. I'm not a 100 percent sure, how it's called on your system since mine is in german, but it should be something like Appearance in gnome-tweaks.

    – jeypeu
    Dec 9 '18 at 12:54











  • I bought it last week, so I assume it's a fresh install. I changed the file, but unfortunately it changes nothing. Maybe it's because I use Communitheme? Or maybe, because it says I don't have the extension installed to change the Shell theme?

    – jeypeu
    Dec 9 '18 at 13:10











  • @PRATAP See the updated question above.

    – jeypeu
    Dec 9 '18 at 14:17











  • while i was trying to solve similar question.. i got a clue why it didn't work.. can you please let me know how did you instaall that Communitheme.. snap install or PPA and APT install?

    – PRATAP
    Mar 5 at 16:38






  • 1





    snap and apt are two different things.. you can get differences easily by googling.. you can check by opening snap file in the below answer and see the color which is showing at lock screen..

    – PRATAP
    Mar 7 at 7:32

















@PRATAP Exactly, thats the picture I want to use. Hm, I can change the appearance of the background and lock screen both in settings and gnome-tweaks. I'm not a 100 percent sure, how it's called on your system since mine is in german, but it should be something like Appearance in gnome-tweaks.

– jeypeu
Dec 9 '18 at 12:54





@PRATAP Exactly, thats the picture I want to use. Hm, I can change the appearance of the background and lock screen both in settings and gnome-tweaks. I'm not a 100 percent sure, how it's called on your system since mine is in german, but it should be something like Appearance in gnome-tweaks.

– jeypeu
Dec 9 '18 at 12:54













I bought it last week, so I assume it's a fresh install. I changed the file, but unfortunately it changes nothing. Maybe it's because I use Communitheme? Or maybe, because it says I don't have the extension installed to change the Shell theme?

– jeypeu
Dec 9 '18 at 13:10





I bought it last week, so I assume it's a fresh install. I changed the file, but unfortunately it changes nothing. Maybe it's because I use Communitheme? Or maybe, because it says I don't have the extension installed to change the Shell theme?

– jeypeu
Dec 9 '18 at 13:10













@PRATAP See the updated question above.

– jeypeu
Dec 9 '18 at 14:17





@PRATAP See the updated question above.

– jeypeu
Dec 9 '18 at 14:17













while i was trying to solve similar question.. i got a clue why it didn't work.. can you please let me know how did you instaall that Communitheme.. snap install or PPA and APT install?

– PRATAP
Mar 5 at 16:38





while i was trying to solve similar question.. i got a clue why it didn't work.. can you please let me know how did you instaall that Communitheme.. snap install or PPA and APT install?

– PRATAP
Mar 5 at 16:38




1




1





snap and apt are two different things.. you can get differences easily by googling.. you can check by opening snap file in the below answer and see the color which is showing at lock screen..

– PRATAP
Mar 7 at 7:32





snap and apt are two different things.. you can get differences easily by googling.. you can check by opening snap file in the below answer and see the color which is showing at lock screen..

– PRATAP
Mar 7 at 7:32










1 Answer
1






active

oldest

votes


















2














If it's a PPA install



sudo add-apt-repository ppa:communitheme/ppa
sudo apt update
sudo apt install ubuntu-communitheme-session


then this is the file



/usr/share/gnome-shell/theme/communitheme/gnome-shell.css


When it's a snap install



sudo snap install communitheme


this is the file



/snap/communitheme/1593/share/gnome-shell/theme/Communitheme/gnome-shell.css


but this snap file is Read-Only.. read about why this snap file cant be saved like other files. https://askubuntu.com/a/1035241/739431..



short .gif file for APT installed Communitheme unlock-screen change...
https://imgur.com/hR3FirP






share|improve this answer


























  • I did, but it didn't fix the problem. There is no difference in just renaming the file, is there? Why should renaming fix the problem? Thanks for the suggestions anyways. Do you have any more ideas left?

    – jeypeu
    Dec 9 '18 at 14:31











  • Of course not. I followed your instructions thoroughly. But I don't really see a difference between creating a new file and copy-pasting the content, and just renaming ubuntu.css and change the name within the .json file. But my knowledge is limited.

    – jeypeu
    Dec 9 '18 at 15:02













  • I did exactly what you proposed to, but it had no effect.

    – jeypeu
    Dec 9 '18 at 15:18











  • Yes, the folder wallpapers exists in that exact directory. Elsewise, changing ubuntu.css wouldn't have had any effect on my login screen, but it had. I tried the black color with no effect. Seems like changing the json file, isn't the only thing one has to change.

    – jeypeu
    Dec 10 '18 at 7:57











  • But every time I try to change the content of the json file I get this warning (gedit:3917): WARNING **: 08:58:51.596: Set document metadata failed:

    – jeypeu
    Dec 10 '18 at 8:00











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1099544%2fcannot-change-lock-screen-background-on-ubuntu-18-04%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














If it's a PPA install



sudo add-apt-repository ppa:communitheme/ppa
sudo apt update
sudo apt install ubuntu-communitheme-session


then this is the file



/usr/share/gnome-shell/theme/communitheme/gnome-shell.css


When it's a snap install



sudo snap install communitheme


this is the file



/snap/communitheme/1593/share/gnome-shell/theme/Communitheme/gnome-shell.css


but this snap file is Read-Only.. read about why this snap file cant be saved like other files. https://askubuntu.com/a/1035241/739431..



short .gif file for APT installed Communitheme unlock-screen change...
https://imgur.com/hR3FirP






share|improve this answer


























  • I did, but it didn't fix the problem. There is no difference in just renaming the file, is there? Why should renaming fix the problem? Thanks for the suggestions anyways. Do you have any more ideas left?

    – jeypeu
    Dec 9 '18 at 14:31











  • Of course not. I followed your instructions thoroughly. But I don't really see a difference between creating a new file and copy-pasting the content, and just renaming ubuntu.css and change the name within the .json file. But my knowledge is limited.

    – jeypeu
    Dec 9 '18 at 15:02













  • I did exactly what you proposed to, but it had no effect.

    – jeypeu
    Dec 9 '18 at 15:18











  • Yes, the folder wallpapers exists in that exact directory. Elsewise, changing ubuntu.css wouldn't have had any effect on my login screen, but it had. I tried the black color with no effect. Seems like changing the json file, isn't the only thing one has to change.

    – jeypeu
    Dec 10 '18 at 7:57











  • But every time I try to change the content of the json file I get this warning (gedit:3917): WARNING **: 08:58:51.596: Set document metadata failed:

    – jeypeu
    Dec 10 '18 at 8:00
















2














If it's a PPA install



sudo add-apt-repository ppa:communitheme/ppa
sudo apt update
sudo apt install ubuntu-communitheme-session


then this is the file



/usr/share/gnome-shell/theme/communitheme/gnome-shell.css


When it's a snap install



sudo snap install communitheme


this is the file



/snap/communitheme/1593/share/gnome-shell/theme/Communitheme/gnome-shell.css


but this snap file is Read-Only.. read about why this snap file cant be saved like other files. https://askubuntu.com/a/1035241/739431..



short .gif file for APT installed Communitheme unlock-screen change...
https://imgur.com/hR3FirP






share|improve this answer


























  • I did, but it didn't fix the problem. There is no difference in just renaming the file, is there? Why should renaming fix the problem? Thanks for the suggestions anyways. Do you have any more ideas left?

    – jeypeu
    Dec 9 '18 at 14:31











  • Of course not. I followed your instructions thoroughly. But I don't really see a difference between creating a new file and copy-pasting the content, and just renaming ubuntu.css and change the name within the .json file. But my knowledge is limited.

    – jeypeu
    Dec 9 '18 at 15:02













  • I did exactly what you proposed to, but it had no effect.

    – jeypeu
    Dec 9 '18 at 15:18











  • Yes, the folder wallpapers exists in that exact directory. Elsewise, changing ubuntu.css wouldn't have had any effect on my login screen, but it had. I tried the black color with no effect. Seems like changing the json file, isn't the only thing one has to change.

    – jeypeu
    Dec 10 '18 at 7:57











  • But every time I try to change the content of the json file I get this warning (gedit:3917): WARNING **: 08:58:51.596: Set document metadata failed:

    – jeypeu
    Dec 10 '18 at 8:00














2












2








2







If it's a PPA install



sudo add-apt-repository ppa:communitheme/ppa
sudo apt update
sudo apt install ubuntu-communitheme-session


then this is the file



/usr/share/gnome-shell/theme/communitheme/gnome-shell.css


When it's a snap install



sudo snap install communitheme


this is the file



/snap/communitheme/1593/share/gnome-shell/theme/Communitheme/gnome-shell.css


but this snap file is Read-Only.. read about why this snap file cant be saved like other files. https://askubuntu.com/a/1035241/739431..



short .gif file for APT installed Communitheme unlock-screen change...
https://imgur.com/hR3FirP






share|improve this answer















If it's a PPA install



sudo add-apt-repository ppa:communitheme/ppa
sudo apt update
sudo apt install ubuntu-communitheme-session


then this is the file



/usr/share/gnome-shell/theme/communitheme/gnome-shell.css


When it's a snap install



sudo snap install communitheme


this is the file



/snap/communitheme/1593/share/gnome-shell/theme/Communitheme/gnome-shell.css


but this snap file is Read-Only.. read about why this snap file cant be saved like other files. https://askubuntu.com/a/1035241/739431..



short .gif file for APT installed Communitheme unlock-screen change...
https://imgur.com/hR3FirP







share|improve this answer














share|improve this answer



share|improve this answer








edited 1 hour ago









pomsky

32.2k11100131




32.2k11100131










answered Dec 9 '18 at 14:17









PRATAPPRATAP

3,2082829




3,2082829













  • I did, but it didn't fix the problem. There is no difference in just renaming the file, is there? Why should renaming fix the problem? Thanks for the suggestions anyways. Do you have any more ideas left?

    – jeypeu
    Dec 9 '18 at 14:31











  • Of course not. I followed your instructions thoroughly. But I don't really see a difference between creating a new file and copy-pasting the content, and just renaming ubuntu.css and change the name within the .json file. But my knowledge is limited.

    – jeypeu
    Dec 9 '18 at 15:02













  • I did exactly what you proposed to, but it had no effect.

    – jeypeu
    Dec 9 '18 at 15:18











  • Yes, the folder wallpapers exists in that exact directory. Elsewise, changing ubuntu.css wouldn't have had any effect on my login screen, but it had. I tried the black color with no effect. Seems like changing the json file, isn't the only thing one has to change.

    – jeypeu
    Dec 10 '18 at 7:57











  • But every time I try to change the content of the json file I get this warning (gedit:3917): WARNING **: 08:58:51.596: Set document metadata failed:

    – jeypeu
    Dec 10 '18 at 8:00



















  • I did, but it didn't fix the problem. There is no difference in just renaming the file, is there? Why should renaming fix the problem? Thanks for the suggestions anyways. Do you have any more ideas left?

    – jeypeu
    Dec 9 '18 at 14:31











  • Of course not. I followed your instructions thoroughly. But I don't really see a difference between creating a new file and copy-pasting the content, and just renaming ubuntu.css and change the name within the .json file. But my knowledge is limited.

    – jeypeu
    Dec 9 '18 at 15:02













  • I did exactly what you proposed to, but it had no effect.

    – jeypeu
    Dec 9 '18 at 15:18











  • Yes, the folder wallpapers exists in that exact directory. Elsewise, changing ubuntu.css wouldn't have had any effect on my login screen, but it had. I tried the black color with no effect. Seems like changing the json file, isn't the only thing one has to change.

    – jeypeu
    Dec 10 '18 at 7:57











  • But every time I try to change the content of the json file I get this warning (gedit:3917): WARNING **: 08:58:51.596: Set document metadata failed:

    – jeypeu
    Dec 10 '18 at 8:00

















I did, but it didn't fix the problem. There is no difference in just renaming the file, is there? Why should renaming fix the problem? Thanks for the suggestions anyways. Do you have any more ideas left?

– jeypeu
Dec 9 '18 at 14:31





I did, but it didn't fix the problem. There is no difference in just renaming the file, is there? Why should renaming fix the problem? Thanks for the suggestions anyways. Do you have any more ideas left?

– jeypeu
Dec 9 '18 at 14:31













Of course not. I followed your instructions thoroughly. But I don't really see a difference between creating a new file and copy-pasting the content, and just renaming ubuntu.css and change the name within the .json file. But my knowledge is limited.

– jeypeu
Dec 9 '18 at 15:02







Of course not. I followed your instructions thoroughly. But I don't really see a difference between creating a new file and copy-pasting the content, and just renaming ubuntu.css and change the name within the .json file. But my knowledge is limited.

– jeypeu
Dec 9 '18 at 15:02















I did exactly what you proposed to, but it had no effect.

– jeypeu
Dec 9 '18 at 15:18





I did exactly what you proposed to, but it had no effect.

– jeypeu
Dec 9 '18 at 15:18













Yes, the folder wallpapers exists in that exact directory. Elsewise, changing ubuntu.css wouldn't have had any effect on my login screen, but it had. I tried the black color with no effect. Seems like changing the json file, isn't the only thing one has to change.

– jeypeu
Dec 10 '18 at 7:57





Yes, the folder wallpapers exists in that exact directory. Elsewise, changing ubuntu.css wouldn't have had any effect on my login screen, but it had. I tried the black color with no effect. Seems like changing the json file, isn't the only thing one has to change.

– jeypeu
Dec 10 '18 at 7:57













But every time I try to change the content of the json file I get this warning (gedit:3917): WARNING **: 08:58:51.596: Set document metadata failed:

– jeypeu
Dec 10 '18 at 8:00





But every time I try to change the content of the json file I get this warning (gedit:3917): WARNING **: 08:58:51.596: Set document metadata failed:

– jeypeu
Dec 10 '18 at 8:00


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1099544%2fcannot-change-lock-screen-background-on-ubuntu-18-04%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

香粉寮

GameSpot