Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6987

Troubleshooting • Config/autostart and Printers

$
0
0
Hi All

I've been working on a program, Basically a GUI which gathers information, Then Populates it into a Label Which is then Printed using Glabels3-batch. For reference it is named GUI-test2.py

My code works just fine if I Run it through Thonny, Or if I run through the terminal Command Line by typing " python3 GUI-test2.py"

So now I'm at the point where I would like to have it auto start on bootup, and apparently there are lots of ways to achieve this.

So I'm trying to use the method of adding a text file to the config/autostart folder, When I do this the program loads and runs as expected however my Printer becomes unresponsive. (Nothing even shows in Queue)

Here is a copy of the contents of that text file, I admit I really do not know what i'm doing in regards to writing these scripts I just copied and pasted a sample I Found (Changing file paths to suit of course)

[Desktop Entry]
Type=Application
Name=Label_Merge_Util
Exec=/usr/bin/python3 /home/andrew/Documents/GUI-test2.py

How can I make this work with the printer? or should I abandon this method for another approach?

Statistics: Posted by Andrew_2112 — Fri Nov 07, 2025 9:06 pm — Replies 0 — Views 50



Viewing all articles
Browse latest Browse all 6987

Trending Articles