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 657203 - gnome-shell could track remote windows better
gnome-shell could track remote windows better
Status: RESOLVED DUPLICATE of bug 620888
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-08-23 21:10 UTC by Ray Strode [halfline]
Modified: 2015-03-05 01:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ray Strode [halfline] 2011-08-23 21:10:41 UTC
jrb mentioned to me today that some users ssh -Y to remote machines then forward xterm to the local machine so they have a shell to easily launch remote apps from.  Each forwarded xterm ends up showing up as a separate icon in the dash.

This is because of this code in shell-window-tracker.c, I think:

get_app_for_window (...)
{
...
if (meta_window_is_remote (window))
  return _shell_app_new_for_window (window);
...
}

That is to say all remote windows get assigned their own fake app instance independent of others, and that app instance isn't matched to any particular desktop file. It's interesting because lower in the get_app_for_window function a comment notes that doing _shell_app_new_for_window() is a last resort in the local case.  So I guess it should be a last resort in the remote case as well.

I think a better behavior would be to:

1) match the wmclass of remote windows against locally available desktop files so it gets the right icon etc (assuming there's a desktop file locally that matches)
2) assign all windows for a given remote host and wmclass to the same app (which would be a different app than the local instances)
3) include in the dash icon tooltip the hostname (just as the hostnames are included in the titlebar)
Comment 1 Jasper St. Pierre (not reading bugmail) 2011-08-24 00:43:46 UTC
Would an emblem for the separate remote app make sense, if we split the two icons out?
Comment 2 Ray Strode [halfline] 2011-08-24 03:03:05 UTC
Some sort of indication aside from the tooltip that it's remote might make sense.  exactly what probably needs feedback from one of the designers I guess.

Well, one thing to think about is there may be multiple remote hosts at play.  ON random idea... using /etc/favicon would be kind of neat.  Although, it's probably technically infeasible given we don't have access to the remote filesystem, and on most people don't change it anyway.
Comment 3 Florian Müllner 2015-03-05 01:40:13 UTC

*** This bug has been marked as a duplicate of bug 620888 ***