GNOME Bugzilla – Bug 657203
gnome-shell could track remote windows better
Last modified: 2015-03-05 01:40:13 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)
Would an emblem for the separate remote app make sense, if we split the two icons out?
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.
*** This bug has been marked as a duplicate of bug 620888 ***