Xfce Forum

Sub domains
 

You are not logged in.

#1 2015-09-28 23:39:12

tsarfox
Member
Registered: 2015-09-28
Posts: 7

[Solved] GTK+ Theme Only Showing When Run as Root

Good evening, all

I recently installed a GTK+ theme and it is only visible when I run a program as root. I was wondering if it is possible to have it appear even when a program is run with standard privileges. I can attach screenshots if my description is not clear enough.

Last edited by tsarfox (2015-09-28 23:54:12)

Offline

#2 2015-09-29 01:45:11

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,494

Re: [Solved] GTK+ Theme Only Showing When Run as Root

How did you install it? Where did you install it?
Sounds like maybe it was put into /usr/share/themes and only root has access to it's directory.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2015-09-29 02:02:28

tsarfox
Member
Registered: 2015-09-28
Posts: 7

Re: [Solved] GTK+ Theme Only Showing When Run as Root

I had installed it through my distribution's default repository, which just placed it in /usr/share/themes. I moved it to my home folder's /.themes, though I still do not see a change. Does the theme directory go somewhere else?

Thank you.

Offline

#4 2015-09-29 02:04:59

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,494

Re: [Solved] GTK+ Theme Only Showing When Run as Root

Either of those locations should be fine. Can you post back the results of:

ls -l ~/.themes

...and:

ls -l /usr/share/themes

What is the name of the theme in question?

Also, which distro and which version of Xfce are you using?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2015-09-29 02:07:59

tsarfox
Member
Registered: 2015-09-28
Posts: 7

Re: [Solved] GTK+ Theme Only Showing When Run as Root

jacob@linux-7isz:~> ls -l ~/.themes
total 772
drwxr-xr-x  6 jacob users   4096 Mar 22  2015 167456-adwaita-xfce
drwxr-xr-x  4 jacob users   4096 Oct 26  2014 AfterDark
drwxr-xr-x  4 jacob users   4096 Oct 27  2014 AfterDark_Light
drwxr-xr-x 10 jacob users   4096 Sep 28 22:00 Arc
drwxr-xr-x  9 jacob users   4096 Sep 28 22:00 Arc-Dark
drwxr-xr-x  7 jacob users   4096 Sep 28 22:00 Arc-Darker
drwxr-xr-x  4 jacob users   4096 Sep 28 18:19 axiom
drwxr-xr-x  4 jacob users   4096 Sep 28 18:19 axiomd
drwxr-xr-x  3 jacob users   4096 Feb 23  2015 Greybird-alt
drwxr-xr-x  6 jacob users   4096 Feb  2  2014 Mint-X-Fixed
-rw-r--r--  1 jacob users 739410 Mar 31 18:19 Mint-X-Fixed.zip
drwxr-xr-x  7 jacob users   4096 Oct 26  2013 NumixHolo
drwxr-xr-x  3 jacob users   4096 Sep  5  2008 Shiki-Colors

jacob@linux-7isz:~> ls -l /usr/share/themes
total 108
drwxr-xr-x 5 root root 4096 Apr 24 15:22 Adwaita
drwxr-xr-x 3 root root 4096 May 15 09:49 Clearlooks
drwxr-xr-x 3 root root 4096 May 15 09:49 Crux
drwxr-xr-x 3 root root 4096 Oct  8  2014 Daloa
drwxr-xr-x 7 root root 4096 Aug 18 08:38 Default
drwxr-xr-x 4 root root 4096 Aug 18 08:38 Emacs
drwxr-xr-x 5 root root 4096 Oct  8  2014 Gilouche
drwxr-xr-x 3 root root 4096 Mar  6  2006 GreyGilouche
drwxr-xr-x 5 root root 4096 Apr 24 15:41 HighContrast
drwxr-xr-x 4 root root 4096 May 15 09:49 Industrial
drwxr-xr-x 3 root root 4096 Oct  8  2014 Kelabu
drwxr-xr-x 3 root root 4096 Oct  8  2014 Kokodi
drwxr-xr-x 3 root root 4096 Jan 31  2015 Linux Mint
drwxr-xr-x 3 root root 4096 Jan 31  2015 Mint-X
drwxr-xr-x 3 root root 4096 May 15 09:49 Mist
drwxr-xr-x 3 root root 4096 Oct  8  2014 Moheli
drwxr-xr-x 9 root root 4096 Mar 12  2015 Numix
drwxr-xr-x 3 root root 4096 Jan 31  2015 openSUSE-Cinnamon
drwxr-xr-x 3 root root 4096 Sep  1 22:20 oxygen-gtk
drwxr-xr-x 3 root root 4096 Jun  2 08:34 Raleigh
drwxr-xr-x 3 root root 4096 May 15 09:49 Redmond
drwxr-xr-x 3 root root 4096 Oct  6  2014 Smoke
drwxr-xr-x 6 root root 4096 Oct  8  2014 Sonar
drwxr-xr-x 4 root root 4096 Apr 24 15:42 Synchronicity
drwxr-xr-x 3 root root 4096 May 15 09:49 ThinIce
drwxr-xr-x 8 root root 4096 Jan 31  2015 VivaGreen

