Ubuntu 11.10, JabRef 2.7~beta1+ds-5
I have LyX files associated with particular JabRef entries. When I open the LyX file from JabRef, the Unity dock shows a JabRef application icon for the LyX program. This is also seen in the alt-tab application switcher. This makes it hard to switch to the correct program, since LyX has the wrong icon.
Also this JabRef icon is slightly different to the default. This is seen in both the dock and the alt-tab switcher. See the attached screenshot of the switcher. (Also note that the default application icon has a quite poor resolution.) I do not see this behaviour when I open attached pdfs or text documents, which open as normal in the relevant application.
Command-tab switcher
Hi,
I have installed Ubuntu in a virtual machine in order to test this. When running with the version from the repositories, I can see the problem in the dock, but not in the alt-tab switcher. When running from the jar file distributed from our SourceForge page, I cannot reproduce the problem. This indicates that something about the Ubuntu packaging causes the problem. I'll try to submit a bug report to Ubuntu.
In any case I would advise you to download the latest stable version from us and use that. Incredibly, Ubuntu is packaging a beta version instead of a stable version.
Command-tab switcher when using JabRef 2.7.2 from website.
That's odd that you cannot see the problem in the alt-tab switcher. I would have thought it was associated with the dock.
That's very irritating that the beta version in is the repos! I didn't even notice that. (On a side note, do you know if there are any repos with the latest stable? I couldn't find any.) In any case, I downloaded the stable (2.7.2) from the JabRef page, but had similar problems. This time, the LyX icon was the "OpenJDK Java 6 Runtime" icon for me! I'm not sure if you had Oracle Java installed instead?
There's more to this bug. I found two scenarios that work properly, with the LyX file possessing the correct icon.
1) Launching the java file from the terminal works perfectly (as opposed to using Nautilus).
2) I created a Bash script to launch the java file, and that works fine.
I troubleshooted some other scenarios, and these all fail in the same way. In order to get an application icon for JabRef 2.7.2 in the launcher, I use "alacarte" to create an entry, that I've named "Launchjabref", just to troubleshoot. In all these cases, LyX opens up with the icon that I assigned to the alacarte entry, with the application name of "Launchjabref". JabRef itself uses the JabRef icon. Perhaps this is why the icons are slightly different in my original screenshot. JabRef uses an icon that is specified internally in the java file. LyX uses the JabRef icon that is specified by the package metadata. Then, when launching the java file from Nautilus, the LyX file opens with the OpenJDK icon by default. Anyway, this bug occurs in all four scenarios below.
1) Using alacarte to wrap the java file.
2) Using alacarte to wrap the bash script (that points to the java file).
3) Using alacarte to wrap bash -c '/path/to/JabRef-2.7.2_01.jar',
4) Using alacarte to wrap bash -c '/path/to/bash_script'
I tested it with the default (OpenJDK) Java, running from the terminal when testing JabRef directly from us, and from Unity when testing the Ubuntu packaged version.
I've registered a bug on Launchpad, perhaps we can find out more with feedback from the Ubuntu people. The bug report is here: https://bugs.launchpad.net/bugs/958604
Thanks for that.