-
How to autorun a X program?
I am remastering 6.7.1 Live CD. Which file(s) I have to modify so that my application ( wxGTK application) runs after booting. I can now boot up the remastered iso and run the application manually from Terminal in su mode.
I have checked all available links on the net including the Remaster document, using which I am anyway doing the remastering. So, please give me a specific answer ( I am waiting for 4 months) just to get this simple answer from other forums.
-
Senior Member
registered user
I suppose that you use the LXDE.
You could create the directory /home/knoppix/.config/autostart if it does not exist. The next step would be to create a .desktop file for your application, e. g. /home/knoppix/.config/autostart/mywxGTKApp.desktop. Since you like to run that program as root, you could try out the following
Code:
[Desktop Entry]
Name=mywxGTKApp
Type=Application
Exec=sudo /usr/local/bin/mywxGTKApp
Terminal=false
You can use your favourite text editor to create such .desktop file. You can read more about .desktop files on the page Desktop Enty Specification.
Of course there are other places (directories) where you could put a shell script that runs your application, but the way described above would ensure that the desktop environment is already up and running.
-
A stupid question by me:
Do I make this addition in myremasterfolder/source/KNOPPIX/home/knoppix/.config/autostart folder?
Or should I do a chroot and then make the changes?
-
Senior Member
registered user
You don't have to use the chroot environment if you can find the right folder. The .desktop file should be owned by the user knoppix. You can use the chown command to change user an group if necessary.
-
Thanks, and it worked like a charm.
I am not sure why I have to really scour the sea bed for pearls. Shouldn't all these be in a nice little book that contains all that the Gurus said?
Thanks again, it ends my six month's odyssey. I will have to start trimming and slimming my live CD now.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![AMD Ryzen 9 3950X Desktop Processor 4.7GHz, 16 Cores / 32 Threads, Socket AM4 picture](/store/img/g/biMAAOSwSCVmV5T9/s-l225/AMD-Ryzen-9-3950X-Desktop-Processor-4-7GHz-16-Core.jpg)
AMD Ryzen 9 3950X Desktop Processor 4.7GHz, 16 Cores / 32 Threads, Socket AM4
$249.99
![Intel - Core i9-14900K 14th Gen 24-Core 32-Thread - 4.4GHz (6.0GHz Turbo) Soc... picture](/store/img/g/YFUAAOSwTDplMDa3/s-l225/Intel-Core-i9-14900K-14th-Gen-24-Core-32-Thread-4-.jpg)
Intel - Core i9-14900K 14th Gen 24-Core 32-Thread - 4.4GHz (6.0GHz Turbo) Soc...
$533.99
![10th GEN INTEL Core i5-10400F 2.9GHz Socket-1200 Desktop CPU SRH3D Processor picture](/store/img/g/dPgAAOSwrWxmeHzS/s-l225/10th-GEN-INTEL-Core-i5-10400F-2-9GHz-Socket-1200-D.jpg)
10th GEN INTEL Core i5-10400F 2.9GHz Socket-1200 Desktop CPU SRH3D Processor
$69.99
![Intel Core i5-12500 LGA1700 3.0GHz 18MB CPU Processor SRL5V picture](/store/img/g/vYsAAOSw33tmeymm/s-l225/Intel-Core-i5-12500-LGA1700-3-0GHz-18MB-CPU-Proces.jpg)
Intel Core i5-12500 LGA1700 3.0GHz 18MB CPU Processor SRL5V
$124.99
![Intel i7-3770 SR0PK 3.40GHz 8MB 4-Core LGA1155 Socket CPU Processor picture](/store/img/g/SN4AAOSwxIRmWRvk/s-l225/Intel-i7-3770-SR0PK-3-40GHz-8MB-4-Core-LGA1155-Soc.jpg)
Intel i7-3770 SR0PK 3.40GHz 8MB 4-Core LGA1155 Socket CPU Processor
$29.99
![Intel Core i5-12400F - 6-Core 2.5GHz 12th Gen Alder Lake LGA 1700 65W CPU picture](/store/img/g/wucAAOSwFLxh1X-c/s-l225/Intel-Core-i5-12400F-6-Core-2-5GHz-12th-Gen-Alder-.jpg)
Intel Core i5-12400F - 6-Core 2.5GHz 12th Gen Alder Lake LGA 1700 65W CPU
$109.94
![Intel - Core i5-14600K 14th Gen 14-Core 20-Thread - 4.0GHz (5.3GHz Turbo) Soc... picture](/store/img/g/2f8AAOSw7ltlMDW2/s-l225/Intel-Core-i5-14600K-14th-Gen-14-Core-20-Thread-4-.jpg)
Intel - Core i5-14600K 14th Gen 14-Core 20-Thread - 4.0GHz (5.3GHz Turbo) Soc...
$305.99
![SR1XP Intel Xeon E5-2680 v3 12 Core 30MB 2.5GHz LGA 2011-3 Grade A Processor picture](/store/img/g/fEMAAOSwy1JmPnWm/s-l225/SR1XP-Intel-Xeon-E5-2680-v3-12-Core-30MB-2-5GHz-LG.jpg)
SR1XP Intel Xeon E5-2680 v3 12 Core 30MB 2.5GHz LGA 2011-3 Grade A Processor
$3.96
![Intel Xeon E5-2697 v4 2.3GHz 18-Core Processor CPU LGA2011 SR2JV picture](/store/img/g/9jsAAOSwMLFk75UZ/s-l225/Intel-Xeon-E5-2697-v4-2-3GHz-18-Core-Processor-CPU.jpg)
Intel Xeon E5-2697 v4 2.3GHz 18-Core Processor CPU LGA2011 SR2JV
$49.99
![Intel Core i5-10500T 6-Core 2.3GHz FCLGA1200 Desktop Processor picture](/store/img/g/NksAAOSw9yJmex8e/s-l225/Intel-Core-i5-10500T-6-Core-2-3GHz-FCLGA1200-Deskt.jpg)
Intel Core i5-10500T 6-Core 2.3GHz FCLGA1200 Desktop Processor
$79.99