Create working desktop icons for Dosbox programs

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
User avatar
solo
Posts: 389
Joined: Thu 14 Nov 2013, 20:33

Create working desktop icons for Dosbox programs

#1 Post by solo »

First of all, you'll have to determine whether your preference is to run Dosbox fullscreen, or windowed.
If you prefer, like me, to play your DOS games fullscreen, you go to ROX-filer in the Filesystem menu, and once opened, you'll click on the eye icon in the top toolbar, which will show the hidden files and folders.
Among the folders that have appeared, you will find one called .dosbox.
Open that one.
In this folder you will find a file called dosbox-(version-number).conf. Click on that, and it will open as a text file.
If you scroll down, you will find an entry that reads -fullscreen=false-, change this to -fullscreen=true-.
Now your Dosbox will start fullscreen by default.

Create a folder outside of your savefile at /mnt/home/, something called dosprogs, and make this the place to unzip and/or install your DOS programs.

To create a desktop icon for it, do the following:
Go to a text editor (Geany, or Leafpad) and create a new text file. Now place this as code:

Code: Select all

#!/bin/bash
#Start -name of program-
dosbox -c "mount c /mnt/home/dosprogs" -c "c:" -c "cd -folder name-" -c "-name of executable-" -c "exit"
Now, Dosbox cannot handle long folder names, so any name longer than 8 characters will get abbreviated in Dosbox, so if you made a folder called, Wolfenstein, for instance, then Dosbox would recognize this as WOLFEN~1, so use that as folder name in your code.
In the Wolfenstein example, my code would be:

Code: Select all

#!/bin/bash
#Start Wolfenstein 3D
dosbox -c "mount c /mnt/home/dosprogs" -c "c:" -c "cd WOLFEN~1" -c "WOLF3D" -c "exit"
You can easily determine which of the files within your DOS program folder is the executable by looking inside the folder and looking at two types of files. Most likely, it is a *.EXE file, but sometimes it may be a *.BAT file. Executables often carry the name of the program itself, or an abbreviation of that, but sometimes they are called things like RUNME or START.

Save your text file in an obvious folder, my-applications perhaps, and give it executable rights (right-click, permissions).

Now, with ROX-filer open in your folder in which you keep the scripts you just made, leftclick on one of the scripts and drag them to your desktop.

Once they are on your desktop, you may want to assign a picture to it as an icon. You do this by richt-click on your script, go to -File nameofscript- and then to -set icon-.

There, now you have a desktop icon to open your DOS programs, and if your close your DOS program, you should go back to your desktop again.

Post Reply