teejee2008/polo

Polo doesn't show up in the ALT+TAB menu - Ubuntu 16.04

Opened this issue · 2 comments

Polo doesn't show up in the ALT+TAB menu, and it also doesn't show up in the dash/launcher with a solid triangle icon. E.g. it is showing up in the dash as > meaning it isn't on the current workspace, or not in focus, it should be showing meaning it can be selected. I have installed it via the PPA on Ubuntu 16.04.

UPDATE: While writing this, it looks like the issue only happens when clicking on the dash icon shortcut (when locked to the launcher) or in the dash menu. Running from the terminal seems to be fine. Is there a way to correct it for the launcher/dash?

UPDATE 2: It looks like running from ALT+F2 and typing in polo-gtk and then enter seems to work fine too. Maybe it is something to do with the actual shortcut itself that was created at install.

$ lsb_release -a
LSB Version:	core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:printing-9.20160110ubuntu0.2-amd64:printing-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.4 LTS
Release:	16.04
Codename:	xenial

Running from the dash icon I see this:
image

Running from the terminal I see this:
image

And here is the errors when running from the terminal:

$ polo-gtk
[11:26:18.539] Architecture: 64-bit
[11:26:18.539] Host Name: shark
[11:26:18.539] CPU Cores: 8
[11:26:18.539] RAM: 15905 MB

(polo-gtk:17864): Pango-CRITICAL **: pango_font_description_from_string: assertion 'str != NULL' failed

(polo-gtk:17864): Gdk-CRITICAL **: gdk_window_set_cursor: assertion 'GDK_IS_WINDOW (window)' failed

(polo-gtk:17864): Gdk-CRITICAL **: gdk_window_set_cursor: assertion 'GDK_IS_WINDOW (window)' failed

(polo-gtk:17864): Gdk-CRITICAL **: gdk_window_set_cursor: assertion 'GDK_IS_WINDOW (window)' failed

(polo-gtk:17864): Gdk-CRITICAL **: gdk_window_set_cursor: assertion 'GDK_IS_WINDOW (window)' failed
[11:26:19.278] E: Failed to open file '/home/hazrpg/.android/.hidden': Permission denied
[11:26:19.278] E: Failed to read file: /home/hazrpg/.android/.hidden

(polo-gtk:17864): GLib-CRITICAL **: g_strsplit: assertion 'string != NULL' failed
[11:26:19.425] found thumb: /home/hazrpg/.cache/thumbnails/large/94ddc7a7bb826d7a3f2efeea8d54ff70.png
[11:26:19.431] found thumb: /home/hazrpg/.cache/thumbnails/large/526645fc69c3c08bf79940a8dea37b23.png
[11:26:19.432] found thumb: /home/hazrpg/.cache/thumbnails/large/ee9b0f7dee105c6d7f03c89ecfc8b80e.png
[11:26:19.433] found thumb: /home/hazrpg/.cache/thumbnails/large/f5f7ef88251b8a3b34b97c6776be89c5.png
[11:26:19.440] MainWindow: save_session()

(polo-gtk:17864): Gdk-CRITICAL **: gdk_window_set_cursor: assertion 'GDK_IS_WINDOW (window)' failed
[11:26:19.524] E: Failed to open file '/home/hazrpg/.android/.hidden': Permission denied
[11:26:19.524] E: Failed to read file: /home/hazrpg/.android/.hidden

(polo-gtk:17864): GLib-CRITICAL **: g_strsplit: assertion 'string != NULL' failed
[11:26:19.620] MainWindow: save_session()

(polo-gtk:17864): Gdk-CRITICAL **: gdk_window_set_cursor: assertion 'GDK_IS_WINDOW (window)' failed
[11:26:19.729] E: Failed to open file '/home/hazrpg/.android/.hidden': Permission denied
[11:26:19.729] E: Failed to read file: /home/hazrpg/.android/.hidden

