You are not logged in.

#1 2012-08-07 20:43:21

onnadisto
Member
Registered: 2012-08-07
Posts: 5

jcontrol and GTKLookAndFeel (SOLVED)

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.GTKLookAndFeel

B. 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

#2 2012-08-07 23:26:48

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: jcontrol and GTKLookAndFeel (SOLVED)

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

#3 2012-08-08 02:40:07

onnadisto
Member
Registered: 2012-08-07
Posts: 5

Re: jcontrol and GTKLookAndFeel (SOLVED)

mrunion wrote:

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

Board footer

Powered by FluxBB