The time now is Mon 18 Jan 2021, 18:31
All times are UTC - 4 |
Author |
Message |
spluthier
Joined: 29 May 2008 Posts: 10
|
Posted: Sat 31 May 2008, 14:58 Post subject:
Autorun an application on startup |
|
Hi everyone,
I'm trying to put together a digital photo frame using puppy linux. I'd like to be able to automatically run GQview at startup. I used google and found the following code:
Quote: | gqview -s -f /path/to/folder/with/images |
This should allow me to start GQview in full-screen mode with the slideshow option. My question is, what do I have to do with this code, so it will automatically do this on startup?
As an aside, does anyone know how I can setup a timer so that puppy linux will shut down at a certain specified time? For example, I (manually turn the unit on) and then have the slideshow run until 8pm, at which point the laptop would automatically shutdown.
Thanks!
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 7024 Location: Auckland, New Zealand
|
Posted: Sat 31 May 2008, 18:41 Post subject:
|
|
I think in Puppy 4 you just need to put that in a script in /root/startup
Otherwise you can put this in your jwm config file
Code: | <StartupCommand>
gqview -s -f /path/to/folder/with/images
</StartupCommand> |
Quote: | As an aside, does anyone know how I can setup a timer so that puppy linux will shut down at a certain specified time? |
Use pschedule to run the shutdown script at that time. I think the correct script is poweroff or wmpoweroff.
_________________ Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
|
Back to top
|
|
 |
Aitch

Joined: 04 Apr 2007 Posts: 6815 Location: Chatham, Kent, UK
|
Posted: Sat 31 May 2008, 19:33 Post subject:
|
|
Hi spluthier
I found this, which I don't know if you know of;
http://www.murga-linux.com/puppy/viewtopic.php?t=23777&sid=53d682956f0309bee344a723c90e9087
and
http://www.murga-linux.com/puppy/viewtopic.php?t=25438&sid=5948603eda0e980ddfcce0294454b040
Is there a photoframe 'HowTo' somewhere?
Aitch
|
Back to top
|
|
 |
spluthier
Joined: 29 May 2008 Posts: 10
|
Posted: Tue 03 Jun 2008, 22:28 Post subject:
|
|
I apologize for the delayed reply - thanks to everyone who has helped so far!
Quote: | I think in Puppy 4 you just need to put that in a script in /root/startup
Otherwise you can put this in your jwm config file |
Awesome - this was it, big thanks.
Quote: | Use pschedule to run the shutdown script at that time. I think the correct script is poweroff or wmpoweroff. |
2 for 2! Thanks. The poweroff command actually crashes puppy - wmpoweroff works flawlessly.
Now - if I could only figure out how to diasble the screensaver/power management feature so that the laptop is on all the time up until the pschedule script is executed. More on that dilema here: http://www.murga-linux.com/puppy/viewtopic.php?t=29776
Quote: | Is there a photoframe 'HowTo' somewhere? |
Hi Aitch. I actually found some extensive projects online using google. Here's one that I reccommend (and was originally basing my frame on until I had issues with DSL and glitchy graphics)
http://www.thewares.net/item/33
Also, there are a few videos on YouTube, here's one I've bookmarked.
http://youtube.com/watch?v=_iE85eegP3A
Cheers.
|
Back to top
|
|
 |
Aitch

Joined: 04 Apr 2007 Posts: 6815 Location: Chatham, Kent, UK
|
Posted: Wed 04 Jun 2008, 06:00 Post subject:
|
|
@spluthier
Great, thanks
Aitch
|
Back to top
|
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|