LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   VLC & Xfce. (http://www.linuxquestions.org/questions/slackware-14/vlc-and-xfce-817406/)

cwizardone 07-01-2010 09:06 AM

VLC & Xfce.
 
It seems VLC and Xfce don't get along.

For the last few versions (beta & release candidates) the following happens: Open VLC, click on "Media," click on
"openfile," and a blank box pops up and VLC freezes and you have to "kill" it. In the recent past, once that happened the first time, then all was well the second time it was tried.
Now, however, with the stable version, 1.1.0, it happens every time.
I just fired up VLC and clicked on "Help" to check the version number and the same thing happened.
However, if you click on "media" and then "recent media" and pick a file it will play.
VLC works fine in KDE 4.4.4.
Any suggestions on how to fix this problem in Xfce?
Many Thanks.
:hattip:

tuxrules 07-01-2010 09:13 AM

Quote:

Originally Posted by cwizardone (Post 4020559)
It seems VLC and Xfce don't get along.

For the last few versions (beta & release candidates) the following happens: Open VLC, click on "Media," click on
"openfile," and a blank box pops up and VLC freezes and you have to "kill" it.
:hattip:

I use VLC quite often and have compiled it for version 1.1.0 but I don't see that problem. For me "open file" does open the file browser. This is from XFCE. I haven't tried KDE yet.

EDIT: BTW, I'm using 32-bit 13.1 and I'm using my own vlc slackbuild.

syvy 07-01-2010 11:14 AM

Same problem here. Looking for running processes i noticed that vlc "openfile" starts kdeinit4:

Quote:

ps -efw
.
syvy 2696 1 0 18:02 ? 00:00:00 kdeinit4: kdeinit4 Running...
syvy 2698 2696 0 18:02 ? 00:00:00 kdeinit4: klauncher [kdeinit] --fd=8
syvy 2701 1 0 18:02 ? 00:00:00 kdeinit4: kded4 [kdeinit]
syvy 2728 1 4 18:02 ? 00:00:01 vlc
syvy 2739 2696 0 18:03 ? 00:00:00 kdeinit4: kio_trash [kdeinit] trash local:/tmp/ksocket-snyder/klauncherMT2698.slave-
syvy 2740 2696 0 18:03 ? 00:00:00 kdeinit4: kio_file [kdeinit] file local:/tmp/ksocket-snyder/klauncherMT2698.slave-so
.
This processes stay alive when vlc is killed after freezing and the next time vlc is started "openfile" can use them. The file browser opening then looks like dolphin or konqueror. Is it possible to make vlc using thunar or whatever xfce-apps are using?

BTW:Iīm running aliens 64 bit package of vlc 1.1.0

disturbed1 07-01-2010 01:19 PM

Same as syvy. Launch vlc so it can load some KDE libs, close it, then relaunch to use. Xfce has an option to start these KDE background tasks at start up. If you plan on using a few KDE apps in Xfce, it might be a solution.

If you just need a media player, Parole is a promising up and coming player for Xfce. Does rely on gstreamer for codecs.

tommcd 07-01-2010 01:21 PM

Quote:

Originally Posted by cwizardone
Open VLC, click on "Media," click on
"openfile," and a blank box pops up and VLC freezes and you have to "kill" it

I have the same problem on Slackware 13.1 32bit using the stock XFCE 4.6.1 that comes with Slackware 13.1.
I am using Alien Bob's vlc 1.1.0 package: http://connie.slackware.com/~alien/s.../vlc/pkg/13.1/
Interestingly, if I hit ctrl + O to open a file, instead of using the mouse, vlc does not hang. It will just play the file straight away.

TSquaredF 07-01-2010 04:36 PM

VLC with Fluxbox
 
I'm using Eric's SlackBuild, compiled here, on Slack64-13.1, with Fluxbox, & had the same problem. I'm now starting VLC with "kdeinit4 vlc". It seems to take a little longer to start, the first time, but I no longer have to start it, try to open a file, kill it, then start it again & use it normally.
Regards,
Bill

baxzius 07-01-2010 04:46 PM

reinstall
 
try to un-install and re-install the program in xfce.

syvy 07-02-2010 12:11 PM

Just to see what happens i compiled vlc myself but the behavior didnīt change.

tommcd 07-02-2010 02:41 PM

Quote:

Originally Posted by TSquaredF (Post 4021027)
I'm using Eric's SlackBuild, compiled here, on Slack64-13.1, with Fluxbox, & had the same problem. I'm now starting VLC with "kdeinit4 vlc". It seems to take a little longer to start, the first time, but I no longer have to start it, try to open a file, kill it, then start it again & use it normally.

Ok, well that explains it then. So it is not really hanging then, it is just trying to load QT and the related KDE files.
I guess I should have figured that, since VLC depends on QT.

cwizardone 07-02-2010 11:19 PM

Quote:

Originally Posted by baxzius (Post 4021040)
try to un-install and re-install the program in xfce.

Tried that, but it didn't make a bit of difference.

Quote:

Originally Posted by TSquaredF (Post 4021027)
...I'm now starting VLC with "kdeinit4 vlc". It seems to take a little longer to start, the first time, but I no longer have to start it, try to open a file, kill it, then start it again & use it normally.

I would think you really shouldn't have to do that, but I did just try it in Xfce and the problem remains, exactly as originally described.

tommcd 07-03-2010 09:21 AM

Quote:

Originally Posted by TSquaredF (Post 4021027)
I'm now starting VLC with "kdeinit4 vlc". It seems to take a little longer to start, the first time, but I no longer have to start it, try to open a file, kill it,

I have found that if I first open a KDE app, like K3B, then, even if I close K3B and open VLC a while later, then VLC dos not hang. So starting the necessary KDE processes does prevent VLC from hanging on XFCE.

cwizardone 07-03-2010 11:51 AM

In Xfce you could also go to "Settings, Session & Startup, Advanced" and put a check mark in the box next to, "Launch KDE Services on Startup."
Regardless, whether starting K3b or the above, VLC 1.1.0 (Alien Bob's build) does not work as per my original post. It may work for you, but it doesn't work for me.
:hattip:

tommcd 07-06-2010 10:43 AM

Quote:

Originally Posted by cwizardone (Post 4022874)
In Xfce you could also go to "Settings, Session & Startup, Advanced" and put a check mark in the box next to, "Launch KDE Services on Startup."

Yes, I do know about that. I don't always run KDE apps on my Slackware XFCE desktop, so I have not chosen to start KDE Services on bootup.
Quote:

Originally Posted by cwizardone (Post 4022874)
Regardless, whether starting K3b or the above, VLC 1.1.0 (Alien Bob's build) does not work as per my original post. It may work for you, but it doesn't work for me.

Hmmm, even if you first start KDE services, Alien_Bob's VLC still hangs (and you have to kill it) in XFCE?
What happens if you open VLC and use the keyboard (ctrl + O) to open a media file? I found that (for some reason) using ctrl + O to open a file does not result in VLC hanging. This is true even on my laptop. I did not install KDE on my laptop. I do have qt-4.6.2 on my laptop though.

cwizardone 07-06-2010 01:59 PM

Quote:

Originally Posted by tommcd (Post 4025243)
...Hmmm, even if you first start KDE services, Alien_Bob's VLC still hangs (and you have to kill it) in XFCE?

Yes.


Quote:

Originally Posted by tommcd (Post 4025243)
What happens if you open VLC and use the keyboard (ctrl + O) to open a media file? I found that (for some reason) using ctrl + O to open a file does not result in VLC hanging. This is true even on my laptop. I did not install KDE on my laptop. I do have qt-4.6.2 on my laptop though.

Ctrl + O results in the same hang.
In the recent past I was able to play files in the "recent media" list, but now it only plays the audio from those files, but not the video.
The same files play just fine in VLC when running in KDE.

Alien Bob 07-06-2010 02:42 PM

Can you see any relevant messages in the console around the time vlc stalls, if you start vlc on the commandline like this:
Code:

vlc -vvv --reset-plugins-cache
?

Eric


All times are GMT -5. The time now is 10:57 AM.