Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5995

Auto start python GUI app in Ubuntu startup

$
0
0

I have been written a python code by cv2 to select videocapture 0 and blur something appears in the video ouput then show the new output with img show in Ubuntu, it works fine by running the script manually but when I want to make it run automatically when ubuntu startup and I want to raise the audio that was coming from the videoCapture how can I do that.

I tried to run it using systemctl by creating file.service in /etc/systemd/system with this code

[Unit]Description=hashcode[Service]Type=simpleExecStart=/root/run.pyRestart=alwaysRestartSec=1sUser=root[Install]WantedBy=multi-user.target

But it's not working


Viewing all articles
Browse latest Browse all 5995

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>