VOGONS


First post, by Papa Oz

User metadata
Rank Newbie
Rank
Newbie

I run dosbox under linux Mint XFCE. It runs fine and my program runs fine under it.

I created a .conf file specifically for my program. It works correctly when I start from a terminal, i.e.

dosbox -conf ~/.dosbox/specificconffile.conf

But when I put that same incantation into a linux launcher the -conf directive is ignored and the default config file is used.

I have tried specifying various working directories in the launcher without any luck. I tried with and without telling the launcher to "run in terminal", also no joy.

I guess I could just run from terminal but if I could get a launcher to work it would be nice.

Any help?

Reply 1 of 5, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

I suspect this is a problem with your launcher and not with DOSBox. Some launchers require you to specify directives (or arguments) in a separate box from the program name.

Are you able to run other programs with arguments, like firefox -p ?

Reply 2 of 5, by Papa Oz

User metadata
Rank Newbie
Rank
Newbie

Thanks, Jorpho, for your response. I googled to be sure I was setting up the launcher correctly, and I think I was. I looked at a couple of other launchers and they were able to pass arguments to their target programs OK. So I guess there is something specific between the Nemo launcher and DOSBox that is causing my problem.

I have created a quick and easy work-around: I made a one line script to invoke DOSBox with the required arguments, then invoked the script from the launcher. Works fine, problem solved.

Your resopnse put me on the track toward this solution and I thank you for it. 😀

Reply 3 of 5, by M-HT

User metadata
Rank Member
Rank
Member

I think the problem is ~.
~ is expanded into your home directory by the shell. The launcher doesn't expand ~, so dosbox can't find the conf file.
Try putting the full path of the conf file in the launcher - /home/.../.dosbox/specificconffile.conf .

Reply 4 of 5, by Papa Oz

User metadata
Rank Newbie
Rank
Newbie

Hello M-HT

You nailed it. 😀

Now I can make other launchers without fooling around with unnecessary scripts.
Thank you.

Reply 5 of 5, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

That is a solution well worth to keep in mind. There will always be that one program that doesn't know what to do with ~/...
So I try to test it always whether to use the full path or the short version...

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper