After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 620855 - [ShellWindowTracker] Don't try to track remote windows
[ShellWindowTracker] Don't try to track remote windows
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2010-06-07 15:56 UTC by Colin Walters
Modified: 2010-06-07 20:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[ShellWindowTracker] Don't try to track remote windows (1.95 KB, patch)
2010-06-07 15:56 UTC, Colin Walters
accepted-commit_now Details | Review
Don't try to track remote windows (1.48 KB, patch)
2010-06-07 19:55 UTC, Colin Walters
committed Details | Review

Description Colin Walters 2010-06-07 15:56:18 UTC
Previously we were trying to match up remote windows with local
.desktop files, which is definitely wrong.  This patch just
makes things differently broken, but it's a step towards
correctness.

The right way to handle this needs design; we could create
a fake application for each host, or each (host, app) pair,
though the latter would require some way to do app matching
on a remote host.
Comment 1 Colin Walters 2010-06-07 15:56:21 UTC
Created attachment 162947 [details] [review]
[ShellWindowTracker] Don't try to track remote windows
Comment 2 drago01 2010-06-07 19:13:26 UTC
(In reply to comment #0)
> Previously we were trying to match up remote windows with local
> .desktop files, which is definitely wrong.  This patch just
> makes things differently broken, but it's a step towards
> correctness.

Hmm... I am not sure that the immediate step which basically make the situation worse does any us any good.

> The right way to handle this needs design; we could create
> a fake application for each host, or each (host, app) pair,
> though the latter would require some way to do app matching
> on a remote host.

Shouldn't we wait until we have a proper design before doing this or is there a specific issue you met where the current remove <-> local .desktop mapping caused issues?
Comment 3 Colin Walters 2010-06-07 19:16:20 UTC
(In reply to comment #2)
>
> Shouldn't we wait until we have a proper design before doing this or is there a
> specific issue you met where the current remove <-> local .desktop mapping
> caused issues?

For a different patch, I'm going to be using meta_window_get_pid, and I'm trying to prepare the code so that I'm only using that for local windows.
Comment 4 drago01 2010-06-07 19:18:56 UTC
(In reply to comment #3)
> (In reply to comment #2)
> >
> > Shouldn't we wait until we have a proper design before doing this or is there a
> > specific issue you met where the current remove <-> local .desktop mapping
> > caused issues?
> 
> For a different patch, I'm going to be using meta_window_get_pid, and I'm
> trying to prepare the code so that I'm only using that for local windows.

OK, we should probably open a different bug to get the design issues solved and to not loose track of it.
Comment 5 drago01 2010-06-07 19:19:55 UTC
Review of attachment 162947 [details] [review]:

Looks good, the style cleanup here has nothing to do with the actual change but meh ..
Comment 6 drago01 2010-06-07 19:23:15 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > (In reply to comment #2)
> > >
> > > Shouldn't we wait until we have a proper design before doing this or is there a
> > > specific issue you met where the current remove <-> local .desktop mapping
> > > caused issues?
> > 
> > For a different patch, I'm going to be using meta_window_get_pid, and I'm
> > trying to prepare the code so that I'm only using that for local windows.
> 
> OK, we should probably open a different bug to get the design issues solved and
> to not loose track of it.

Filed https://bugzilla.gnome.org/show_bug.cgi?id=620888 for this.
Comment 7 Colin Walters 2010-06-07 19:55:46 UTC
Created attachment 162966 [details] [review]
Don't try to track remote windows

Previously we were trying to match up remote windows with local
.desktop files, which is definitely wrong.  This patch simply
falls back to the app-from-window case for this; better handling
would need design.
Comment 8 drago01 2010-06-07 20:22:56 UTC
Review of attachment 162966 [details] [review]:

This is definitely better and feels less like a regression. (App Well and AppSwitcher don't ignore remote apps).
Comment 9 Colin Walters 2010-06-07 20:38:42 UTC
Attachment 162966 [details] pushed as 8aeadcd - Don't try to track remote windows