Re: [opensuse] GTK tool ?
2010. augusztus 31. 7:53 napon Bob S <911@sanctum.com> írta: [snip] Hi, Bob Generally login to X (through the main graphical login window, eg. kdm) is not a good practice but it is acceptable for problem solving. Installing gnome-control-center and the several gtk packages with it is unnecessary if you do not want use gnome, I think. I have experimented a little bit with ~/.gtkrc-2.0 and ~/.gtkrc-2.0-kde and found the following. When you login to KDE an environment variable called GTK2_RC_FILES is set. In my case this variable is set to: echo $GTK2_RC_FILES /home/user/.gtkrc-2.0-kde:/usr/share/themes//Qt/gtk-2.0/gtkrc:/home/user/.gtkrc-2.0-qtengine:/home/user/.gtkrc-2.0:/home/user/.kde/share/config/gtkrc-2.0 I also learned that the last (existing) file on this list takes precedence, at least in case of same properties. So if you set GTK2_RC_FILES to ~/.gtkrc-2.0-kde then only that file will be used. Eg. I added this line to my ~/.profile file: export GTK2_RC_FILES=$HOME/.gtkrc-2.0-kde After this I have set font size and theme in KDE control panel (GTK style and fonts, use another style, use another font options). If you press apply it creates ~/.gtkrc-2.0-kde file. After logging out and in only this file is set up as GTK2_RC_FILES, and its values should be used for gtk settings. It would be good to know how GTK2_RC_FILES is set in KDE and other windows managers (GNOME, XFCE), and how could be ~/.gtkrc-2.0-kde set to this variable only in KDE and not in other window managers. There is a script, /home/lxuser/.kde/env/gtk-qt-engine.rc.sh, which should set this variable: #!/bin/bash # Make sure our customised gtkrc file is loaded. export GTK2_RC_FILES=$HOME/.gtkrc-2.0-kde How this script is expected to work? Istvan
On Monday 30 August 2010 23:14:07 Carlos E. R. wrote:
On 2010-08-31 04:02, Felix Miata wrote:
On 2010/08/31 00:45 (GMT+0200) Carlos E. R. composed:
The configuration tools for gnome are gconf-editor and gnome-control-center.
OS11.2/KDE3.5# zypper in gnome-control-center ... 29 new packages to install ...after the operation 27.7 MiB will be used...
Lotta stuff just to build one config file, unless more is actually needed than .gtkrc-2.0. :-(
I can't say, as gnome is my default desktop and it is fully installed. I also usually install kde as well, but not on this partition.
30 Mb is not that much, but of course, I do not know if that will solve the font problem you are seeing.
grsync? I suppose it is a gnome tool, can't say how much of gnome has got to be installed for it to run correctly. The fonts are correct as user, but not as root? Curious.
Hello Carlos,
Jumping in here on your reply to Felix.
And it works for you alright, I see in the photo you posted.
I assume the OP is using "su -" to call it? "su" will not work correctly.
Now, you need to explain to me why "su" will not work while "su -" will. As far as I can see "su -" only drops you down into the very lowest primary directory as a "cd /" would. (which I always do before any command I make as the root user)
Bob S
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
2010. augusztus 31. 13:02 napon Istvan Gabor
Eg. I added this line to my ~/.profile file: export GTK2_RC_FILES=$HOME/.gtkrc-2.0-kde
Sorry, I added it to my ~/.bashrc file to take effect, not to ~/.profile.
After this I have set font size and theme in KDE control panel (GTK style and fonts, use another style, use another font options). If you press apply it creates ~/.gtkrc-2.0-kde file.
I also found that KDE control center comments out the above line in ~/.bashrc; you have to edit .bashrc after you have changed gtk settings in KDE control center. Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (1)
-
Istvan Gabor