You are not logged in.

#1 2010-04-09 15:10:56

MindTooth
Member
From: Norway
Registered: 2008-11-11
Posts: 331

The correct way to launch Openbox from e.g. SLiM?

Hello,

Just trying to understand the proper way to run Openbox. The wiki contains several options, and I hope by posting here, I will get a clear answer. Which upon a solution is given will be included in the wiki as well.

So, how to you exactly run Openbox? Using ck-launch-session, dbus-launch, etc.? Please provide an explained answer which I can use further.

Offline

#2 2010-04-09 16:01:30

Skoll
Member
Registered: 2009-09-23
Posts: 36

Re: The correct way to launch Openbox from e.g. SLiM?

Personally I prefer starting Openbox through .xinitrc by adding the line "exec openbox-session" (without the quotation marks).

Offline

#3 2010-04-09 16:50:02

MindTooth
Member
From: Norway
Registered: 2008-11-11
Posts: 331

Re: The correct way to launch Openbox from e.g. SLiM?

No ck-launch.. or dbus-launch... infront?

Ed1t: I can see now that not using ck-launch-session makes me unable to use memory sticks. HAL won't mount the units.

Last edited by MindTooth (2010-04-09 17:22:03)

Offline

#4 2010-04-10 16:44:52

Skoll
Member
Registered: 2009-09-23
Posts: 36

Re: The correct way to launch Openbox from e.g. SLiM?

Nope, I don't run HAL or dbus because I don't need them.

Offline

#5 2010-04-10 18:40:35

MindTooth
Member
From: Norway
Registered: 2008-11-11
Posts: 331

Re: The correct way to launch Openbox from e.g. SLiM?

Does Openbox support ConsoleKit? If not, then there is no need to run it with ck option.

Offline

#6 2010-04-10 21:16:22

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: The correct way to launch Openbox from e.g. SLiM?

MindTooth wrote:

Does Openbox support ConsoleKit? If not, then there is no need to run it with ck option.

As you've figured out yourself, HAL permissions are handled by consolekit. So you need to run the session (any session, be it openbox or whatever) as a consolekit session if you want to do anything HAL related, like HAL-based mounting.

Offline

#7 2010-04-10 21:27:54

Ultraman
Member
Registered: 2009-12-24
Posts: 242

Re: The correct way to launch Openbox from e.g. SLiM?

I load Openbox via .xinitrc as well, but do make use of consolekit.
My .xinitrc contains:

# Start Openbox
exec ck-launch-session openbox-session

I don't use SLiM, but I think it uses .xinitrc right?

Offline

#8 2010-04-11 05:05:00

smakked
Member
From: Gold Coast , Australia
Registered: 2008-08-14
Posts: 420

Re: The correct way to launch Openbox from e.g. SLiM?

I use slim and use

exec ck-launch-session openbox-session

Certified Android Junkie
Arch 64

Offline

#9 2010-04-11 11:54:18

MindTooth
Member
From: Norway
Registered: 2008-11-11
Posts: 331

Re: The correct way to launch Openbox from e.g. SLiM?

So, if I have removed HAL, i can remove ck-launch-session then?

Ed1t: Tested without ConsoleKit, and udev mounted the usb stick perfectly. (Except some permission problem sad )

Last edited by MindTooth (2010-04-11 12:04:26)

Offline

#10 2010-04-16 08:32:48

anespo
Member
From: Europe
Registered: 2007-07-17
Posts: 39

Re: The correct way to launch Openbox from e.g. SLiM?

for DBUS +polkit + Consolekit and Openbox  (i need automount DVD and USB flash disk in Nautilus) - i use:


 exec ck-launch-session dbus-launch openbox-session

or

 exec ck-launch-session dbus-launch --exit-with-session --sh-syntax openbox

Last edited by anespo (2010-04-16 08:37:35)

Offline

#11 2010-04-16 08:38:40

MindTooth
Member
From: Norway
Registered: 2008-11-11
Posts: 331

Re: The correct way to launch Openbox from e.g. SLiM?

Not sure, but I think that autostart.sh already starts dbus. There is at least a section with an if statement, etc.

Offline

Board footer

Powered by FluxBB