-
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
![HP ProLiant MicroServer Gen8 G8 G2020T 8GB RAM 4x 1TB HDD 4x 3.5](/store/img/g/K8UAAOSwJsRmYJSK/s-l225/HP-ProLiant-MicroServer-Gen8-G8-G2020T-8GB-RAM-4x-.jpg)
HP ProLiant MicroServer Gen8 G8 G2020T 8GB RAM 4x 1TB HDD 4x 3.5" 712318-421
$269.99
![Super micro Server picture](/store/img/g/PNgAAOSweU1mSkvR/s-l225/Super-micro-Server.jpg)
Super micro Server
$198.00
![1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE picture](/store/img/g/7KoAAOSwephiKTf4/s-l225/1U-Supermicro-Server-10-Bay-2x-Intel-Xeon-3-3Ghz-8.jpg)
1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE
$273.00
![1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports picture](/store/img/g/fxsAAOSwZD5l6PSG/s-l225/1U-BareMetal-pfsense-opnsense-Router-Firewall-DNS-.jpg)
1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports
$149.00
![HP ProLiant MicroServer Gen8 | Intel XEON E3-1220L V2 | 8GB RAM | NO HDD | 4 BAY picture](/store/img/g/p6EAAOSwhsBmadiy/s-l225/HP-ProLiant-MicroServer-Gen8-Intel-XEON-E3-1220L-V.jpg)
HP ProLiant MicroServer Gen8 | Intel XEON E3-1220L V2 | 8GB RAM | NO HDD | 4 BAY
$249.99
![HPE ProLiant MicroServer Gen10 AMD Opteron X3216 8GB RAM No HDDs picture](/store/img/g/Va8AAOSw4hlmaJTu/s-l225/HPE-ProLiant-MicroServer-Gen10-AMD-Opteron-X3216-8.jpg)
HPE ProLiant MicroServer Gen10 AMD Opteron X3216 8GB RAM No HDDs
$325.00
![SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount picture](/store/img/g/MFoAAOSwQYhmavYc/s-l225/SuperMicro-Server-505-2-Intel-Atom-2-4GHz-8GB-RAM-.jpg)
SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount
$202.49
![CSE-819U SUPERMICRO 6018U 1U BAREBONE SERVER 4LFF 2x HS 2x PSU X10DRU-I+ picture](/store/img/g/90MAAOSwFrBmXlBr/s-l225/CSE-819U-SUPERMICRO-6018U-1U-BAREBONE-SERVER-4LFF-.jpg)
CSE-819U SUPERMICRO 6018U 1U BAREBONE SERVER 4LFF 2x HS 2x PSU X10DRU-I+
$138.00
![2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL picture](/store/img/g/qa4AAOSwMxNk76rN/s-l225/2U-12-Bay-SAS3-SuperMicro-Server-6028U-TR4T-W-X10D.jpg)
2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL
$299.00
![1U 20](/store/img/g/Id0AAOSwjeBkikov/s-l225/1U-20-Short-Depth-Server-Firewall-PFSense-X11SSH-F.jpg)
1U 20" Short Depth Server Firewall PFSense X11SSH-F Xeon 3.5Ghz 32GB RAM NVME
$247.00