https://bugs.kde.org/show_bug.cgi?id=492754
Bug ID: 492754 Summary: "Command or Script" shortcuts completely break desktop files Classification: Applications Product: systemsettings Version: 6.1.4 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: plasma-b...@kde.org Reporter: brodierobertson54...@gmail.com Target Milestone: --- SUMMARY When you make a "Command or script" shortcut Plasma makes a desktop file in ~/.local/share/applications for running that command. The name of the file is the command used that is command, for additional shortcuts on the same command a number is a appended to the name as in command-2.desktop, command-3.desktop, etc. Where this becomes a problem is with the first command which is called command.desktop, not appending any number which creates a local user override for that command. For user scripts this isn't a problem but when that command is an application on your system like alacritty, where it will generate alacritty.desktop if the first shortcut made isn't simply just opening the application, any options being passed into the application will be used by desktops that naively use the desktop file to open the application such as COSMIC. For users that only ever use Plasma this isn't an issue but for people that run multiple desktops it causes Plasma to break the basic behavior on those desktops, and when you fix it on those desktops it breaks the shortcut on Plasma STEPS TO REPRODUCE 1. Make a "Command or Script" passing options into the application in Plasma 2. Pin that command to the COSMIC system tray 3. Open the pinned application in COSMIC SOLUTION Never use the base name of the command for these additional desktop files being generated, always append a number to it. My preferred solution would be stop generating desktop files for the Plasma shortcut system but that would be a much bigger solution to deploy. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Arch Linux KDE Plasma Version: 6.1.4 KDE Frameworks Version: 6.5.0 Qt Version: 6.7.2 -- You are receiving this mail because: You are watching all bug changes.