Issue
On my main system, I have a global keyboard shortcut configured in System Settings, executing the command firefox --private-window. This works as expected, and opens a new window in private browsing mode, while a different shortcut e.g. firefox --new-window opens a new window with the default profile and “normal“ mode.
So far so good. On a second system, running the same OS and KDE version, I installed the Firefox flatpak instead of the package. Running the command flatpak run firefox --private-window works as expected from konsole, however, configuring a shortcut in System Settings with the exact same command, does NOT behave as expected, and instead opens up a normal new Firefox window, instead of one in private browsing mode.
I already tried deleting the shortcut, reopening System Settings and creating it again, but to no avail. flatpak run firefox --private-window keeps working as expected from the terminal, but not when executed through whatever executes commands configured in System Settings > Keyboard > Shortcuts > Commands.
I can work around this issue by creating a .desktop file and assigning it the same intended shortcut, but that clutters the menu with an unnecessary entry and I still can not explain the observed behavior.
Does anyone here have an idea or straight up knows why the execution of flatpak commands seemingly gets it’s arguments stripped when invoked through system keyboard shortcuts in the keyboard section?
System Information
main system
Operating System: Nobara Linux 42
KDE Plasma Version: 6.5.2
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.3
Kernel Version: 6.17.7-200.nobara.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor
Memory: 32 GiB of RAM (31,3 GiB usable)
Graphics Processor: AMD Radeon RX 7800 XT
second system with the issue
Operating System: Nobara Linux 42
KDE Plasma Version: 6.5.2
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.3
Kernel Version: 6.17.7-200.nobara.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-10510U CPU @ 1.80GHz
Memory: 16 GiB of RAM (15,3 GiB usable)
Graphics Processor: Intel® UHD Graphics