You are not logged in.

#1 2015-11-26 22:01:18

12eason
Banned
Registered: 2010-07-20
Posts: 103

closer integration with virtualbox

I'm trying to get seamless mode a bit more seamless. I've created desktop files for the applications in the guest I'd like to run, the exec line runs something like:

VBoxManage guestcontrol win7 run --exe "C:\Program Files\Microsoft Office\Office15\EXCEL.exe" --username gram

Which starts excel in a running guest. When run from the console, the command exits when the application is closed within the guest, and likewise when you Ctrl+C from the console the application closes in the guest.
I want to replace the Exec line with a script that first checks that the virtual machine is running, starts it if needed, then runs the above command. That's the easy part. I'd like help figuring out how to link that command to a new entry in the Window list/taskbar in linux. Is it possible via a shell script?

Offline

#2 2015-11-27 14:10:11

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: closer integration with virtualbox

I believe most task bars are following the VM_CLASS of a window, which in this case is always "VirtualBox". I think there's no way linux taskbars could recognize different applications running on the guest if that's what you're after.

Depending on which launcher/taskbar you're using, the "StartupWMClass" desktop entry key could be useful though: http://standards.freedesktop.org/deskto … 01s05.html

Offline

#3 2015-11-28 06:28:36

12eason
Banned
Registered: 2010-07-20
Posts: 103

Re: closer integration with virtualbox

Thanks, but there's no need for linux to be aware of the guest applications in this case, because the VBoxManage guestcontrol command runs as an independent process on the host. Is there any way to add a WM_CLASS to a generic process running in the console? Seems like there's no way other than creating an x window for it.

Last edited by 12eason (2015-11-28 06:46:00)

Offline

Board footer

Powered by FluxBB