Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-22-2009, 04:45 PM
|
#1
|
Member
Registered: Apr 2007
Location: Belgium
Distribution: Debian
Posts: 68
Rep:
|
start vlc after autologon
Hi guys,
I'm building a system for a presentation in a shop (bargains, accessories, various information)
Here at LQ, a user (catkin) pointed me to gqview and I got it working from command line but I can not get it to run in a loop.
There is also a dvd with a promotional video which I wanted to be able to play. I succeeded by using VLC and starting a playlist from command line.
My questions:
1) does anyone know of a way to loop a presentation of pics in gqview or is there another program to achieve this?
2) how can I automatically start these programs with the switches after logon? (not simultaneously of course)
I'm using debian and I have tried by adding:
Code:
vlc -f -L <path & filename to playlist>
to rc.local but nothing happens.
I know that this is not the best way but I don't understand how to do it differently.
Thanks a lot for your ideas!
P
|
|
|
12-22-2009, 06:46 PM
|
#2
|
Member
Registered: Feb 2005
Location: Germany
Distribution: Aptosid
Posts: 148
Rep:
|
After user logon, you will want to use ~/.bashrc, ~/.bash_login or ~/.profile, in that order of preference, I believe. It might be dependent on your login manager which one of the files is run (and on your shell, of course), but to me, ~/.profile has always been a safe bet.
As for gqview, there is a General -> Slideshow -> Repeat setting in the preferences dialogue, that should help.
|
|
1 members found this post helpful.
|
12-22-2009, 07:47 PM
|
#3
|
Member
Registered: Apr 2007
Location: Belgium
Distribution: Debian
Posts: 68
Original Poster
Rep:
|
Hi Vinter, thank you for your reply!
I'm using gnome but I cannot find any of those files that you refer to.
Can you enlighten me about how to find the path of vlc because I have different directories with vlc.
Do you know whether it's possible to run gqview full screen - without toolbars - and start the slideshow automatically?
It is possible to have it that way if I start it from command line but then the repeat option is not available...
The point is that I would like to get it working without any user intervention so it's fool proof.
Last edited by Peterken; 12-22-2009 at 07:49 PM.
Reason: added info
|
|
|
12-22-2009, 08:19 PM
|
#4
|
Senior Member
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Rep: 
|
Try
Quote:
Can you enlighten me about how to find the path of vlc because I have different directories with vlc.
|
There should be ~/.config/vlc folder with your configuration.
Btw instead of launching vlc in rc.local, launch it from ~/.config/autostart
Last edited by ~sHyLoCk~; 12-22-2009 at 08:24 PM.
|
|
1 members found this post helpful.
|
12-23-2009, 04:09 AM
|
#5
|
Member
Registered: Apr 2007
Location: Belgium
Distribution: Debian
Posts: 68
Original Poster
Rep:
|
Hi ~sHyLoCk~, thank you for your answer!
I had found in the gqview manual how to run it from command line in full screen. It gives me almost exactly what I need with: but apparently there is no switch to make run in a loop...
Uhm, which VLC...
I have installed VLC media player as a deb package, it's version 0.8.6h
There is no ~/.config/vlc folder.
I understand that running from rc.local is not the best option but I have no clue how & where to put the command with switches so it runs at startup.
~/.config/autostart seems to be a folder, I guess it's like the startup folder in windows but what is the correct syntax for these commands.
Last edited by Peterken; 12-23-2009 at 04:17 AM.
Reason: added information
|
|
|
12-23-2009, 11:49 AM
|
#6
|
Member
Registered: Jan 2009
Location: Gemini Capsule 25164
Distribution: Gentoo
Posts: 375
Rep:
|
Quote:
Originally Posted by Vinter
After user logon, you will want to use ~/.bashrc, ~/.bash_login or ~/.profile, in that order of preference, I believe. It might be dependent on your login manager which one of the files is run (and on your shell, of course), but to me, ~/.profile has always been a safe bet.
As for gqview, there is a General -> Slideshow -> Repeat setting in the preferences dialogue, that should help.
|
The .bash files are not what you want here because those are meant for when you start a bash terminal. Gnome, however, has a control panel for auto-starting applications when you login:
http://www.ghacks.net/2009/04/08/add...mes-autostart/
If that link doesn't explain well enough there are plenty of others that will show up in a quick google search.
|
|
1 members found this post helpful.
|
12-30-2009, 05:14 AM
|
#7
|
Member
Registered: Apr 2007
Location: Belgium
Distribution: Debian
Posts: 68
Original Poster
Rep:
|
Thank you CoderMan for pointing me in that direction; it's working fine now!
|
|
|
12-30-2009, 07:47 AM
|
#8
|
Member
Registered: May 2008
Distribution: Gentoo
Posts: 306
Rep:
|
Quote:
Originally Posted by Peterken
Hi Vinter, thank you for your reply!
I'm using gnome but I cannot find any of those files that you refer to.
|
Those are hidden files (anything with a . at the start is hidden), and so won't be visible unless you turn on "Show hidden files" (or the equivalent) in your file manager.
|
|
1 members found this post helpful.
|
01-09-2010, 11:40 AM
|
#9
|
Member
Registered: Apr 2007
Location: Belgium
Distribution: Debian
Posts: 68
Original Poster
Rep:
|
Thanks a lot Total-MAdMaN, I did not think about hidden files and had no clue how linux handles these.
|
|
|
All times are GMT -5. The time now is 03:07 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|