unity launcher does not retain netbeans application

Bug #754334 reported by Rocko
156
This bug affects 32 people
Affects Status Importance Assigned to Milestone
BAMF
Fix Released
Low
Marco Trevisan (Treviño)
Unity
Fix Released
Low
Marco Trevisan (Treviño)
Unity Foundations
Fix Committed
Undecided
Unassigned
unity-2d
Won't Fix
Undecided
Unassigned
bamf (Ubuntu)
Fix Released
Low
Unassigned
unity (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: unity

When I:

1. Run netbeans-7.0rc1 manually from gnome-terminal (/usr/local/netbeans-7.0rc1/bin/netbeans)

2. After it finishes running, I choose 'Keep in launcher' from the netbeans application icon in the launcher.

3. Log out and back in again.

... the netbeans application is no longer in the launcher.

I would expect it to still be in the launcher.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: unity 3.8.4-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-8.41-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic i686
Architecture: i386
CompizPlugins: [core,bailer,detection,composite,opengl,decor,move,resize,mousepoll,imgpng,vpswitch,dbus,thumbnail,grid,regex,snap,place,compiztoolbox,gnomecompat,animation,session,wall,kdecompat,expo,ezoom,workarounds,staticswitcher,fade,scale,unityshell]
Date: Fri Apr 8 14:33:13 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Alpha i386 (20100602.2)
ProcEnviron:
 LANGUAGE=en_AU:en
 LANG=en_AU.UTF-8
 SHELL=/bin/bash
SourcePackage: unity
UpgradeStatus: Upgraded to natty on 2011-04-02 (6 days ago)

Related branches

Revision history for this message
Rocko (rockorequin) wrote :
Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

Seems like BAMF is unable to match the application to a proper desktop file. Changing project to BAMF.

affects: unity → bamf
affects: unity (Ubuntu) → bamf (Ubuntu)
Revision history for this message
Rocko (rockorequin) wrote :

That might explain why unity-launcher calls it java-lang-thread instead of Netbeans. Btw, where does bamf keep its user configuration files?

Alex Launi (alexlauni)
Changed in bamf:
status: New → Confirmed
Changed in unity-foundations:
status: New → Confirmed
Changed in unity:
status: New → Confirmed
Changed in bamf:
importance: Undecided → Low
Changed in bamf (Ubuntu):
status: New → Confirmed
importance: Undecided → Low
Changed in unity:
importance: Undecided → Low
Revision history for this message
Rocko (rockorequin) wrote :

I should ask instead: where does unity-launcher keep its configuration files so I can see what it's trying to do with the netbeans launcher? The web seems to think it keeps them somewhere like ~/.local/share/unity or in ~/.gconf/desktop/unity but this is not correct for my natty systems.

Revision history for this message
Rocko (rockorequin) wrote :

Seriously, if anyone can point me to documentation on bamf or unity that might be relevant I'd be happy to try and track down the issue. I've googled for unity design documentation and asked an ubuntu question but had no luck yet.

Revision history for this message
Sasa Stamenkovic (umpirsky) wrote :

Is there a temporary workaround?

Maybe adding it via dconf-editor?

Revision history for this message
Rocko (rockorequin) wrote :

As a workaround, I find that if I drag the netbeans desktop file from /usr/share/applications into the launcher, it stays there after restarting X.

But when you run netbeans, the launcher isn't clever enough to recognise it and it gives it a second application icon.

Revision history for this message
Leonard Michlmayr (leonard-michlmayr) wrote :

I have the same issue as Rocko described but with FreeCol which runs on java. I can drag the .desktop file to the launcher, but it has a second application icon when started.

Changed in unity-2d:
status: New → Confirmed
Revision history for this message
postadelmaga (postadelmaga) wrote :
Revision history for this message
Ahmed Mustafa Nematallah (ahmed-nematallah) wrote :

hey i think netbeans executable runs another java file which it generates and when you log off after you add it to the launcher unity checks if that java thing exists and it doesn't find it so it is removed this also explains why there are two icons in the launcher

i'm trying to find a workaround for that

Revision history for this message
Dan Jared (danjaredg) wrote :

Hi, I create a netbeans plugin to fixed it. You can go to http://danjared.blogspot.com/p/netbeans-plugins.html.

For the moment my plugin is waiting for approval but I hope is already soon.

Revision history for this message
Sasa Stamenkovic (umpirsky) wrote :

@danjaredg Thanks man, great work!

Revision history for this message
Rocko (rockorequin) wrote :

A plugin to workaround the bug is great, but shouldn't unity be able to do this by itself? After all, the other docks (eg DockbarX, Avant Window Navigator) already solved this problem a long time ago.

Revision history for this message
Sasa Stamenkovic (umpirsky) wrote :

Agree with Rosko, Unity should handle this.

Same happends for tvtime or gedit when I open text file from some remote location from Nautilus.

Revision history for this message
FelipeAF (felipealexandref) wrote :

hi, there are other bug here. When i run a web application, and the browser not is opened (chrome here). Netbeans open it, but the browser is showed like a netbeans window, unity no show it in launcher in icon of the browser (that i keep in launcher), show it in a new netbeans icon in launcher, not in browser icon.. If a switch window, to go back to browser i need click in netbeans icon in the launcher. when i click in browser icon, it opens in netbeans icon group =(

It only happens when i run a web application and the browser does not opens yet.

Revision history for this message
Sasa Stamenkovic (umpirsky) wrote :

@danjaredg NetBeans plugin does not work after upgrade to NetBeans 7.1. Any update?

Revision history for this message
JoshuaPurcell (joshua-purcell) wrote :

I think this bug is the same problem I have with adding my eclipse start script to the launcher. I have eclipse extracted in a local home folder, and I created a simple bash script which just goes to that directory (via 'cd') and runs the executable. Running this from any console works (I've added the script's location to my PATH), and when the app initially shows up in my launcher it soon changes/switches to another launcher and the initial one disappears. Permanently adding either of these two launcher entries to the bar works, but neither functions as expected (actually starting up the application).

I don't think this problem is specific to Netbeans or any other application: the basic problem is we have no documentation on Unity that allows us to create custom launchers. Even the sparse documentation I've found in various threads online points to looking at the ~/.local/share/applications or /usr/local/share/applications folders in order to copy already existing .desktop files. Neither of these locations exist. The location /usr/share/applications contains .desktop files, but these look to be the default files that each application installs and are not the actual files related to the launchers actually on my system.

Where are the files related to the unity launchers?

Revision history for this message
Rocko (rockorequin) wrote :

Is bamfdaemon the application that matches windows and .desktop files? (http://packages.ubuntu.com/precise/libs/bamfdaemon). I think I recall seeing a message about its database being updated if you add a new application from the repos.

Revision history for this message
Rocko (rockorequin) wrote :

As a workaround, I modified my /usr/share/applications/netbeans-7.1.1.desktop file and added this line:

StartupWMClass=NetBeans IDE 7.1.1

and now unity matches the running netbeans with the launcher icon. I used CCSM / Window Management to grab the WM Class.

Stephen M. Webb (bregma)
tags: added: java-in-launcher
Changed in bamf:
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
Changed in unity:
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
Changed in bamf:
milestone: none → 0.5.0
Changed in unity:
milestone: none → 7.1.1
Changed in bamf:
status: Confirmed → Fix Committed
Changed in bamf (Ubuntu):
status: Confirmed → Fix Released
Changed in unity-2d:
status: Confirmed → Won't Fix
Changed in unity-foundations:
status: Confirmed → Fix Committed
Changed in unity:
status: Confirmed → In Progress
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:unity at revision 3458, scheduled for release in unity, milestone 7.1.1

Changed in unity:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity - 7.1.0+13.10.20130812.1-0ubuntu1

---------------
unity (7.1.0+13.10.20130812.1-0ubuntu1) saucy; urgency=low

  [ Brandon Schaefer ]
  * Add ibus.py to the tests/autopilot/unity/emulators from
    lp:autopilot. (LP: #1210661)
  * Don't make the ScopeView/DashView/ScrollView Visible on start up
    (bool wise, causing things to think its ok to render). (LP:
    #1201631)
  * Adds the ability to use the mouse in the switcher. (LP: #824965)

  [ Andrea Azzarone ]
  * Add edge barriers to unity::panel::PanelView. (LP: #931384)

  [ Marco Trevisan (Treviño) ]
  * ApplicationLauncherIcon: Create a local desktop file when sticking
    an app that has not Also make icon sticky only if both the icon
    itself and the inner app is sticky as well. (LP: #1209320, #753305,
    #765466, #754334, #704046)

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 3462
 -- Ubuntu daily release <email address hidden> Mon, 12 Aug 2013 06:49:01 +0000

Changed in unity (Ubuntu):
status: New → Fix Released
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Fix Released in Bamf BAMF 0.5.0.

Changed in bamf:
status: Fix Committed → Fix Released
Revision history for this message
Stephen M. Webb (bregma) wrote :

Fix Released in Nux Unity 7.1.1.

Changed in unity:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.