Fmstrat / Fmstrat/winapps

Add menu entries to control the VM

Open
#211 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Shell
Stars
10.3k
Forks
452
PR merge metrics
No merged PRs in 30d

Description

It would be cool if you could add menu entries to control the VM without opening a terminal. I was able to add this by editing the `windows.desktop` file:

![Bildschirmfoto von 2021-04-13 11-36-20](https://user-images.githubusercontent.com/29987831/114531801-83f12a80-9c4c-11eb-8c87-57bcca44a3c4.png)

To do this, add the following to the `[Desktop Entry]` section in the `windows.desktop`:

```
Actions=start-vm;shutdown-vm;reboot-vm;suspend-vm;resume-vm;stop-vm;reset-vm;
```

And add these new sections:

```
[Desktop Action start-vm]
Name=Start VM
Exec=virsh start RDPWindows

[Desktop Action shutdown-vm]
Name=Shut down VM
Exec=virsh shutdown RDPWindows

[Desktop Action reboot-vm]
Name=Reboot VM
Exec=virsh reboot RDPWindows

[Desktop Action suspend-vm]
Name=Suspend VM
Exec=virsh suspend RDPWindows

[Desktop Action resume-vm]
Name=Resume VM
Exec=virsh resume RDPWindows

[Desktop Action stop-vm]
Name=Force stop VM
Exec=virsh destroy RDPWindows

[Desktop Action reset-vm]
Name=Force restart VM
Exec=virsh reset RDPWindows
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.