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 625265 - allow specifying bookmark names on command line
allow specifying bookmark names on command line
Status: RESOLVED OBSOLETE
Product: vinagre
Classification: Applications
Component: VNC
2.28.x
Other Linux
: Normal enhancement
: ---
Assigned To: vinagre-maint
vinagre-maint
Depends on:
Blocks:
 
 
Reported: 2010-07-26 00:53 UTC by Tom Metro
Modified: 2021-05-26 09:24 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tom Metro 2010-07-26 00:53:03 UTC
With Vinagre 2.28.1 running on Ubuntu 9.10 I mistakenly assumed that I could specify the name of a bookmark on the command line. The resulting error:

Connection Closed
Connection to host <bookmark> was closed.

Lacked sufficient detail (such as saying "hostname not found") to suggest what I was doing wasn't possible.

I was also misled due to some of my bookmarks having names that are identical to the server's local hostname, and I had been using those names on the command line.

After closer scrutiny of the documentation, I learned that it is strictly host:port accepted on the command line.

This ticket is a suggestion to allow specifying bookmark names on command line. It could be implemented either with by having Vinagre look for a matching bookmark, the an automatic fallback to a DNS lookup, which would be the intuitive way, or by adding a new command line switch specifically for this purpose.
Comment 1 David King 2011-04-16 22:44:24 UTC
I like your suggestion to fallback to a DNS lookup if a bookmark is not found, which is similar to how the command-line ssh client works with aliases. The unhelpful error message is covered in bug 626415. Setting the target milestone to 3.4 for this enhancement.
Comment 2 Simon Sapin 2017-04-04 15:41:42 UTC
I was interested by this feature as well and found an (undocumented?) work-around by reading the code: when run from the command-line with a host name (and optionally a port, default is 5900), Vinagre will search for a bookmark with a matching host and port. If one is found, the bookmark’s extra setting (such as "Use host ___ as a SSH tunnel") will be used.

I created ~/.local/share/applications/EXAMPLE.desktop like so:

[Desktop Entry]
Name=EXAMPLE
Exec=vinagre localhost:5910
Icon=preferences-desktop-remote-desktop
Terminal=false
Type=Application
Comment 3 André Klapper 2021-05-26 09:24:52 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version of Vinagre, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new enhancement request ticket at
  https://gitlab.gnome.org/GNOME/vinagre/-/issues/

Thank you for your understanding and your help.