Score:0

Self build executable can only be executed via context menu "run as a program"

fi flag

I am using Ubuntu 22.04.2 LTS

I have created an executable using pyinstaller and copied it to the desktop. The problem is that it does not open when double-clicked.

However, if you open the desktop as a folder, it will double-click and run.

Also, right-clicking it on the desktop and selecting "run as program" works. Is there a way to make it run when double-clicked on the desktop?

ll returns the following:

-rwxr-xr-x  1 mygroup myuser 239950848 Jul  3 15:42 test*
raj avatar
cn flag
raj
As far as I remember, GNOME removed the possibility of running executables by double-clicking directly on the desktop. You need a launcher (.desktop file) to run anything from the desktop.
Score:0
es flag

First, try running it from the command line. I guess that will work. Then try adding a .desktop file to your desktop to start it. See https://github.com/shundhammer/qdirstat/blob/master/src/qdirstat.desktop for an example.

sebwr avatar
fi flag
Yes the .desktop file was the solution for my problem. Thanks
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.