-
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
JUNIPER ELECTRONICS NFX250-ATT-LS1
$250.00
Juniper Networks EX3300 EX3300-48P 48-Port Gigabit PoE+ Switch
$37.24
Juniper Networks EX3300 EX3300-48P 48-Port Gigabit PoE+ Switch
$59.95
Juniper EX3300-48P 48-Port 10/100/1000BASE-T (48 PoE+ ports) with 4 SFP+
$74.00
Juniper EX3300-48P, 48 Port PoE+ Gigabit Network Switch with RACK EARS, RESET
$46.99
Juniper EX2300-48P 48-Port Gigabit Ethernet Switch PoE+ 4x SFP+ Power Cable
$104.40
Juniper EX4200-48PX 48-PORT 10/100/1000BASET PoE Ethernet Switch
$38.87
JUNIPER EX4200-24PX 24-Port Gigabit PoE+ Managed Ethernet Network Switch
$49.95
Juniper Networks EX2300-C-12T Compact 12-Port EX2300-C Series Ethernet Switch
$300.00
JUNIPER SRX340 SERVICE GATEWAY APPLIANCE Tested/Working #73
$111.99