You are not logged in.

#1 2024-09-30 18:28:06

tahoebunsen
Member
Registered: 2022-04-25
Posts: 18

Launch a Python program?

I've installed a few programs using Pip3, and they install at:

~/.local/lib/python3.9/site-packages

I'm not clear on how to launch these programs (and/or where to put them or link to them for ease of launching).

Any suggestions?

Thank you.

Last edited by tahoebunsen (2024-10-04 01:58:25)

Offline

#2 2024-11-30 00:48:10

melodie
Member
Registered: 2024-11-29
Posts: 15

Re: Launch a Python program?

tahoebunsen wrote:

I've installed a few programs using Pip3, and they install at:

~/.local/lib/python3.9/site-packages

I'm not clear on how to launch these programs (and/or where to put them or link to them for ease of launching).

Any suggestions?

Hello,
first, are they cli programs or gui programs? How and at what moment do you want them to be started? Automatically at login? During boot time? On the fly during the session when you need one or several of them?

Else:
- Are they executable? (-rwxr-xr-x ?)
- Did you add *~/.local/lib/python3.9/* in the $PATH of the executables? (If you don't know what that is, you could search for "Setup $PATH to executables" on the web).
- If there is a GUI application, have you before had a look at the syntax of *.desktop files in the /usr/share/applications directory? If you want them to be started from menus, you can have one such as them in your ~./local/share/applications directory, or in /usr/share/applications if you want them usable for several users.
- Same thing, with a desktop file : if you want an app to start with the session, you need to create a desktop file and add it to /etc/xdg/autostart (and give it the right permissions, and rights, which should be "root root" and "-rw-r--r--" (644). You can have a look there and seen how they are written, too, and there are related docs at freedestkop (dot) org.

Offline

#3 2024-12-01 17:16:34

tahoebunsen
Member
Registered: 2022-04-25
Posts: 18

Re: Launch a Python program?

Thanks for your response and guiding questions, melodie. Much appreciated. Researching...

Offline

Board footer

Powered by FluxBB