You are not logged in.

#1 2009-04-06 16:13:17

Primoz
Member
From: Ljubljana-Slovena-EU
Registered: 2009-03-04
Posts: 688

[Solved]Starting VLC from CLI/KDM

I have IPTV and my computer can access it with VLC and playlist.
But sometimes I really don't want to wait for the whole KDE to start. I would like to have a n option to start VLC with IPTV playlist already playing from KDM log-in screen or even from
CLI.
I'm currently using this command, but I can't get it to start X from cli.

cvlc http://www.rula.net/t2/t2tv.m3u -f

So what do I have to do so that VLC would start an X server.
Or even better how can I add a VLC to KDM log-in and that it's already fullscreen and playing the playlist: http://www.rula.net/t2/t2tv.m3u?

Thanks for your help!

Last edited by Primoz (2009-04-07 09:28:00)


Arch x86_64 ATI AMD APU KDE frameworks 5
---------------------------------
Whatever I do, I always end up with something horribly mis-configured.

Offline

#2 2009-04-06 17:07:56

hbekel
Member
Registered: 2008-10-04
Posts: 311

Re: [Solved]Starting VLC from CLI/KDM

AFAIK KDM doesn't use your ~/.xinitrc file, so you could use startx and an ~/.xinitrc like this:

~/.xinitrc:

exec cvlc http://www.rula.net/t2/t2tv.m3u -f

now you can run startx from a console and it will start up an xserver with vlc as the sole program running on it, w/o a wm or anything else. The xserver will terminate after vlc does.

I don't know how to integrate this into KDM, though.

Offline

#3 2009-04-07 09:27:43

Primoz
Member
From: Ljubljana-Slovena-EU
Registered: 2009-03-04
Posts: 688

Re: [Solved]Starting VLC from CLI/KDM

hbekel wrote:

AFAIK KDM doesn't use your ~/.xinitrc file, so you could use startx and an ~/.xinitrc like this:

~/.xinitrc:

exec cvlc http://www.rula.net/t2/t2tv.m3u -f

now you can run startx from a console and it will start up an xserver with vlc as the sole program running on it, w/o a wm or anything else. The xserver will terminate after vlc does.

I don't know how to integrate this into KDM, though.

Thanks that worked!

If anyone is interested I'll try and go "to the next level" and do a minimal install of Arch and only installed VLC on it, so I'll be able to choose TV from Grub.


Arch x86_64 ATI AMD APU KDE frameworks 5
---------------------------------
Whatever I do, I always end up with something horribly mis-configured.

Offline

Board footer

Powered by FluxBB