Merge lp://staging/~3v1n0/unity/create-local-desktop-file into lp://staging/unity
Status: | Merged |
---|---|
Approved by: | Christopher Townsend |
Approved revision: | no longer in the source branch. |
Merged at revision: | 3458 |
Proposed branch: | lp://staging/~3v1n0/unity/create-local-desktop-file |
Merge into: | lp://staging/unity |
Diff against target: |
602 lines (+195/-92) 11 files modified
launcher/ApplicationLauncherIcon.cpp (+36/-37) launcher/LauncherDragWindow.cpp (+1/-1) launcher/SoftwareCenterLauncherIcon.cpp (+0/-1) tests/mock-application.h (+1/-0) tests/test_application_launcher_icon.cpp (+118/-39) tests/test_launcher.cpp (+4/-4) tests/test_software_center_launcher_icon.cpp (+1/-1) unity-shared/ApplicationManager.h (+2/-0) unity-shared/BamfApplicationManager.cpp (+11/-0) unity-shared/BamfApplicationManager.h (+2/-0) unity-shared/StandaloneAppManager.cpp (+19/-9) |
To merge this branch: | bzr merge lp://staging/~3v1n0/unity/create-local-desktop-file |
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Christopher Townsend (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email: mp+179016@code.staging.launchpad.net |
Commit message
ApplicationLaun
Also make icon sticky only if both the icon itself and the inner app is sticky as well.
Description of the change
When we try to stick an application that has no desktop file (and no URI, in fact) we use bamf to generate the .desktop file. If/When this happens the application get notified with a desktop-
I sometime noticed that a "default icon" is shown instead of the real one, this seems mostly related to something else or a race... There's one line in bamf that can avoid this, but before reverting that I'd like to see if we can find a better solution.
As always, added and updated new unit tests
I think this is almost working.
However, I ran into one problem where if I start a local app using ./name_of_exe, then the desktop file uses ./name_of_exe and when clicking the Launcher icon, it can't find ./name_of_exe. Is there any way to expand ./ to the full path?
Also, the .desktop file sticks around in .local/ share/applicati ons even after unpinning the icon from the Launcher. Is this intended behavior?
After I unpinned the icon, and then restarted the application using the full path, the already existing .desktop file did not get updated with the new full path. Not sure if the .desktop file is supposed to get updated or not.
Another behavior I noticed is that when I start the application using the Launcher icon (when the paths are correct), if I try quitting the application using Quit in the icon quicklist, the application won't quit.