This is my first post.
I have made a desktop entry file named "Word.desktop" and saved it in the path ~/.local/share/applications with the following content:
Code: Select all
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Application
Name=word
NoDsiplay=true
Exec=VBoxManage guestcontrol "Win07" run --exe "C:\Program Files (x86)\Microsoft Office\root\Office16\WINWORD.EXE" --username sbnwl --password myPassword
Name[en]=Word
Icon=/usr/share/icons/word.png
I am running a the windows guest (named Win07) in the Ubuntu host.
Now whenever I double click a word file in host file manager (here nautilus), for example mydoc.docx, the application Microsoft Word launches perfectly (in Win07) but it does not load the file mydoc.docx which is my intention. Instead, it opens a blank word document.
Can anyone suggest what is the proper command to be able to open mydoc.docx?
Or how to pass the file being double-clicked as argument the VBoxManage command?
Thank you in advance...