Changeset 28664 in vbox for trunk/src/VBox/Frontends/VBoxShell
- Timestamp:
- Apr 23, 2010 4:42:51 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 60535
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
r28658 r28664 1244 1244 return 0 1245 1245 cmd = ' '.join(args[1:]) 1246 1246 1247 try: 1247 1248 os.system(cmd) … … 1571 1572 return 0 1572 1573 1573 1574 1574 def findDevOfType(ctx,mach,type): 1575 1575 atts = ctx['global'].getArray(mach, 'mediumAttachments') … … 1931 1931 dev = args[2] 1932 1932 cmdExistingVm(ctx, mach, 'guestlambda', [usbctr,False,dev]) 1933 return 0 1934 1935 1936 def guiCmd(ctx,args): 1937 if (len(args) > 1): 1938 print "usage: gui" 1939 return 0 1940 1941 binDir = ctx['global'].getBinDir() 1942 1943 vbox = os.path.join(binDir, 'VirtualBox') 1944 try: 1945 os.system(vbox) 1946 except KeyboardInterrupt: 1947 # to allow interruption 1948 pass 1933 1949 return 0 1934 1950 … … 2000 2016 'detachUsb': ['Detach USB device from the VM: detachUsb win uui', detachUsbCmd, 0], 2001 2017 'listMediums': ['List mediums known to this VBox instance', listMediumsCmd, 0], 2002 'listUsb': ['List known USB devices', listUsbCmd, 0] 2018 'listUsb': ['List known USB devices', listUsbCmd, 0], 2019 'gui': ['Start GUI frontend', guiCmd, 0] 2003 2020 } 2004 2021 … … 2074 2091 commands['connect'] = ["Connect to remote VBox instance", connectCmd, 0] 2075 2092 commands['disconnect'] = ["Disconnect from remote VBox instance", disconnectCmd, 0] 2076 2093 2077 2094 vbox = ctx['vb'] 2078 2095 … … 2086 2103 checkUserExtensions(ctx, commands, home) 2087 2104 2088 hist_file=os.path.join(home, ".vboxshell _history")2105 hist_file=os.path.join(home, ".vboxshellhistory") 2089 2106 autoCompletion(commands, ctx) 2090 2107 2091 2108 if g_hasreadline and os.path.exists(hist_file): 2092 2109 readline.read_history_file(hist_file)
Note:
See TracChangeset
for help on using the changeset viewer.