(polo-gtk:17864): GLib-CRITICAL **: g_strsplit: assertion 'string != NULL' failed
[11:26:19.829] MainWindow: save_session()

(polo-gtk:17864): Gdk-CRITICAL **: gdk_window_set_cursor: assertion 'GDK_IS_WINDOW (window)' failed
[11:26:19.960] found thumb: /home/hazrpg/.cache/thumbnails/large/94ddc7a7bb826d7a3f2efeea8d54ff70.png
[11:26:19.971] found thumb: /home/hazrpg/.cache/thumbnails/large/526645fc69c3c08bf79940a8dea37b23.png
[11:26:19.972] found thumb: /home/hazrpg/.cache/thumbnails/large/ee9b0f7dee105c6d7f03c89ecfc8b80e.png
[11:26:19.974] found thumb: /home/hazrpg/.cache/thumbnails/large/f5f7ef88251b8a3b34b97c6776be89c5.png
[11:26:20.001] E: Failed to open file '/home/hazrpg/.android/.hidden': Permission denied
[11:26:20.001] E: Failed to read file: /home/hazrpg/.android/.hidden

(polo-gtk:17864): GLib-CRITICAL **: g_strsplit: assertion 'string != NULL' failed
[11:26:20.097] MainWindow: save_session()

(polo-gtk:17864): Gdk-CRITICAL **: gdk_window_set_cursor: assertion 'GDK_IS_WINDOW (window)' failed
[11:26:20.205] E: Failed to open file '/home/hazrpg/.android/.hidden': Permission denied
[11:26:20.205] E: Failed to read file: /home/hazrpg/.android/.hidden

(polo-gtk:17864): GLib-CRITICAL **: g_strsplit: assertion 'string != NULL' failed
[11:26:20.309] MainWindow: save_session()

(polo-gtk:17864): Gdk-CRITICAL **: gdk_window_set_cursor: assertion 'GDK_IS_WINDOW (window)' failed
[11:26:20.422] E: Failed to open file '/home/hazrpg/.android/.hidden': Permission denied
[11:26:20.422] E: Failed to read file: /home/hazrpg/.android/.hidden

(polo-gtk:17864): GLib-CRITICAL **: g_strsplit: assertion 'string != NULL' failed
[11:26:20.520] MainWindow: save_session()

(polo-gtk:17864): Gdk-CRITICAL **: gdk_window_set_cursor: assertion 'GDK_IS_WINDOW (window)' failed
[11:26:20.631] E: Failed to open file '/home/hazrpg/.android/.hidden': Permission denied
[11:26:20.631] E: Failed to read file: /home/hazrpg/.android/.hidden

(polo-gtk:17864): GLib-CRITICAL **: g_strsplit: assertion 'string != NULL' failed
[11:26:20.743] MainWindow: save_session()

(polo-gtk:17864): Gdk-CRITICAL **: gdk_window_set_cursor: assertion 'GDK_IS_WINDOW (window)' failed
[11:26:20.845] E: Failed to open file '/home/hazrpg/.android/.hidden': Permission denied
[11:26:20.845] E: Failed to read file: /home/hazrpg/.android/.hidden

(polo-gtk:17864): GLib-CRITICAL **: g_strsplit: assertion 'string != NULL' failed
[11:26:20.943] MainWindow: save_session()
[11:26:20.983] session restored: ============================================================

(polo-gtk:17864): Gtk-CRITICAL **: gtk_toolbar_remove: assertion 'content_to_remove != NULL' failed

Fixed it, it was easy once I realised that it could be the shortcut that is causing the problem.

In /usr/share/applications/polo-gtk.desktop I commented the line that says:

StartupWMClass=Polo-gtk

to

# StartupWMClass=Polo-gtk

Now that icons work flawlessly. Is there any reason this line is there? For a different distro maybe?

After looking into it a bit more, I find it weird that removing that line out fixes it - since that line should automatically group all polo-gtk applications together in the launcher. I'm wondering if its the splash screen that happens at the start that is causing it.