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: |
Quote:
EDIT: BTW, I'm using 32-bit 13.1 and I'm using my own vlc slackbuild. |
Same problem here. Looking for running processes i noticed that vlc "openfile" starts kdeinit4:
Quote:
BTW:I´m running aliens 64 bit package of vlc 1.1.0 |
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. |
Quote:
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. |
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 |
reinstall
try to un-install and re-install the program in xfce.
|
Just to see what happens i compiled vlc myself but the behavior didn´t change.
|
Quote:
I guess I should have figured that, since VLC depends on QT. |
Quote:
Quote:
|
Quote:
|
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: |
Quote:
Quote:
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. |
Quote:
Quote:
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. |
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 |
Quote:
Code:
bash-4.1$ vlc -vvv --reset-plugins-cache |
Code:
QGtkStyle was unable to detect the current GTK+ theme. Eric |
Quote:
Looks like getting rid of QGtkStyle might be a little hard to do as, Quote:
|
Hm then I wonder if it is used because of the GTK based desktop environment. I will check tonight how VLC behaves on my own computer with XFCE running.
Eric |
I get the exact same symptoms as cwizardone with my two machines running 13.1 (one 64bit and the other 32) that have ati cards with the stock open source drivers and xfce, with my 13.1 machine with nvidia binary drivers VLC runs perfectly. If I try VLC with the two machines with ati cards with KDE it runs correctly too. I don't know if there is something related to ati there but I thought it might be worth mentioning.
|
Qt looks for ~/.gtkrc-2.0, then gconf to define the Gtk style. Xfce does not use ~/.gtkrc-2.0, gconf is not included in Slackware by default, nor is the GTK2_RC_FILES exported in Slackware.
So create your own ~/.gtkrc-2.0 if it's not there with gtk-theme-name="THEME_NAME". Launch vlc with GTK2_RC_FILES="$HOME/.gtkrc-2.0" vlc . Change the preferences under look and feel to use system default, or GKT+. If all works well, globally export GTK2_RC_FILES in your profile, xint ... somewhere. |
VLC will work properly if
Quote:
|
Did you try disturbed1's final suggestion? Now that you know that setting the variable works, you should be able to export the variable in a startup file. Then you can start qt4 apps normally. I used Openbox's autostart.sh file, but you should be able to use .xinitrc or .bashrc.
Quote:
|
Well, "export GTK2_RC_FILES="$HOME/.gtkrc-2.0"" worked yesterday, but using it today results in audio, but no video. I haven't done anything differently.
Alien Bob's GNOME-Player works just fine. To say, "...to export the variable in a startup file..." you might as well be speaking Greek. Means zip to me. |
Just add that line to .xinitrc. The beginning of the file would look something like this...
Quote:
By startup file, I just meant any script that automatically runs when you log in or start X. There's no absolutely "correct" place for this. When you export the variable, it's then available globally to all child processes. That's why you want to export it when logging in or starting X. If you just define the variable at the command line, the variable will only be set within that particular shell. |
Thanks for the explanation. Greatly appreciated.
:hattip: I opened the .xinitrc file and found this, Quote:
:) |
Quote:
|
Okay, let's just make sure the variable is set correctly. At a terminal, type in:
Quote:
Quote:
Any change in behavior? If not, pick a style like Motif. Same problem using that? I apologize if we're not getting anywhere. This thread solved a similar problem I was having with QGtkStyle and Openbox, but maybe that was a different issue. |
Quote:
I modified /etc/profile.d/qt4.sh, added the following to the end, then rebooted*. Everything works here. Code:
GTK2_RC_FILES=$HOME/.gtkrc-2.0 |
Quote:
|
Quote:
Many Thanks to you and JimX86. :hattip: |
Quote:
|
Quote:
Specifically, I created a ~/.gtkrc-2.0 file and put this in it: Code:
gtk-theme-name="GTK+" Then I modified /etc/profile.d/qt4.sh and added the stuff Disturbed1 suggested to the end of the file. After logging out and back in VLC does not hang. Great fix! |
Okay, all of you lurkers in this thread, I'd like to confirm that the latest gtk+2 rebuild in -current fixes all of these issues:
Code:
Thu Dec 16 18:57:05 UTC 2010 We removed the GTK2_RC_FILES setting from the profile scripts, so you should remove it from anywhere you had previously set it. Also, make sure any custom gtkrc that you had installed in /etc/gtk-2.0/$(host_triplet)/gtkrc has been moved to /etc/gtk-2.0/gtkrc -- the only thing in the arch-specific directory now should be gtk.immodules. |
I've been following this thread but never fixed the VLC XFCE issue. And yes, opening the dialog now works! (And I like the xfce icons :D)
|
Outstanding; thanks! :)
|
All times are GMT -5. The time now is 10:44 AM. |