[Ayatana] The Unity launcher window matching policy

2011-01-19 Thread Conscious User

Hello,

I was thinking about filing a bug (perhaps multiple, per-app
bugs) to track all applications in the Ubuntu repositories
(or at least all applications in a default install) whose
windows are not being currently correctly matched to a
.desktop file in the Unity launcher, causing ugly icons and
inability to pin to the dock.

Some examples: policykit, bluetooth-wizard, evolution-backup...

But I can't do that accurately without knowing the exact policy
for window matching that the launcher is using. Jason, is it
doing exactly the same as Docky (looking for .desktop files
according to the window class and using StartupWMClass for
corner cases like Java apps, iirc) I wanted to post in every
report the exact procedure to fix.

I was originally going to post this in the ayatana-dev list,
but this can raise some conceptual issues (ex: should all
windows be pinnable?)



___
Mailing list: https://launchpad.net/~ayatana
Post to : ayatana@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ayatana
More help   : https://help.launchpad.net/ListHelp


Re: [Ayatana] The Unity launcher window matching policy

2011-01-19 Thread Paul Sladen
On Wed, 19 Jan 2011, Conscious User wrote:
 to track all applications in the Ubuntu repositories whose windows
 are not being currently correctly matched to a .desktop file

I noticed that running 'pango-view' from the command-line adds not
one, but two icons.  Perhaps one for the list.

-Paul



___
Mailing list: https://launchpad.net/~ayatana
Post to : ayatana@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ayatana
More help   : https://help.launchpad.net/ListHelp


Re: [Ayatana] The Unity launcher window matching policy

2011-01-19 Thread Jason Smith
On Wed, 2011-01-19 at 09:10 -0200, Conscious User wrote:
 Hello,

Back at ya!

 
 I was thinking about filing a bug (perhaps multiple, per-app
 bugs) to track all applications in the Ubuntu repositories
 (or at least all applications in a default install) whose
 windows are not being currently correctly matched to a
 .desktop file in the Unity launcher, causing ugly icons and
 inability to pin to the dock.
 

Yeah I hate that! If you are noting an inability to pin to the dock I am
guessing you are still using the old unity (new unity hides this but
still suffers). Newer bamf does better but I bet some/most of the
matching failures still exist.

 Some examples: policykit, bluetooth-wizard, evolution-backup...

Looking into all 3 of these today.

 
 But I can't do that accurately without knowing the exact policy
 for window matching that the launcher is using. Jason, is it
 doing exactly the same as Docky (looking for .desktop files
 according to the window class and using StartupWMClass for
 corner cases like Java apps, iirc) I wanted to post in every
 report the exact procedure to fix.

The basic rundown works like this. There are two forms of matching
inside of bamf, we refer to them informally as primary and secondary
matching. Primary matching is when we essentially have a hard lock on
exactly what the .desktop file is due to be informed via dbus (gio sends
a dbus signal on launch). 90% of all launched applications will go
through this process, and provided there is no short lived shell script
used to launch, the matching works fine.

In the case where primary matching fails, the fallback is a very close
port of the ideas found in Docky for matching. The matching work
sometimes is more accurate or less accurate than docky, depending on the
case. Many of the application/java specific hacks have been removed in
hopes of finding a more permanent solution.

 
 I was originally going to post this in the ayatana-dev list,
 but this can raise some conceptual issues (ex: should all
 windows be pinnable?)

Here is fine.

 
 
 
 ___
 Mailing list: https://launchpad.net/~ayatana
 Post to : ayatana@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~ayatana
 More help   : https://help.launchpad.net/ListHelp

-- 
Jason Smith | Desktop Experience Team
GNOME Developer
Canonical USA Inc.
T. +1.248.756.6266 | jason.sm...@canonical.com
Ubuntu - Linux for human beings | www.ubuntu.com


___
Mailing list: https://launchpad.net/~ayatana
Post to : ayatana@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ayatana
More help   : https://help.launchpad.net/ListHelp


Re: [Ayatana] The Unity launcher window matching policy

2011-01-19 Thread Conscious User

Hi Jason, thanks for all the information.

I think a wiki page is more efficient than a bug report
for tracking those issues, so I started a crude draft in:

https://wiki.ubuntu.com/Unity/WindowMatching

I already added pango-view as Paul pointed out. Please,
if anyone sees mistakes (there are probably many right
now) point them out.

Hopefully at least all apps included in the default
install can be fixed until release.



___
Mailing list: https://launchpad.net/~ayatana
Post to : ayatana@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ayatana
More help   : https://help.launchpad.net/ListHelp