[SOLVED] Export $(dbus-launch)

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] Export $(dbus-launch)

Postby phil66 » Jul 21st, '11, 22:05

Mageia 1
Kde 4.6.3

I cannot open files in dolphin directly by double clicking.

To open per say a /var/log file I have to go to terminal and su and password and dolphin

Then I have to type export $(dub-launch) I have to do this everytime I want to open a file with root permission

The dbus command does not stick so it has to be entered everytime I visit a file.

Should I not be able to open files by clicking dolphin and why do I have to enter dbus everytime I try to open from terminal ??
User avatar
phil66
 
Posts: 44
Joined: Jun 11th, '11, 19:50
Location: Texas

Re: Export $(dbus-launch)

Postby djennings » Jul 21st, '11, 23:37

phil66 wrote:Mageia 1
Kde 4.6.3

I cannot open files in dolphin directly by double clicking.

To open per say a /var/log file I have to go to terminal and su and password and dolphin

Then I have to type export $(dub-launch) I have to do this everytime I want to open a file with root permission

The dbus command does not stick so it has to be entered everytime I visit a file.

Should I not be able to open files by clicking dolphin and why do I have to enter dbus everytime I try to open from terminal ??


Files in /var/log do not have read permission for an ordinary user which is why you have to become root user first.

Instead of 'su' use
Code: Select all
su -
Note the extra '-' You will not need to do the export $(dub-launch) step.

Alternatively enter Alt+F2 and in the pop up box enter
Code: Select all
kdesu dolphin


Alternatively create a new menu entry with the command kdesu dolphin
You could also assign this command as an action item when right clicking on a file using KDE Control Centre>File Associations
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: Export $(dbus-launch)

Postby wobo » Jul 21st, '11, 23:39

You don't have to.

Some files can only be opened as root, namely files in /var/log.

1. Open a konsole window
2. Become root by typing
Code: Select all
su -

(the dash is important!) and give the password. Then open dolphin or mc or whatever.

EDIT:
Bah, I'm getting slower day by day.... :(
wobo
---
And a new day will dawn for those who stand long
And the forests will echo with laughter
(Stairway to Heaven, Led Zeppelin)
User avatar
wobo
 
Posts: 1649
Joined: Mar 22nd, '11, 17:13

[SOLVED] Re: Export $(dbus-launch)

Postby phil66 » Jul 22nd, '11, 19:52

Thanks to both replies

The suggestions worked

I ended up changing the dolphin menu and that now allows me to open root files directly from dolphin

Please mark this thread as resolved
User avatar
phil66
 
Posts: 44
Joined: Jun 11th, '11, 19:50
Location: Texas


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron