VLC (from pkg) fails with errors

When I try to start VLC from the command line, I get the following mess:
Code:
jim@JinxsBSD:~ $ vlc
VLC media player 3.0.18 Vetinari (revision 3.0.13-8-g41878ff4f2)
[209a18ec] dbus interface error: Failed to connect to the D-Bus session daemon: /usr/local/bin/dbus-launch terminated abnormally with the following error: Authorization required, but no authorization protocol specified

Autolaunch error: X11 initialization failed.

[209a18ec] main interface error: no suitable interface module
[2099902c] main libvlc error: interface "dbus,none" initialization failed
Authorization required, but no authorization protocol specified

[209a2e4c] main interface error: no suitable interface module
[2099902c] main libvlc error: interface "globalhotkeys,none" initialization failed
[2099902c] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Authorization required, but no authorization protocol specified

error: XDG_RUNTIME_DIR is invalid or not set in the environment.
[20d4602c] main playlist: playlist is empty
[209a2e4c] [cli] lua interface: Listening on host "*console".
VLC media player 3.0.18 Vetinari

Can someone please translate this into how I get VLC working on FreeBSD running X11?

Thanks
 
Looks like dbus isn't running. service dbus enable && service dbus start should fix that.
 
I got this:

VLC media player 3.0.18 Vetinari (revision 3.0.13-8-g41878ff4f2)
[209a18ec] dbus interface error: Failed to connect to the D-Bus session daemon: /usr/local/bin/dbus-launch terminated abnormally with the following error: Authorization required, but no authorization protocol specified

Autolaunch error: X11 initialization failed.

[209a18ec] main interface error: no suitable interface module
[2099902c] main libvlc error: interface "dbus,none" initialization failed
Authorization required, but no authorization protocol specified

[209a2e4c] main interface error: no suitable interface module
[2099902c] main libvlc error: interface "globalhotkeys,none" initialization failed
[2099902c] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Authorization required, but no authorization protocol specified

error: XDG_RUNTIME_DIR is invalid or not set in the environment.

Thanks
 
Code:
[209a18ec] dbus interface error: Failed to connect to the D-Bus session daemon: /usr/local/bin/dbus-launch terminated abnormally with the following error: Authorization required, but no authorization protocol specified
Right. No ConsoleKit, CK, or whatever it's called these days. What window manager or desktop environment are you using? Are you starting from a display manager or through startx?
 
Then ck-list-sessions probably shows it's not enabled, and there's no session information. It's sort of an authorization shell around various dbus related resources.

Modern display managers and desktop environments generally automatically start a proper consolekit/dbus session when you login or run startx. With the more 'old-school' window managers you can start it from ~/.xinitrc:
Code:
exec ck-launch-session $MYWM
 
Question, then: How do I switch from X11/twm to Xfce? Is it the usual

kill -9 [twm's pid] ; xfce & ; disown %1

like back when I was experimenting with ctwm, and switching back and forth between twm and ctwm?

Like in Slackware, it seems I need Xfce so I can mirror my FreeBSD monitor with the large monitor I have (for viewing youtube gamedev tutorials, Dwarf II stuff, SeeStar S50 stuff, etc.), for some setup menus (it's been so long, those are actually useful again vs command line).

Thanks
 
I think start-xfce is the command to start xfce. I'm assuming you are using startx and your .xinitrc has something like "exec xterm" as the last line? If so then the command sequence should work.
 
Actually, no ~/.xinitrc right now. Also no .zprofile, .zshrc, .zfunc/ .alias, etc. I haven't gotten that far. I'm working on this in my spare spare time. :-) And my Slackware system having its networking down means I have to use usb sticks to transfer files (can't use pcloud without networking, either), nor can I use nfs, samba, rcp, ftp, etc.

So setting this one up for real is pending networking on JinxsSlack (my Slackware system --- this is JinxsBSD. Jinx is the 5 year old (and thus finally an adult) Norwegian Forest Cat in my avatar image. Wegies are awesome friends, gentle giants as their called, and Jinx is no exception. So I name a lot after him. :-) And even though he's finally an adult, he's still getting bigger, just in smaller amounts per given amount of time. And it's time for the two of us to have our breakfast (I need that habanero or ghost pepper---bhut jolokia---to really kick off the day).

Thanks
 
For XFCE you should create an ~/.xinitrc:
Code:
exec startxfce4
Then a startx will start XFCE. Don't need the ck-launch-session here, XFCE already takes care of this.
 
  • Like
Reactions: mer
I think xfce uses xrandr under the hood to control displays so in theory one could use it by hand in twm.
For the record I use VLC with good old WindowMaker (no DE) and it works just fine.
dbus seems to get launched automatically by a lot of things (like firefox).
 
Back
Top