Menu launcher doesn't work with parameters

Menu launcher doesn't work with parameters

Postby Hitmark7 on Tue Jan 29, 2013 3:10 am

Hi everybody.

I'm trying to create a menu launcher for the old Hexen game in my Linux Mint 13. In order to do this, I need to run DOSbox with some parameters. I've made the launcher directly on the desktop and it works fine, but adding it to the main menu seems to break the DOSbox parameters. It runs without they. This is the content of the launcher file:

Code: Select all
#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Categories=Games;
Icon=/media/Datos/Joan/Juegos/MS-DOS/Hexen/hexen.png
Name=Hexen - Beyond Heretic
Comment=Id Software, 1995
Exec=dosbox -c 'cd Hexen' -c 'hexen.EXE' -scaler normal3x


If I run it from ~/Escritorio/Hexen.desktop and it works fine, but from ~/.local/share/applications/Hexen.desktop , the default path for menu launchers, runs dosbox without the specified parameters.

Is this a bug? I've made some mistake?

Thanks for your replies!
Hitmark7
Level 1
Level 1
 
Posts: 2
Joined: Tue Jan 29, 2013 2:53 am

Linux Mint is funded by ads and donations.
 

Re: Menu launcher doesn't work with parameters

Postby viking777 on Tue Jan 29, 2013 9:15 am

Try it without the shebang: #!/usr/bin/env xdg-open
Dot Desktop files don't have a shebang - at least not any that I have got.
I don't guarantee that is the answer but it's worth a try.
Fujitsu Lifebook AH532. Intel i5 processor, 6Gb ram, Intel HD3000 graphics, Intel Audio/wifi. Realtek RTL8111/8168B Ethernet.Lubuntu 13.10,Ubuntu12.10 (Unity), Mint16 (Cinnamon), Manjaro (Xfce).
Image
User avatar
viking777
Level 14
Level 14
 
Posts: 5153
Joined: Mon Dec 01, 2008 11:21 am

Re: Menu launcher doesn't work with parameters

Postby Hitmark7 on Wed Jan 30, 2013 3:29 am

I've removed the shebang and nothing changed. Also, I have a lot of auto generated shebanged .desktop files here at ~/.local/share/applications .

Curiosly, trying to open the shebanged files makes Pluma to hang. I had to edit they with Kate or Nano.
CanvasBooster - A free software library written in JavaScript, for working with HTML5 Canvas element easier and faster.
Hitmark7
Level 1
Level 1
 
Posts: 2
Joined: Tue Jan 29, 2013 2:53 am


Return to MATE

Who is online

Users browsing this forum: No registered users and 4 guests