Results 1 to 5 of 5

Thread: How to autorun a X program?

  1. #1
    Junior Member
    Join Date
    Aug 2012
    Posts
    14

    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.

  2. #2
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    512
    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.

  3. #3
    Junior Member
    Join Date
    Aug 2012
    Posts
    14
    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?

  4. #4
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    512
    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.

  5. #5
    Junior Member
    Join Date
    Aug 2012
    Posts
    14
    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
  •  


Lot of 50 - 4GB PC3 DDR3 Mixed Speeds Laptop RAM Mix Brand TESTED picture

Lot of 50 - 4GB PC3 DDR3 Mixed Speeds Laptop RAM Mix Brand TESTED

$75.00



A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$13.99



Micron 8GB DDR4 1Rx16 PC4-3200AA Laptop RAM Memory MTA4ATF1G64HZ-3G2E2 picture

Micron 8GB DDR4 1Rx16 PC4-3200AA Laptop RAM Memory MTA4ATF1G64HZ-3G2E2

$10.00



EDGE SK Hynix 16GB (2 x 8GB) PC3L-12800S DDR3 SODIMM Laptop RAM NEW picture

EDGE SK Hynix 16GB (2 x 8GB) PC3L-12800S DDR3 SODIMM Laptop RAM NEW

$16.95



Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3 picture

Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3

$22.45



[ BULK LOT OF 20 ] UNITS of 8GB DDR4 Laptop RAM SAMSUNG, HYNIX etc. picture

[ BULK LOT OF 20 ] UNITS of 8GB DDR4 Laptop RAM SAMSUNG, HYNIX etc.

$179.99



Team T-FORCE VULCAN Z 16GB (2 x 8GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) Intel picture

Team T-FORCE VULCAN Z 16GB (2 x 8GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) Intel

$33.99



Team T-FORCE VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3600 (PC4 28800) Memory picture

Team T-FORCE VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3600 (PC4 28800) Memory

$57.99



128GB Kit 4x 32GB PC4-17000 LRDIMM DELL POWEREDGE R730xd R730 R630 Memory RAM picture

128GB Kit 4x 32GB PC4-17000 LRDIMM DELL POWEREDGE R730xd R730 R630 Memory RAM

$127.96



Set Of 10 Samsung (1 x 8GB) PC4-21300 So DIMM So(DDR4-2666) Memory -  SET OF 10 picture

Set Of 10 Samsung (1 x 8GB) PC4-21300 So DIMM So(DDR4-2666) Memory - SET OF 10

$100.00