Menu

Get joxy working with jitsi?

George
2013-12-20
2014-01-03
  • George

    George - 2013-12-20

    Hello,

    I have been trying to make joxy work with Jitsi (previously SIP communicator), because the interface is very ugly with either GTK or the default skin.

    I don't have any other Java app I can test (testgui won't build with maven, I get " Failed to execute goal on project joxy-testgui: Could not resolve dependencies for project joxy:joxy-testgui:jar:0.3.0-SNAPSHOT: Could not find artifact joxy:joxy:jar:0.3.0-SNAPSHOT"), so I have only tested with jitsi so far, and Jitsi doesn't seem to work with joxy (or I have failed to setup joxy properly).

    I've tried with both prebuilt packages and compiling from git, with icedtea and oracle-jre. So far this is what I've done:

    I've copied tha jar file to what seems to be the right location. For icedtea, that would be /opt/icedtea-bin-7.2.4.3/jre/lib/ext. For oracle-jre that would be /opt/oracle-jre-bin-1.7.0.45/lib/ext.

    Then I created the swing.properties file (which didn't exist before). It's location is one directory up from where joxy.jar is saved. I know it is honoured with both JREs however, because commenting the GTK entries in it does make a difference in Jitsi's interface appearance (I copied the config text from joxy's usage page into swing.properties).

    No matter what I do, I get the default ugly Java widgets (unless I enable GTK, in which case it is slightly better with oxygen-gtk but widgets are not uniform and smaller font rendering is so bad I tend to like default Java appearance better than GTK).

    Lastly, I don't know whether this would be equivalent to starting a Java app from the command line, but KDE comes with this tool called "Java & Javascript - KDE Control Module
    ". Under the Java tab, there a field titled "Additional Java arguments". If I set this field to "-Dswing.defaultlaf=joxy.JoxyLookAndFeel" (which I have), would it do the trick?

    Any tips would be greatly appreciated.

    Cheers

    Here's some package versions in case it would be relevant (I'm running gentoo):
    dev-java/icedtea-bin-7.2.4.3
    dev-java/oracle-jre-bin-1.7.0.45
    dev-qt/qtgui-4.8.5-r1
    dev-qt/qtcore-4.8.5
    kde-base/kdelibs-4.12.0
    net-im/jitsi-2.2-r1

     
    • Thom Castermans

      Thom Castermans - 2014-01-03

      Hi George,

      With respect to your compilation issue of the Test GUI: I have just added instructions on how to compile that using Maven on the website. That section was already there, but I extended it a bit.

      Hope it helps you.

      Cheers,
      Thom

       
  • Willem3141

    Willem3141 - 2013-12-27

    Hello George,

    I've looked into this, but it seems that Jitsi deliberately ignores the look-and-feel that users set. From here:

    I'm afraid Jitsi doesn't currently offer the possibility to change the look&feel. It's true that it's quite easy to use look&feels with Swing, but one of the reasons why we're not currently supporting them is that we use quite a lot of customized components and the change of look&feel won't change the look actually (or it may even break something).

    However, users at Arch Linux seem to have a workaround:

    To change jitsi theme to default java theme do this before compile:

    find /path/to/src -name UIServiceImpl.java -exec sed -i "s/if (laf == null)/if (false)/g" {} \;
    find /path/to/src -name UIServiceImpl.java -exec sed -i "s/if (!lafIsSet)/if (false)/g" {} \;

    I didn't try it yet, but this should allow Joxy to work with the swing.properties file you created.

    Finally, the Java & JavaScript KCM module is only meant for setting the Java settings in Konqueror and rekonq, so that will not influence the situation.

    Thank you for trying Joxy! :-)

    Cheers, Willem

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.