LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Theme in Ubuntu not applied to menu bars at startup (https://www.linuxquestions.org/questions/linux-newbie-8/theme-in-ubuntu-not-applied-to-menu-bars-at-startup-811059/)

Al_ 05-30-2010 07:17 AM

Theme in Ubuntu not applied to menu bars at startup
 
The theme I have chosen in Ubuntu 10.04 (Ambiance with buttons in the upper right-hand corner) is not applied to the menu bars at boot/login. Menu and title bars should be very dark with a white font. When I boot the computer, the application title bar is correctly formatted, but the main menu bar of gnome and the menu bars of all applications are black font on gray background. When I open the theme selection (in German Einstellungen | Erscheinungsbild, in English likely something like Preferences | Appearance), the correct theme is applied to menu bars without that I have to select the theme again; simply opening the Appearance dialog suffices.

First I did not name my modified theme (showed up as first theme in the theme selection dialog, user modified). In trying to solve the above issue I gave the theme a name, but the strange behaviour persists.

Any hints where I can make the theme automatically and completely applied at boot are appreciated.

Al_

Simon Bridge 05-31-2010 12:10 AM

Presumably you did something like this?
http://ubuntuforums.org/showthread.php?t=1434658

Are other themes persistent?

note: I'd normally select a theme from system > preferences > appearance ... you are right :)

Al_ 05-31-2010 12:16 PM

Quote:

Originally Posted by Simon Bridge (Post 3986994)
Presumably you did something like this?
http://ubuntuforums.org/showthread.php?t=1434658

Yes, limited to the gconf-editor part to move the buttons.

Quote:

Originally Posted by Simon Bridge (Post 3986994)
Are other themes persistent?

Good point. I just tried it with DarkRoom (as this also has a dark menu bar): no, this theme is also not persistent after a boot; but something is stored anyway, as the DarkRoom theme is preselected and re-applied as soon as I open the appearances dialog, i.e., same behavior as with the modified Ambiance theme.

Simon Bridge 06-01-2010 06:27 AM

in gconf-editor, change button_layout value to menu:maximize,minimize,close

Do you only lose settings on reboot? eg. what if you just log out and log back in.
You have said that another dark theme is not persistent, but have not said if any other themes are persistent.

Al_ 06-02-2010 12:02 PM

Quote:

Originally Posted by Simon Bridge (Post 3988478)
in gconf-editor, change button_layout value to menu:maximize,minimize,close

Did unluckily not solve the issue.

Quote:

Do you only lose settings on reboot? eg. what if you just log out and log back in.
After logout - login the selected theme is lost, too. Again, as soon as I open the theme selection dialog, the theme is automatically re-applied.

Quote:

You have said that another dark theme is not persistent, but have not said if any other themes are persistent.
Also other themes are not persistent.

arizonagroovejet 06-02-2010 02:28 PM

After you log in, when the theme is not being applied correctly, run this command
Code:

$ ps U $USER | grep gnome-settings-daemon
and make a note of the output. Then when you've opened Gnome Appearance Preferences and the theme is being applied correctly run that command again. Post the output of both times you ran the command.

Al_ 06-04-2010 12:06 PM

[solved]
 
@arizonagroovejet: your advice allowed me to solve the issue.

prior to opening theme dialog (i.e., with wrong theme)
Quote:

4606 pts/0 S+ 0:00 grep gnome-settings-daemon
with theme dialog open (and thus correct theme applied)
Quote:

4637 ? Ss 0:00 /usr/lib/gnome-settings-daemon/gnome-settings-daemon
4643 pts/0 S+ 0:00 grep gnome-settings-daemon
theme dialog closed
Quote:

4637 ? Ss 0:00 /usr/lib/gnome-settings-daemon/gnome-settings-daemon
4645 pts/0 S+ 0:00 grep gnome-settings-daemon
My conclusion: gnome-settings-daemon does not start automatically as it should. So, next, I logged out and in again, then manually started in a terminal window gnome-settings-daemon. The theme was indeed applied! I also get the following error message, that I hope is only caused because the daemon was not started directly during login.
Quote:

$ Unable to find a synaptics device.

** (gnome-settings-daemon:5112): WARNING **: Grab failed for some keys, another application may already have access the them.
Then I added gnome-settings-daemon to the startup programs in System ¦ Settings. Again logged in and out; and :) the correct theme is applied.

Many thanks!

arizonagroovejet 06-04-2010 01:11 PM

In Gnome 2.24 I found that gnome-settings-daemon sometimes failed to start up at login. Most of the time it did, sometimes it didn't. Never did work out why. I did much the same as you did except I created a second start up item for gnome-settings-daemon with a 15 second delay. If you try and start it and it's already running then it exits gracefully so you don't end up with two copies running, but it failed to start on login for some reason, then it starts up with the second attempt.

Simon Bridge 06-05-2010 01:42 AM

Hmmm... has been an on-again-off-again thing before.
http://ubuntuforums.org/archive/index.php/t-688522.html
... has pretty much the same fix, but a suggestion to edit /etc/hosts so the localhost line includes the hostname as well.

this old bug involves theme messes and suggests adding

#!/bin/sh
exec gnome-session

to the $HOME/.Xsession file.

But every one of these seems to get helpful error messages.
arizonagroovejet - have you files this as a bug at all?


All times are GMT -5. The time now is 09:55 PM.