How to run Python script on boot?

Goo day. I want to run a py script on boot. This is my code

import subprocess




I know it’s simple I just want to test and experiment with the terminal. What should I do so that everytime I boot, this script is executed? Thanks

Hello @soumi :wink:

First this is a temporary mount:


which will only mounted there if a user triggers the mount process in the file manager. Bad place for a script which have to run on boot.

Better would be:


On KDE there is a autostart setting: System Settings/Autostart - KDE UserBase Wiki


This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.