To remove LibVlc Xlib error on Porteus console

Technical issues/questions of an intermediate or advanced nature.
mudit.s
White ninja
White ninja
Posts: 15
Joined: 24 Jan 2020, 11:39
Distribution: Porteus 3.2.2 Xfce

To remove LibVlc Xlib error on Porteus console

Post#1 by mudit.s » 05 Feb 2020, 19:06

I am trying to run a GTK application using LibVlc libraries and VLC player on porteus.
I am able to run the application but on the console, I am getting 'xlib' error as mentioned below.

Code: Select all

vlc_xlib_init error: Xlib not initialized for threads 
I want to remove this error from the console. Please help.

User avatar
Ed_P
Contributor
Contributor
Posts: 8360
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

To remove LibVlc Xlib error on Porteus console

Post#2 by Ed_P » 05 Feb 2020, 20:49

How are you executing VLC player? Adding something like this to the end of your command may work.

Code: Select all

 > /dev/null 2>&1 &
Ed

mudit.s
White ninja
White ninja
Posts: 15
Joined: 24 Jan 2020, 11:39
Distribution: Porteus 3.2.2 Xfce

To remove LibVlc Xlib error on Porteus console

Post#3 by mudit.s » 06 Feb 2020, 06:12

Thank you :)
It is working and removing all the errors , but, Is it also disabling all the console commands along with the plugins?
As after typing this command to the end of my command , I get just the following info on the console

Code: Select all

[1] 2505
Also I am unable to stop my running gtk application or close that window, which I was able to do earlier using

Code: Select all

ctrl+c
command.

User avatar
Ed_P
Contributor
Contributor
Posts: 8360
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

To remove LibVlc Xlib error on Porteus console

Post#4 by Ed_P » 09 Feb 2020, 19:59

mudit.s try replacing this

Code: Select all

 > /dev/null 2>&1 &
with just this.

Code: Select all

2>/dev/null
Ed

Post Reply