I'm trying to use the Arc theme on openSUSE 13.2 with XFCE 4.10.

Offline

#6 2015-09-29 02:12:55

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,494

Re: [Solved] GTK+ Theme Only Showing When Run as Root

Everything looks fine there.

What do you mean by its not visible? Can you provide a screenshot?

Also, what does the following return:

xfconf-query -c xsettings -lv

You can try setting it manually via:

xfconf-query -c xsettings -p /Net/ThemeName -s Arc

...and see if that generates any errors.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2015-09-29 02:35:01

tsarfox
Member
Registered: 2015-09-28
Posts: 7

Re: [Solved] GTK+ Theme Only Showing When Run as Root

http://i.imgur.com/ThSXpCj.png

The left is if I run QtConfig as root, the right is if I run it as a standard user.

/Gtk/ButtonImages               true
/Gtk/CanChangeAccels            false
/Gtk/ColorPalette               black:white:gray50:red:purple:blue:light blue:green:yellow:orange:lavender:brown:goldenrod4:dodger blue:pink:light green:gray10:gray30:gray75:gray90
/Gtk/CursorThemeName            DMZ
/Gtk/CursorThemeSize            0
/Gtk/FontName                   Droid Sans 10
/Gtk/IconSizes                  
/Gtk/KeyThemeName               
/Gtk/MenuBarAccel               F10
/Gtk/MenuImages                 true
/Gtk/ToolbarIconSize            3
/Gtk/ToolbarStyle               both
/Net/CursorBlink                true
/Net/CursorBlinkTime            1200
/Net/DndDragThreshold           8
/Net/DoubleClickDistance        5
/Net/DoubleClickTime            250
/Net/EnableEventSounds          true
/Net/EnableInputFeedbackSounds  true
/Net/IconThemeName              Sonar
/Net/SoundThemeName             default
/Net/ThemeName                  Arc
/Xft/Antialias                  1
/Xft/Hinting                    -1
/Xft/HintStyle                  hintnone
/Xft/RGBA                       none

It looks as though /Gtk/KeyThemeName is empty, is that my issue?

Also, thank you for being so helpful - I don't usually get help of this quality when I consult other forums.

Last edited by tsarfox (2015-09-29 02:46:57)

Offline

#8 2015-09-29 09:46:57

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,494

Re: [Solved] GTK+ Theme Only Showing When Run as Root

Why are you using QTConfig? That's not an Xfce configuration app. You should be using the Settings Manager (xfce4-settings-manager).

Which distro and which version of Xfce are you using?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#9 2015-09-29 18:57:20

tsarfox
Member
Registered: 2015-09-28
Posts: 7

Re: [Solved] GTK+ Theme Only Showing When Run as Root

I was just using it to demonstrate the effect. It can be seen on essentially everything, attached is the effect with XFCE's Settings Manager.

http://i.imgur.com/RmDWwEI.png

I'm running openSUSE 13.2 with XFCE 4.10.

Offline

#10 2015-09-29 19:57:23

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,494

Re: [Solved] GTK+ Theme Only Showing When Run as Root

Hmm.
Do you have a ~/.gtkrc-2.0 file? If so, what are the contents?

Also, when you open the Appearance Settings, do you see the Arc theme listed there?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#11 2015-09-29 20:11:44

tsarfox
Member
Registered: 2015-09-28
Posts: 7

Re: [Solved] GTK+ Theme Only Showing When Run as Root

I do, the contents are as follows

jacob@linux-7isz:~> cat  ~/.gtkrc-2.0
include "/usr/share/themes/oxygen-gtk/gtk-2.0/gtkrc"
include "/etc/gtk-2.0/gtkrc"
style "user-font"
{
        font_name="Sans Serif"
}
widget_class "*" style "user-font"
gtk-font-name="Sans Serif 9"
gtk-theme-name="oxygen-gtk"
gtk-icon-theme-name="oxygen"
gtk-fallback-icon-theme="gnome"
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
gtk-menu-images=1
gtk-button-images=1

Would this be the issue at hand?

gtk-theme-name="oxygen-gtk"

Yes, Arc is listed.

http://i.imgur.com/pT9zPK4.png

Offline

#12 2015-09-29 20:16:37

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,494

Re: [Solved] GTK+ Theme Only Showing When Run as Root

Yep. That's whats doing it. Rename your ~/.gtkrc-2.0 file and try changing the themes to see if they take now.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#13 2015-09-29 20:19:30

tsarfox
Member
Registered: 2015-09-28
Posts: 7

Re: [Solved] GTK+ Theme Only Showing When Run as Root

Excellent, that worked. Thank you so much!

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 592.89 KiB (Peak: 610.17 KiB) ]