LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-30-2006, 02:51 PM   #1
ahh
Member
 
Registered: May 2004
Location: UK
Distribution: Gentoo
Posts: 293

Rep: Reputation: 31
Fonts not displayed correctly using sudo


Gentoo
Gnome 2.12
GTK+ 2.8.8
sudo 1.6.8_p9
xorg 6.8.2-r6


I have a user set up that I use for internet related activities, lets call him webuser.

So, when I browse the web I invoke my web browser with

Code:
sudo -H webuser /usr/bin/galeon
The problem is the theme and fonts are wrong.

If I log in as webuser the theme and fonts are OK.

Does anyone know how this can be remedied?

Cheers.
 
Old 01-30-2006, 03:00 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
When invoking this to run as the other user, it's not going to use your current users settings and configurations. Login directly as the webuser and configure it how you like, then try launching as the webuser once again.
 
Old 01-31-2006, 01:16 AM   #3
ahh
Member
 
Registered: May 2004
Location: UK
Distribution: Gentoo
Posts: 293

Original Poster
Rep: Reputation: 31
Thanks for the reply, but this is what's not happening. If I log in as webuser the fonts and theme are displayed as I set them, but if I log in as another user and sudo -H webuser the fonts and theme are wrong.

More specifically, a different font is displayed and it is not antialiased, and the theme is correct except that the menu items are highlighted in a different colour.

Weird.
 
Old 02-04-2006, 05:46 AM   #4
ahh
Member
 
Registered: May 2004
Location: UK
Distribution: Gentoo
Posts: 293

Original Poster
Rep: Reputation: 31
I've solved the problem.

Both users have a theme with the same name, but the details are different. It appears Gnome got confused because of this. I made sure that themes with the same name had the same details and everything works fine.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 03:20 PM
After updating Xorg 6.8.2 there are no more fonts displayed MCDaweed Linux - Software 2 04-23-2005 05:42 AM
CD-Rom ,filenames are not displayed correctly Darklegion Linux - General 4 08-28-2004 02:46 AM
Bad Displayed Fonts Obscure Linux - Newbie 3 11-17-2003 02:26 PM
GTK+2, problems with applications that won't display fonts correctly Sm0k3 Slackware 2 09-12-2003 02:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration