(OLD) (ARCHIVED) Puppy Linux Discussion Forum Forum Index (OLD) (ARCHIVED) Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

This forum can also be accessed as http://oldforum.puppylinux.com
It is now read-only and serves only as archives.

Please register over the NEW forum
https://forum.puppylinux.com
and continue your work there. Thank you.

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 27 Feb 2021, 12:32
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Create working desktop icons for Dosbox programs
Moderators: Flash, Ian, JohnMurga
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
solo


Joined: 14 Nov 2013
Posts: 390

PostPosted: Thu 07 Aug 2014, 12:00    Post subject:  Create working desktop icons for Dosbox programs
Subject description: which will also unload when the program ends
 

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:
#!/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:
#!/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.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0500s ][ Queries: 11 (0.0214s) ][ GZIP on ]