Webapps don't show thier icon on launcher when opened from Dash

Bug #1251832 reported by Karthik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
WebApps: libunity-webapps
New
Undecided
Unassigned

Bug Description

I am using Ubuntu 13.10 and Firefox 25.0

Please correct if I am wrong, but my impression is that when I open an webapp from the launcher it should open a new browser window and this window should be pointed to by the corresponding webapp icon (Not by Firefox icon)

But, whenever I open an webapp, always the new window is pointed to by a Firefox icon and the webapp is nowhere to be seen on the launcher.

Also, there is no correct explanation anywhere on how webapps are supposed to work. Is what I am facing actually a bug or is this the expected functionality?

Revision history for this message
David Barth (dbarth) wrote :

Most probably a bug yes, unless the URL defined for the app happens to also be part of the window / tabs you have open in your browser. But that shouldn't be the case if you've just created the webapp from the prompt in your browser.

Can you share the list of desktop files you have in ~/.local/share/applications/ and the content of the one corresponding to the webapp in question? there may be more than one, which is could be part of the bug itself.

Did you

Revision history for this message
Karthik (hashken) wrote :

I currently use the following three webapps
  - Amazon
  - GMail
  - Youtube

When I open Amazon from Dash it's icon is showed in the launcher. But, now both Firefox and Amazon icons point to the new Window that is now opened with Amazon content. My understanding is that only Amazon icon should poin to the window. This is one quirk that I am seeing

With GMail and Youtube webapps, it is even worse. When I open them from the Dash, only the Firefox Icon points to the new Window and the corresponding webapp icons are not there at all in the launcher

These are the files in ~/.local/share/applications
eclipse.desktop
epiphany.desktop
mimeapps.list

The relevant .dekstop files for the webapps were there in /usr/share/applications

GMailmailgooglecom.dekstop

[Desktop Entry]
Name=GMail
Type=Application
Icon=unity-webapps-gmail
MimeType=
Actions=S0;S1;S2;S3;S4;S5;S6;S7;S8;S9;S10;
Exec=unity-webapps-runner -n 'R01haWw=' -d 'mail.google.com' %u
StartupWMClass=GMailmailgooglecom

Youtubeyoutubecom.desktop

[Desktop Entry]
Name=YouTube
Type=Application
Icon=unity-webapps-youtube
MimeType=
Actions=S0;S1;S2;S3;S4;S5;S6;S7;S8;S9;S10;
Exec=unity-webapps-runner -n 'WW91VHViZQ==' -d 'youtube.com' %u
StartupWMClass=YouTubeyoutubecom

ubuntu-amazon-default.desktop

[Desktop Entry]
Name=Amazon
Type=Application
Icon=amazon-store
Exec=unity-webapps-runner --amazon --app-id=ubuntu-amazon-default

Revision history for this message
David Barth (dbarth) wrote : Re: [Bug 1251832] Re: Webapps don't show thier icon on launcher when opened from Dash

Hi,

This issue seems related to successive migrations of the launcher and
extensions for webapps.

To check that, could you:
- go into your browser extension preferences > installed websites and
remove all of the webapps here (that's
chrome://settings/desktopIntegrationOverlay on Chrome for example)
- stop all browser and webapps
- suppress the launcher icons on your launcher bar if needed
- create a backup folder to keep the potentially broken config files
- move all of the .local/share/applications/<webapps>.desktop files into
that backup folder
- move all of the files in .local/share/unity-webapps/* into that same
folder

This way you should start from a clean state.

Then, re-create the webapps launchers by navigating to Amazon, Youtube,
etc. to re-create them.

Then start the webapps from the Dash or put them on your launcher directly.

David

Revision history for this message
Karthik (hashken) wrote :

I tried this and this seems to have solved the problem partially.

Now, when I went to Youtube and was asked for confirmation to install the webapp. After this was done, I tried opening Youtube from Dash and a new Firefox window was opened pointed to by the Youtube icon on the launcher. But, this window is being pointed to by the Firefox icon also. So, when I use Alt-Tab to switch between windows, I get a Firefox entry and an youtube entry both essentially pointing to the same window. This is very annoying.

Also, I tried visiting other sites like GMail, Google drive etc. but was not asked for Desktop Integration and these are not there in the blacklist also. Not sure what the problem is. I will try to ascertain what the problem is?

Revision history for this message
Justin McPherson (justinmcp) wrote :

Its normal and expected for a webapp used through Firefox to have both the Firefox window and the webapp window.

They'll be represented by one icon if you use chromium (it will have to be your default browser though).

Not being prompted for for desktop integration probably means the system still thinks you have the integrations installed. In the steps above, kill the 'unity-webapps-service' process before you move the files out of .local/share/unity-webapps/ and see if that makes a difference.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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