From: "Sebastien Vincent" <email@example.com>
Sent: Tuesday, October 11, 2011 11:18:30 AM
Subject: [jitsi-dev] Re: Jitsi cannot open received files folders (Linux, Xfce)
We use the DesktopService to open file and folder. If you are on
it uses java.awt.Desktop
But it seems that this classes is not 100% portable so methods may
work properly on Xfce.
I did some further digging and i came to these conclusions (and a workaround):
1. Both Java (Sunand JDk) seem to behave similarly - same error.
2. The method used is based on gnome-open (which is an executable part of the libgnome2-0 package). Or some othe rcomponent of that package.
If i uninstall it, no GUI error is presented anymore only some in the logs and no visible stuff happens when clicking on links (open file/folder or web URLs).
3. But while gnome-open works on its own from terminal by using the settings specified through xdg settings ($HOME/.local/share/applications/mimeapps.list contains the settings), the method used by the JVM is not working everytime only in the case below:
4. The Java method uses only the associations set in the $HOME/.local/share/applications/defaults.list file. I dont know exactly how that file works (it is used by gnome-open, that is clear), and it has the file type associations of the programs that have in their .desktop files their mime types specified (but i dont know when those apps are added to it though, some apps just popped up in it after i reinstalled libgnome2). I personally softlinked the mimeapps.list to defaults.list and it is working it seems (they both use the same syntax).
Now, this makes Jitsi effectively depend on libgnome2-provided services for the opening of links. Which i dont know if its quite ok.
You can try the following code in Java, and test it on Xfce. If you
the same error, it comes from JDK6 and we should handle this case in
public class Test
public static void main(String argv) throws Exception
File folder = new File("/");
Desktop desktop = Desktop.getDesktop();
System.out.println("Desktop not supported");
I tried to run the code in Geany which supposedly has java support, but it seems that i dont have the java build environment set up correctly (as i never used it).
Maybe if you could compile it for me i can try running it.
----- Original Message -----
Le 11/10/11 09:51, Kertesz Laszlo a écrit :
> On my computer, Jitsi cannot open the folder of received files.
> When i click on "Open Folder", i get this message:
> "We couldn't find an application to open this folder."
> exo-open, gnome-open, xdg-open are all capable of opening folders
> the specified file manager (thunar).
> Where are the file associations stored that Jitsi uses?
O zi buna,