VOGONS

Common searches


First post, by cyb51862

User metadata
Rank Newbie
Rank
Newbie

How is it possible to shut your whole pc down upon exiting DOSBox?
I already found this link: https://www.dosbox.com/wiki/Talk:DOSBoxShortc … yboard_shortcut
But i have no idea how to implement that.
I'd really appreciate it, if someone can help me with that.
Btw. i use Linux
- Cyb

Reply 1 of 1, by root42

User metadata
Rank l33t
Rank
l33t

Which Linux distro do you use? If you use something based on systemd (Debian, Ubuntu) you can run DOSBox with a shellscript like this:

#!/bin/bash
dosbox
systemctl poweroff

Just put this in a text editor in a file called "dosbox.sh" in your home directory. Then do "chmod +x dosbox.sh" in a terminal, and then you can run the script via "./dosbox.sh" in the terminal. Use your favorite search engine on how to put this into an icon on your desktop or whatever you like best...

Alternatively "systemctl suspend" will suspend the machine, if that is more to your taste.

YouTube and Bonus
80486DX@33 MHz, 16 MiB RAM, Tseng ET4000 1 MiB, SnarkBarker & GUSar Lite, PC MIDI Card+X2+SC55+MT32, OSSC