Why don't "link to application" icons have a RMB menu "Run" option?

I’m using multiple (3) Firefox profiles, so I want to run firefox like:

firefox -P secure
firefox -P privacy
firefox -P default-release

where the -P flags are the profile names
Basically the first two are hardened in various ways with MultiAccount containers and other changes and I use the default-release one for everything else. That all generally works fine.

Instead of dealing with the Profile manager, I created three “Link to Application” icons using the KDE desktop menu (“Create New” → “Link to Application…” ). I set up the respective “Program” and “Arguments” to be like

Program:      firefox
Arguments:   -P default-release --no-remote %u

using the default one as an example, and I make the name on the icon refer to the profile it is. The issue is that on one of my slower laptops (Dell Inspiron 7559, Skylake cpu), the double click on the icon to get it to run is super finicky for some reason. I have to double click on it over and over until after about 10 times I finally click on it just right to start. My faster laptop doesn’t have this problem but it’s totally different:

good laptop: MSI Bravo 15, AMD Ryzen 7 4800H with 16 GB ram, Navi 14 [Radeon RX 5500/5500M] and Navi
bad laptop: Dell Inspiron 7559, Skylake i7-6700HQ, 16GB ram, Intel HD Graphics 530 i915

I’m guessing the “double click problem” has something to do with Dell being slower and old.

So what I’d prefer to do is just RMB click on the icon and select “Run” from the menu (you’d think there’d be a Run selection on the icon’s menu since it’s a “link to application” right?). But on the Icon there is no such option in the menu. So why is that?

The clicking thing is so tedious that I gave up and use Krunner (Alt+Space) to run a script I wrote like: “runp d” would run firefox with the “default” profile:

#!/bin/bash
#    ~/bin/runp  [ d, p, s ] firefox or [arg] for a general program
# run firefox as a profile or if arg1 is a string run that
#

profile=''
case "$1" in
    d)
        profile="default-release"
        ;;
    s)
        profile="secure"
        ;;
    p)
        profile="privacy"
        ;;
esac

if [[ -n "$profile" ]]; then
    firefox -P $profile --no-remote
else
    exec "$1"
fi

But I’d really rather avoid that and just click the icon (fix the double click finickiness or just have a 'run" option in the menu). Is there some way to do that?

Don’t know about a run option but I have created .desktop files for each of my Firefox profiles in $HOME/.local/share/applications so they now all show up in Krunner.

I used the “link to application” from desktop RMB menu (Create New → Link to Application) and it puts the desktop file by default into ~/Desktop
So my three firefox desktop files are in ~/Desktop

UPDATE : Taking a hint from your applications directory comment, what I’ve done now is made links from ~/.local/share/applications/ for each of those three customized Firefox desktop files I made in ~/Desktop/

~/.local/share/applications $ ls -l firefox*
lrwxrwxrwx. 1 user user 41 May 14 17:31 firefox-default.desktop -> /home/user/Desktop/firefox-default.desktop
lrwxrwxrwx. 1 user user 41 May 14 17:31 firefox-privacy.desktop -> /home/user/Desktop/firefox-privacy.desktop
lrwxrwxrwx. 1 user user 40 May 14 17:31 firefox-secure.desktop -> /home/user/Desktop/firefox-secure.desktop

after this, Krunner shows the firefox’s for each profile. That’s a pretty good solution.

It still seems wrong/broken design that exe icons for programs in KDE don’t have a menu item in the icon to simply run them.

Just a couple additional thoughts:

1 Like

I don’t like the single click thing, it does inappropriate things in some non-exe cases. I put in a comment on the 404290 issue then noticed it was dead since 2019 (age of the last comment before mine)… they’ll probably never do it.

Never say never :slight_smile: Quoting myself only so it’s clear that the info was from a post from a couple months ago!