Autostart Binary on X Start

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
Smithy
Posts: 1151
Joined: Mon 12 Dec 2011, 11:17

Autostart Binary on X Start

#1 Post by Smithy »

Hi, I am trying to get this default setup Qtractor file to autostart on Boot after X.
When I manually click on the file it opens up Qtractor immediately.

I tried a little script in Startup, but it says can't open binary files.
And entering Default.qtz in terminal:
# Default.qtz
bash: /usr/bin/Default.qtz: cannot execute binary file: Exec format error

Any ideas on how to achieve this?
Attachments
opens when clicked on.png
(89.43 KiB) Downloaded 60 times
default qtractor file.png
(13.08 KiB) Downloaded 146 times

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#2 Post by rcrsn51 »

Maybe

Code: Select all

qtractor /usr/bin/Default.qtz

User avatar
Smithy
Posts: 1151
Joined: Mon 12 Dec 2011, 11:17

#3 Post by Smithy »

Thanks Bill, that's done it.

I've forgotten also about the sleep command.
I was wanting to give the Jack Server a second or so to start first,
before Qtractor starts, maybe Puppy is fast enough to cope, not sure yet.
Is that right for giving a one second delay in the Qtractor startup script below?
(Two separate scripts).


#!/bin/sh
jackd -R -t 1000 -d alsa -p 256 hw:0,0 -r 48000 -n2 -D

#!/bin/sh
qtractor /usr/bin/Default.qtz
sleep 1

phat7
Posts: 179
Joined: Fri 05 Jun 2015, 08:54

#4 Post by phat7 »

Shouldn't you put the sleep before qtractor if you want to delay qtractor?

User avatar
Smithy
Posts: 1151
Joined: Mon 12 Dec 2011, 11:17

#5 Post by Smithy »

Ha, yes that makes sense phat7, will give it a tweak and see what works.
So long since I used the commands..

Post Reply