Score:0

how to make a desktop application for a .py file

mx flag

I am trying to open my user interface via desktop application. In order to do that, i have this:

app.desktop: located in /usr/share/applications

[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=App
Comment=Runs my script
Exec=/home/usr/Desktop/aplication.sh
Icon=/home/usr/Desktop/photo.png
Terminal=true

aplication.sh: located in Desktop

#!/bin/bash

gnome-terminal -- bash -c "python3 /home/usr/Desktop/user_interface.py; bash"

It launches the user interface, bur when I click the buttons on it, then it doesn't show anything. But if I just run python3 user_interface.py , it works well.

Does someone knows the problem?

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.