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
  •  


Mini External OLED AMIGA Gotek Floppy Drive Emulator For Amiga 500/500+/600/1200 picture

Mini External OLED AMIGA Gotek Floppy Drive Emulator For Amiga 500/500+/600/1200

$40.46



TF536: an Amiga 500 accelerator with 68030/50, 64MB RAM, IDE interface+CF card picture

TF536: an Amiga 500 accelerator with 68030/50, 64MB RAM, IDE interface+CF card

$209.87



Commodore Amiga 3000 030 25Mhz + Keyboard + Mouse - Amiga OS 3.2 - WORKS 100% picture

Commodore Amiga 3000 030 25Mhz + Keyboard + Mouse - Amiga OS 3.2 - WORKS 100%

$1699.99



Amiga 500 Gotek Custom Mount USB Floppy Emulator - Complete Kit with Gotek picture

Amiga 500 Gotek Custom Mount USB Floppy Emulator - Complete Kit with Gotek

$65.00



Commodore Amiga Stereo Sound Sampler Techno Sound Turbo Rare Limited US Seller picture

Commodore Amiga Stereo Sound Sampler Techno Sound Turbo Rare Limited US Seller

$50.99



Amiga MiniMig 2.0 - FPGA Amiga 500 with real 68000CPU picture

Amiga MiniMig 2.0 - FPGA Amiga 500 with real 68000CPU

$179.99



Commodore C64 C128 CMD FD2000 3 1/2

Commodore C64 C128 CMD FD2000 3 1/2" Floppy Disk Drive -Complete and Functional

$700.00



TF330: an Amiga CD32 expansion set with 68030, 128MB RAM, IDE interface, CF card picture

TF330: an Amiga CD32 expansion set with 68030, 128MB RAM, IDE interface, CF card

$188.81



AMIGA 500 COMPUTER COMMODORE Complete in Box Powers/untested Good Condition picture

AMIGA 500 COMPUTER COMMODORE Complete in Box Powers/untested Good Condition

$380.00



Amiga 5.25 External DUAL SLIM Floppy Disk Drive VERY RARE picture

Amiga 5.25 External DUAL SLIM Floppy Disk Drive VERY RARE

$250.00