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 676631 - Allow to open a machine from command line
Allow to open a machine from command line
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-05-23 11:28 UTC by Marc-Andre Lureau
Modified: 2016-03-31 13:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Allow to open a machine from command line (3.29 KB, patch)
2012-05-23 11:28 UTC, Marc-Andre Lureau
committed Details | Review

Description Marc-Andre Lureau 2012-05-23 11:28:43 UTC
If the name is not a file or a URI, lookup the machine
from the collection and open it.

This allows calling "gnome-boxes xp" to start and open
that VM for example.
Comment 1 Marc-Andre Lureau 2012-05-23 11:28:50 UTC
Created attachment 214748 [details] [review]
Allow to open a machine from command line
Comment 2 Zeeshan Ali 2012-05-23 20:29:51 UTC
Review of attachment 214748 [details] [review]:

ACK otherwise!

::: src/app.vala
@@ -147,0 +147,11 @@
+    public void open (string name) {
+        ui_state = UIState.COLLECTION;
+        view.visible = false; // to avoid some glitches
... 8 more ...

nitpick: newline before 'return' as per coding-style..
Comment 3 Marc-Andre Lureau 2012-05-23 23:04:00 UTC
Attachment 214748 [details] pushed as 82955dc - Allow to open a machine from command line