LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-19-2016, 04:07 PM   #1
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Rep: Reputation: Disabled
Slackware 14.2 gksu won't launch app


Installed gksu from slackbuilds.org and am trying to use it to launch virt-manager like so

Code:
gksu virt-manager
I am prompted with my password, however I get this,

Code:
glibtop(c=26592): [DEBUG] open.c:53 glibtop_open_l(): SIZEOF: 40 - 65648 - 248 - 65624 - 224 - 65624
glibtop(c=26592): [DEBUG] open.c:163 glibtop_open_l(): Calling sysdeps open function.
glibtop(c=26592): [DEBUG] init.c:229 glibtop_init_s(): init_s with features=0x7ffffff and flags=0
No protocol specified
No protocol specified

(virt-manager:26608): Gtk-WARNING **: cannot open display: :0.0
The weird thing is that if I try it for another app like Firefox, I get similar messages but Firefox eventually loads within a few seconds, virt-manager does not. Anyone have any ideas?
 
Old 11-19-2016, 04:20 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
According to SBo, gksu requires libgksu and libgksu requires libgtop. Do you have all the required dependencies installed?

Also, as a possible alternate, if you have the kde packages installed, kdesu is included with that and does the same thing gksu does.
 
Old 11-19-2016, 11:25 PM   #3
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Quote:
Originally Posted by Altiris View Post
Installed gksu from slackbuilds.org and am trying to use it to launch virt-manager
virt-manager doesn't need to be run with root privileges.
 
1 members found this post helpful.
Old 11-20-2016, 12:19 PM   #4
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
According to SBo, gksu requires libgksu and libgksu requires libgtop. Do you have all the required dependencies installed?

Also, as a possible alternate, if you have the kde packages installed, kdesu is included with that and does the same thing gksu does.
I used sbotools to install gksu and it installed those two dependencies. I have the kde packages installed, I will try kdesu.
 
Old 11-20-2016, 12:22 PM   #5
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
virt-manager doesn't need to be run with root privileges.
Yes you are correct, partially. It can run as a normal user and it works fine, however when I try to create a new VM and select a source .iso, I get an error unless I run virt-manager as root. OR if I try to use my USB cd/dvd rom it won't show up in virt-manager unless I am root. Even if I add my user to the appropriate group I still get the error. So for the time being running virt-manager as root when I need to create a new VM is my best workaround.
 
Old 11-20-2016, 12:44 PM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Quote:
Originally Posted by Altiris View Post
Yes you are correct, partially. It can run as a normal user and it works fine, however when I try to create a new VM and select a source .iso, I get an error unless I run virt-manager as root. OR if I try to use my USB cd/dvd rom it won't show up in virt-manager unless I am root. Even if I add my user to the appropriate group I still get the error. So for the time being running virt-manager as root when I need to create a new VM is my best workaround.
no such problem here.
maybe is related to your user not being in the default groups for desktop use (here lp, floppy, audio, video, cdrom, plugdev, power, netdev and scanner) and not using your desktop while within a dbus/policykit session: personally I launch my desktop with startx having an .xinitrc that execute it like
Code:
ck-launch-session dbus-launch --exit-with-session startlxde
if it might be useful, I also have this directive set in my /etc/libvirt/qemu.conf
Code:
user="myuser"
 
Old 11-20-2016, 03:41 PM   #7
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
no such problem here.
maybe is related to your user not being in the default groups for desktop use (here lp, floppy, audio, video, cdrom, plugdev, power, netdev and scanner) and not using your desktop while within a dbus/policykit session: personally I launch my desktop with startx having an .xinitrc that execute it like
Code:
ck-launch-session dbus-launch --exit-with-session startlxde
if it might be useful, I also have this directive set in my /etc/libvirt/qemu.conf
Code:
user="myuser"
I don't know, I checked my groups and I am part of

Code:
bob : bob lp wheel floppy audio video cdrom plugdev power netdev scanner users
My /etc/libvirt/qemu.conf does not have users defined, it is uncommented so I do not wish to mess with that ATM but it does have groups="users" and my user is in that group. I did not have a .xinitrc file and I created one and added in what you put but swapped out startlxde with startxfce4, I will try that out and see if it does anything.

EDIT:Okay so very weird...I did not try with the .xinitrc line you have yet but I loaded up virt-manager as my normal use and I can in fact use the DVD. Before it would say "No media source" found or some crap and I am wondering whether it was that I did not get the DVD player enough time to actually load/wait for Slackware to recognize it....that or I did something else in the past that fixed it and only realized it until now. It works fine as it should now...weird.

Last edited by Altiris; 11-20-2016 at 03:56 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware 14, emacs won't launch, how to install missing library? Tachtory Slackware 12 01-22-2014 05:45 PM
[SOLVED] how do you Launch an App at login h2co3 Linux - Newbie 1 10-03-2013 02:14 PM
How do I launch application with gksu CollieJim Ubuntu 2 08-09-2012 07:36 PM
Check if an app is running and if it's not launch this app Coume Linux - General 3 07-28-2008 02:34 AM
app launch speed newby101 Linux - General 3 11-27-2003 12:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration