This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Invoking an X app from yakuake?

Tags: yakuake yakuake yakuake
(comma "," separated)
User avatar
daihard
Registered Member
Posts
72
Karma
0
OS

Invoking an X app from yakuake?

Sun Feb 20, 2011 3:45 am
Distribution: Kubuntu 10.10
KDE version: 4.5.5

Hi.

I am wondering if there is a way to run X applications from within a yakuake terminal window? I often run dolphin from within konsole to do some additional operations in the particular directory I am in. However, yakuake by default won't let me start any X app from within, saying "Cannot connect to X server." I tried to set DISPLAY to localhost:0, but to no avail. How can I overcome it?

Any help would be appreciated.


Kubuntu 12.04 (Precise Pangolin) 64-bit / KDE 4.8.1
Work: Dell Precision T5500 (Xeon E5506 @ 2.13 GHz x 2 / 12GB RAM)
Home: Panasonic Toughbook W8 (Core 2 Duo @ 1.20 GHz / 4GB RAM)
User avatar
TheBlackCat
Registered Member
Posts
2945
Karma
8
OS

Re: Invoking an X app from yakuake?

Sun Feb 20, 2011 5:32 am
What session are you running in yakuake? First check to see if the session you are running in yakuake is the same as the one in konsole. Yakuake is just alternative gui for konsole, if it works in konsole it has to work in yakuake as well.


Man is the lowest-cost, 150-pound, nonlinear, all-purpose computer system which can be mass-produced by unskilled labor.
-NASA in 1965
User avatar
daihard
Registered Member
Posts
72
Karma
0
OS

Re: Invoking an X app from yakuake?

Sun Feb 20, 2011 5:59 am
TheBlackCat wrote:What session are you running in yakuake? First check to see if the session you are running in yakuake is the same as the one in konsole. Yakuake is just alternative gui for konsole, if it works in konsole it has to work in yakuake as well.

Thanks for the response.

This is strange. When I first ran yakuake, I was never able to run any X app from inside it. The DISPLAY variable was not set either.

However, now I've restarted KDE and yakuake, DISPLAY _is_ set to :0.0. I am also able to run X apps including dolphin!

I don't know what I've (not) done, but things are working now...

For my reference, could you show me how I can check the session I'm running in yakuake or in konsole?

Thanks again!


Kubuntu 12.04 (Precise Pangolin) 64-bit / KDE 4.8.1
Work: Dell Precision T5500 (Xeon E5506 @ 2.13 GHz x 2 / 12GB RAM)
Home: Panasonic Toughbook W8 (Core 2 Duo @ 1.20 GHz / 4GB RAM)
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS

Re: Invoking an X app from yakuake?

Sun Feb 20, 2011 9:09 am
Maybe you were trying to run applications as root/a different user before in Yakuake?


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
User avatar
toad
Global Moderator
Posts
1258
Karma
7
OS

Re: Invoking an X app from yakuake?

Sun Feb 20, 2011 1:33 pm
Hans wrote:Maybe you were trying to run applications as root/a different user before in Yakuake?


I reckon that is the one.

You can run dolphin from yakuake (or any other shell) by typing "dolphin &". In order to get a root dolphin, however, you have to type "kdesu dolphin &".

EDIT:

I just noticed the OP is on Kubuntu. Does kdesu work there or have they changed it to kdsu?


Debian testing
User avatar
daihard
Registered Member
Posts
72
Karma
0
OS

Re: Invoking an X app from yakuake?

Sun Feb 20, 2011 7:05 pm
toad wrote:
Hans wrote:Maybe you were trying to run applications as root/a different user before in Yakuake?


I reckon that is the one.

You can run dolphin from yakuake (or any other shell) by typing "dolphin &". In order to get a root dolphin, however, you have to type "kdesu dolphin &".


Thanks for the response, guys.

Actually, the only commands I run as root (or sudo) are apt commands and "make install" (when compiling and installing apps from source). Just to be sure, I ran "sudo apt-get update" in yakuake and checked the DISPLAY variable after that. It was still correctly set as ":0.0" and I was able to run dolphin from there ("dolphin &", that is).

I wonder what could have been wrong when I wasn't able to yesterday?

As for your question, looks like I have neither kdesu nor kdsu on my Kubuntu 10.10. I only see kdesudo.


Kubuntu 12.04 (Precise Pangolin) 64-bit / KDE 4.8.1
Work: Dell Precision T5500 (Xeon E5506 @ 2.13 GHz x 2 / 12GB RAM)
Home: Panasonic Toughbook W8 (Core 2 Duo @ 1.20 GHz / 4GB RAM)


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], q.ignora, watchstar