[Solved] Help making desktop launcher (Xfce) for a game + vkbasalt

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
Dude Guyman
Posts: 29
Joined: 2023-06-30 09:28
Has thanked: 4 times
Been thanked: 2 times

[Solved] Help making desktop launcher (Xfce) for a game + vkbasalt

#1 Post by Dude Guyman »

I figured out how to get vkbasalt (adds fxaa, smaa, antialiasing to a game) to pretty up Serious Sam games by using "ENABLE_VKBASALT=1 /home/username/Portable/SamTSE/Bin/SeriousSam" in the terminal. I would like to create a launcher/shortcut on the desktop or start menu to do the same thing but can't figure it out. If I put the above text (with the ENABLE_VKBASALT=1 part) as the command it just spits out errors. Without ENABLE_VKBASALT=1, it launches the game, but no vkbasalt.

Example: My menulibre-serious-sam-se.desktop file (start menu shortcut) contains this:

Code: Select all

[Desktop Entry]
Version=1.1
Type=Application
Name=Serious Sam SE
Comment=game
Icon=/home/username/Portable/SamTSE/SSTSE.ico
Exec=/home/username/Portable/SamTSE/Bin/SeriousSam
Actions=
Categories=Game;Shooter;
How could I change it so it activates vkbasalt when launched? If I just add it to the "Exec=" part, it just breaks the shortcut/launcher.
Last edited by Dude Guyman on 2023-09-03 12:26, edited 1 time in total.

dlu2021
Posts: 231
Joined: 2021-08-13 19:55
Location: Minnesota
Has thanked: 8 times
Been thanked: 43 times

Re: Help making desktop launcher (Xfce) for a game + vkbasalt

#2 Post by dlu2021 »

You could use the env command (man env), so the exec line would look like this:

Exec=env ENABLE_VKBASALT=1 /home/username/Portable/SamTSE/Bin/SeriousSam

Dude Guyman
Posts: 29
Joined: 2023-06-30 09:28
Has thanked: 4 times
Been thanked: 2 times

Re: Help making desktop launcher (Xfce) for a game + vkbasalt

#3 Post by Dude Guyman »

"Exec=env ENABLE_VKBASALT=1 /home/username/Portable/SamTSE/Bin/SeriousSam" results in the same or very similar error:

Failed to run SSTSE.desktop
GDBus.error:org.gtk.GDBus.UnmappedGError.Quark._g_2dexec_2derror_2dquark.Code8: Failed to execute child process "Exec=env" (no such file or directory)

The previous one was the same but ended with something like: "Failed to execute child process "ENABLE_VKBASALT" (no such file or directory)"

User avatar
yesh
Posts: 38
Joined: 2021-07-22 03:04
Has thanked: 4 times
Been thanked: 5 times

Re: Help making desktop launcher (Xfce) for a game + vkbasalt

#4 Post by yesh »

Dude, try the exec line like so:

Code: Select all

env ENABLE_VKBASALT=1 /home/username/Portable/SamTSE/Bin/SeriousSam
Image Stable Xfce / HP Notebook 15 BS143TU / Intel® Core™ i5-8250U / 8GB DDR4 2400Mhz / 1 TB SATA / Intel® UHD Graphics 620 (1366x768 15.6")

Dude Guyman
Posts: 29
Joined: 2023-06-30 09:28
Has thanked: 4 times
Been thanked: 2 times

Re: Help making desktop launcher (Xfce) for a game + vkbasalt

#5 Post by Dude Guyman »

That worked, Thank you very much! I totally spaced the first time and included the "exec=" bit in the "edit launcher" dialog, which would double it like "Exec=Exec=env ENABLE_VKBASALT=1 blah blah blah".

Post Reply