You are not logged in.
What is the difference, if any, between running an app from an openbox menu and running the same app from a terminal?
Using jcontrol (Java Control Panel) as an example:
A. Running jcontrol from the terminal results in jcontrol being displayed in the gtk theme :-)
# jcontrol
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel# xterm -e jcontrol
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeelB. Running jcontrol in the same manner from the the openbox menu results in jcontrol being displayed in the default non-gtk theme :-(
$HOME/.config/openbox/menu.xml
<item label="Java-CPL"><action name="Execute"><execute>jcontrol</execute></action></item>$HOME/.config/openbox/menu.xml
<item label="Java-CPL"><action name="Execute"><execute>xterm -e jcontrol</execute></action></item>User bashrc exists:
$HOME/.bashrc
--------------------
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel' See solution below #3
Last edited by onnadisto (2012-08-08 07:33:52)
Offline
I don't know the answer to your specific question, but I put my "look and feel" stuff in /etc/profile. Maybe that would help?
Matt
"It is very difficult to educate the educated."
Offline
I don't know the answer to your specific question, but I put my "look and feel" stuff in /etc/profile. Maybe that would help?
Yes, it did. Thank you mrunion!
# /etc/profile
###################################
## java font and gui improvement ##
###################################
# export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'Now, if someone could explain why this works and a user bashrc doesn't that would be perfect :-)
Offline