Flatpak application, start from menu icon but with added command line options

I want start electrum from gnome menu without opening terminal but with these parameters:
flatpak run org.electrum.electrum --server localhost:50002:s --oneserver
I use Fedora 32. Is this possible? what to edit?

1 Like

https://developer.gnome.org/integration-guide/stable/desktop-files.html.en

2 Likes

this is a flatpak application…

Place this file in the /usr/share/applications directory so that it is accessible by everyone, or in ~/.local/share/applications if you only wish to make it accessible to a single user.

i can not find in these places any electrum.desktop file to edit…

Hi,

You will probably need to create one

Thanks Tom.

tjdoyle thanks for your response
application has already a gnome menu entry that i can use, i want to pass parameters on it

Hi,

Have you tried editing the Exec= in the entry and adding the extra paremeters?

Thanks Tom.

3 Likes

I cant find the desktop file in order to edit exec. Where is it? Not in expected places as i explained in previous post

Hi,

If you can’t find the existing gnome entry, for now I would just create one in:

~/.local/share/applications

Thanks Tom.

1 Like

Hi, try locate -i electrum.desktop to find where the desktop file is, it might be in /var/lib/flatpak/exports/share/applications. Copy the file to ~/.local/share/applications and do your changes. I found this related issue:

4 Likes

thanks ersen

so i found it here (and some other places also):
/var/lib/flatpak/exports/share/applications/org.electrum.electrum.desktop

Also the link helps a lot, very useful info.
I willy try to solve it later today or tomorrow and i inform what happened…

2 Likes

finally
i copied

org.electrum.electrum.desktop

from
/var/lib/flatpak/exports/share/applications/org.electrum.electrum.desktop

to direcory
~/.local/share/flatpak/exports/share/applications/

edited passing my options to Exec and everything is ok!

thanks all for your help especially ersen whose reply was closer to the solution!

2 Likes