LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 12-22-2009, 04:45 PM   #1
Peterken
Member
 
Registered: Apr 2007
Location: Belgium
Distribution: Debian
Posts: 68

Rep: Reputation: 20
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
 
Old 12-22-2009, 06:46 PM   #2
Vinter
Member
 
Registered: Feb 2005
Location: Germany
Distribution: Aptosid
Posts: 148

Rep: Reputation: 19
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.
Old 12-22-2009, 07:47 PM   #3
Peterken
Member
 
Registered: Apr 2007
Location: Belgium
Distribution: Debian
Posts: 68

Original Poster
Rep: Reputation: 20
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
 
Old 12-22-2009, 08:19 PM   #4
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Try
Code:
gqview -f
Quote:
Can you enlighten me about how to find the path of vlc because I have different directories with vlc.
Code:
which 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.
Old 12-23-2009, 04:09 AM   #5
Peterken
Member
 
Registered: Apr 2007
Location: Belgium
Distribution: Debian
Posts: 68

Original Poster
Rep: Reputation: 20
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:
Code:
gqview -t -f -s
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
 
Old 12-23-2009, 11:49 AM   #6
CoderMan
Member
 
Registered: Jan 2009
Location: Gemini Capsule 25164
Distribution: Gentoo
Posts: 375
Blog Entries: 24

Rep: Reputation: 43
Quote:
Originally Posted by Vinter View Post
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.
Old 12-30-2009, 05:14 AM   #7
Peterken
Member
 
Registered: Apr 2007
Location: Belgium
Distribution: Debian
Posts: 68

Original Poster
Rep: Reputation: 20
Thank you CoderMan for pointing me in that direction; it's working fine now!
 
Old 12-30-2009, 07:47 AM   #8
Total-MAdMaN
Member
 
Registered: May 2008
Distribution: Gentoo
Posts: 306

Rep: Reputation: 34
Quote:
Originally Posted by Peterken View Post
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.
Old 01-09-2010, 11:40 AM   #9
Peterken
Member
 
Registered: Apr 2007
Location: Belgium
Distribution: Debian
Posts: 68

Original Poster
Rep: Reputation: 20
Thanks a lot Total-MAdMaN, I did not think about hidden files and had no clue how linux handles these.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vlc disappear after just start renuaseri Linux - Newbie 4 08-06-2009 01:18 AM
VLC doesn't start dreyfuss Slackware 13 02-10-2008 03:18 PM
vlc doesnt start supersucker Linux - General 3 01-09-2006 03:43 PM
Vlc Can't Start! firstcobra88 Linux - Software 2 07-14-2005 12:12 AM
VLC does not start Ephracis Linux - Software 0 11-20-2004 12:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration