You are not logged in.

#1 2022-10-01 05:23:18

alfrednewman
Member
From: Canada
Registered: 2020-06-24
Posts: 3

[SOLVED] KDE doesn't listen to launch paramaters in .desktop file

I have a common issue with Discord that is described in the wiki, which can be solved by using this command to launch discord:

discord --ignore-gpu-blocklist --disable-features=UseOzonePlatform --enable-features=VaapiVideoDecoder --use-gl=desktop --enable-gpu-rasterization --enable-zero-copy

https://wiki.archlinux.org/title/Discor … our_guilds

Opening this in Konsole, it works for me, so I want to add it to Discord's .desktop file so I can launch discord without the lag from scrolling guilds right within KDE. I've tried various things, but KDE seems to ignore the extra parameters that I've added in the .desktop file.

I have tried editing the desktop file with nano, and this is what discord.desktop in .local/share/applications/discord.desktop looks like:

[Desktop Entry]
Name=Discord
StartupWMClass=discord
Comment=All-in-one voice and text chat for gamers that's free, secure, and works on both your desktop and phone.
GenericName=Internet Messenger
Exec=/usr/bin/discord --ignore-gpu-blocklist --disable-features=UseOzonePlatform --enable-features=VaapiVideoDecoder --use-gl=desktop --enable-gpu-rasterization --enable-zero-copy
Icon=discord
Type=Application
Categories=Network;InstantMessaging;
Path=/usr/bin

I tried replacing /usr/bin/discord with /opt/discord/discord since the bin is an alias but that dosen't seem to work either. Other advice I found online was that double dashes doesn't work -- , but replacing them with single dashes and this hasn't helped me either. Any idea on what to do next?

Last edited by alfrednewman (2022-10-04 06:16:43)

Offline

#2 2022-10-01 10:26:06

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,662

Re: [SOLVED] KDE doesn't listen to launch paramaters in .desktop file

Did you refresh the desktop file cache with https://wiki.archlinux.org/title/Deskto … op_entries ?

FWIW KDE has a menu editor when right clicking the application launcher that will appropriately do this for you.

Offline

#3 2022-10-04 06:25:16

alfrednewman
Member
From: Canada
Registered: 2020-06-24
Posts: 3

Re: [SOLVED] KDE doesn't listen to launch paramaters in .desktop file

Refreshing with the command worked for me, really sorry that I have not come across this article earlier! Sounds like something KDE should fix after clicking the save button.

update-desktop-database ~/.local/share/applications/

I marked this as solved

Offline

#4 2022-10-04 07:20:05

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,662

Re: [SOLVED] KDE doesn't listen to launch paramaters in .desktop file

The KDE launcher should update the entry on save, but you didn't indicate you were using that.

Offline

Board footer

Powered by FluxBB