-
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
![Cisco Catalyst C9300-24UX-A 24 Port 10G/mGig Copper UPOE Network Switch picture](/store/img/g/UdkAAOSwDmpmMtqf/s-l225/Cisco-Catalyst-C9300-24UX-A-24-Port-10G-mGig-Coppe.jpg)
Cisco Catalyst C9300-24UX-A 24 Port 10G/mGig Copper UPOE Network Switch
$475.00
![Cisco 3560CG Series 8 Port POE Network Switch WS-C3560CG-8PC-S picture](/store/img/g/fjkAAOSweShmcw9Z/s-l225/Cisco-3560CG-Series-8-Port-POE-Network-Switch-WS-C.jpg)
Cisco 3560CG Series 8 Port POE Network Switch WS-C3560CG-8PC-S
$80.00
![Cisco WS-C2960X-48FPD-L 48 V07 POE+ GE+2 10G SFP+, LAN BASE 740W w/ C2960X-Stack picture](/store/img/g/cqoAAOSwtYVmS7LQ/s-l225/Cisco-WS-C2960X-48FPD-L-48-V07-POE-GE-2-10G-SFP-LA.jpg)
Cisco WS-C2960X-48FPD-L 48 V07 POE+ GE+2 10G SFP+, LAN BASE 740W w/ C2960X-Stack
$140.00
![CISCO MERAKI MS120-24P-HW 24-PORT GIGABIT CLOUD MANAGED PoE SWITCH - UNCLAIMED picture](/store/img/g/uj4AAOSw8hhmYQRm/s-l225/CISCO-MERAKI-MS120-24P-HW-24-PORT-GIGABIT-CLOUD-MA.jpg)
CISCO MERAKI MS120-24P-HW 24-PORT GIGABIT CLOUD MANAGED PoE SWITCH - UNCLAIMED
$103.74
![Cisco C3850-NM-2-10G 2 Port Network Exp.Module for 3850 picture](/store/img/g/yEAAAOSwxVReIhma/s-l225/Cisco-C3850-NM-2-10G-2-Port-Network-Exp-Module-for.jpg)
Cisco C3850-NM-2-10G 2 Port Network Exp.Module for 3850
$30.99
![GENUINE Cisco SFP-10G-SR V03 SFP+ GBIC Transceiver Module 10-2415-03 picture](/store/img/g/tAkAAOSwdENkHItI/s-l225/GENUINE-Cisco-SFP-10G-SR-V03-SFP-GBIC-Transceiver-.jpg)
GENUINE Cisco SFP-10G-SR V03 SFP+ GBIC Transceiver Module 10-2415-03
$6.80
![🔥🔥🔥 CISCO SFP-10G-SR V03 10-2415-03 850nm 10GBASE-SR SFP+ Multi Module 🔥🔥🔥 picture](/store/img/g/KTkAAOSwcmBisISE/s-l225/-CISCO-SFP-10G-SR-V03-10-2415-03-850nm-10GBASE-SR-.jpg)
🔥🔥🔥 CISCO SFP-10G-SR V03 10-2415-03 850nm 10GBASE-SR SFP+ Multi Module 🔥🔥🔥
$6.80
![Cisco SFP-10G-SR 10-2415-03 10 Gigabit Transceiver LOT OF 10 @ C picture](/store/img/g/oc8AAOSwCYRhKVrI/s-l225/Cisco-SFP-10G-SR-10-2415-03-10-Gigabit-Transceiver.jpg)
Cisco SFP-10G-SR 10-2415-03 10 Gigabit Transceiver LOT OF 10 @ C
$39.99
![Cisco Nexus N9K-C93108TC-EX 48-Port 10G RJ-45 6x100G QSFP Network Switch W/Ears picture](/store/img/g/5bAAAOSwPTRlZ7fl/s-l225/Cisco-Nexus-N9K-C93108TC-EX-48-Port-10G-RJ-45-6x10.jpg)
Cisco Nexus N9K-C93108TC-EX 48-Port 10G RJ-45 6x100G QSFP Network Switch W/Ears
$449.99
![Cisco WS-C3560CX-12PC-S 12 Port GbE PoE IP Base Catalyst Managed Switch, TESTED picture](/store/img/g/3uYAAOSwB5xlNrlG/s-l225/Cisco-WS-C3560CX-12PC-S-12-Port-GbE-PoE-IP-Base-Ca.jpg)
Cisco WS-C3560CX-12PC-S 12 Port GbE PoE IP Base Catalyst Managed Switch, TESTED
$174.00