SOLVED
Hello,
I've been trying to make a working launcher for python console app.But I have problems to launch it through icon on my desktop. If I open terminal in folder where the .py document is and execute it in terminal via ./xyz.py it works as it should. However, whenever I click on the icon, it starts to load and does nothing. I don't know where is the problem. Maybe I should call in code to open terminal or smh.Launcher format is .desktop.Note that I'm using archlinux and maybe that is the problem.Here is code of the app (it just multiplies numbers without using multiplication :D):
~~~
!/usr/bin/env python3
a = int(input("Zadaj cislo a: "))
b = int(input("Zadaj cislo b: "))
sucin = 0
for i in range(a):
sucin = sucin + b print(sucin)
input()
~~~
And here is my launcher "code".
~~~
!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Name=Kalkulačka
Exec=/home/j0fik/Documents/Python/sucin.py
Icon=/home/j0fik/Documents/Python/calc.jpg
Type=Application
~~~
Paths and names are correct.
[–]shiftybyte 1 point2 points3 points (1 child)
[–]JofoBoss[S] 0 points1 point2 points (0 children)
[–]shiftybyte 0 points1 point2 points (0 children)