Python Forum
Using Autostart to run a GUI program at startup. Rpi
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using Autostart to run a GUI program at startup. Rpi
#1
I have been using an autostart display.desktop file as explained in Sec. 3 here
to auto run a program on startup, and it works fine using for my python script.
[Desktop Entry]
Name=binDisplay
Exec=/usr/bin/python3  /home/user/pydisplay/Python/binDisplay.py
But using an executable file instead of the python script as below, does nothing on startup.
[Desktop Entry]
Name=binDisplay
Exec=/home/user/python/exec_package/dist/binDisplay
The binDisplay file launches from terminal and or by double-clicking, so it is valid.
When I launch it manually however, a dialog box opens asking if I want to execute it or cancel.
This dialog doesn't appear with autostart, is that an issue?

What am I doing wrong?
Any advice greatly appreciated.
Reply
#2
Hi @Edward_

I'm not an expert with .desktop file (you might want to ask you question on a linux / or even better an desktop environment forum.

You might even found some clue here (but yes it's not really digest.. )
https://specifications.freedesktop.org/d...atest.html

If it's a solution for you , you could pass an argument that confirm the launch or not.

Cheers.
[Image: NfRQr9R.jpg]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  how to startup canbus interface on pi korenron 2 2,246 Oct-24-2021, 09:51 PM
Last Post: DeaD_EyE
  Help with autostart homac 1 1,705 May-22-2021, 07:20 AM
Last Post: Gribouillis
  pexpect startup help korenron 2 3,502 Apr-27-2021, 07:23 AM
Last Post: korenron
  Error when running script on startup in Linux NoahTheNerd 0 1,974 Mar-07-2021, 04:54 PM
Last Post: NoahTheNerd
  Run script on startup in Debian with systemd? MrGlasspoole 5 3,677 Jul-12-2020, 11:48 AM
Last Post: MrGlasspoole
  autostart python scripts in background (Windows10) john36 4 7,729 Oct-01-2019, 01:36 PM
Last Post: john36
  run python script on startup? korenron 1 3,150 May-06-2019, 09:18 PM
Last Post: snippsat
  Python script runs on startup but does not register keystrokes. mericanpi 3 3,467 Sep-07-2018, 02:58 PM
Last Post: mericanpi
  Complete Beginner Startup - Simply run github code for hpd20 Image_Engine 8 4,747 Apr-23-2018, 11:15 PM
Last Post: snippsat
  How do I make RPi run script on startup? marciokoko 6 5,615 Feb-07-2017, 03:42 AM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020