SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-07-01 15:35:23

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

[solved]Openbox session : is it supposed to work like this?

When I shutdown my system with some applications open, I expect my session manager to save my session and then restore it after the next reboot.
Apparently this is NOT how it works, because the system starts a fresh new session after reboot.
Either the session is not saved at shutdown, OR it is saved but not picked up at reboot.

I run a standard OpenBox crunchbang statler. No packages from other repos installed.

Running processes containing "session":

ps aux| grep session
jean      1775  0.0  0.0   3236   352 ?        Ss   17:08   0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session openbox-session
jean      1778  0.0  0.1   3288   712 ?        S    17:08   0:00 /usr/bin/dbus-launch --exit-with-session openbox-session
jean      1779  0.0  0.1   2684   960 ?        Ss   17:08   0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 8 --session
jean      1975  0.0  0.2   4156  1148 ?        Ss   17:14   0:00 /bin/bash -c ps aux| grep session >ps-aux.out
jean      1977  0.0  0.1   4156   540 ?        D    17:14   0:00 /bin/bash -c ps aux| grep session >ps-aux.out

Am I expecting too much or is this how it is supposed to work?

Last edited by xaos52 (2011-07-08 18:51:38)

Offline

Be excellent to each other!

#2 2011-07-01 15:57:12

snowpine
#!-a-roo
Registered: 2008-11-24
Posts: 2,984

Re: [solved]Openbox session : is it supposed to work like this?

Xfce has the feature you're looking for. You can install it with:

sudo apt-get install crunchbang-multi-session

/hugged

Offline

#3 2011-07-01 16:12:14

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: [solved]Openbox session : is it supposed to work like this?

@snowpine: thx, will try that.
lxsession can not be configured to do this?

Offline

#4 2011-07-01 16:49:13

snowpine
#!-a-roo
Registered: 2008-11-24
Posts: 2,984

Re: [solved]Openbox session : is it supposed to work like this?

xaos52 wrote:

@snowpine: thx, will try that.
lxsession can not be configured to do this?

Don't know, never tried lxsession.

If it's the same stuff you need every time, you can put it in ~/.config/openbox/autostart.sh


/hugged

Offline

#5 2011-07-01 17:28:21

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: [solved]Openbox session : is it supposed to work like this?

snowpine wrote:

If it's the same stuff you need every time, you can put it in ~/.config/openbox/autostart.sh

If you use that, the application will not save anything you have currently open and just open a 'fresh' one, e.g. a browser will not remember tabs.


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#6 2011-07-01 18:44:18

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: [solved]Openbox session : is it supposed to work like this?

Hmmm...

Here is how it goes:

gdm (where user selects openbox session)
   |-> spawns /usr/bin/openbox
                     |-> ~/.config/openbox/autostart.sh
                             |-> lxsession &
                             |-> etcetera...

Now I have traced lxsession and this process seems to stop after trying to find config files.
It searches in:
   1. $USER/.config/lxsession/LXDE/desktop.conf           .... which does not exist
   2. /etc/xdg/lxsession/LXDE/desktop.conf                    .... wich does not exist
and seems to give up.

Seems to me like there is not much sense in launching lxsession without any of those config files, or am I wrong?

Can anyone shed some light on this?

Offline

#7 2011-07-01 19:04:32

hhh
Cityspeak
Registered: 2010-08-04
Posts: 3,253

Re: [solved]Openbox session : is it supposed to work like this?

*Crap, bitten by the "login sends you to the wrong tab" forum bug. Please ignore.*

Last edited by hhh (2011-07-01 19:05:25)


bunsenlabs     8)     forum mod squad

Offline

#8 2011-07-01 19:07:51

anonymous
The Mystery Member
Registered: 2008-11-29
Posts: 9,419

Re: [solved]Openbox session : is it supposed to work like this?

lxsession is typically used with LXDE; I have no idea how to combine with plain Openbox though.

Offline

#9 2011-07-01 19:17:44

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: [solved]Openbox session : is it supposed to work like this?

I always removed it from my autostart.sh as I felt it didn't do much. Had no errors whatsoever once removed.


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#10 2011-07-01 21:37:36

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: [solved]Openbox session : is it supposed to work like this?

Interesting, I tried to it start it in a terminal - Nothing!
I agree, ~/.config/lxsession/LXDE/desktop.conf and /etc/xdg/lxsession/LXDE/desktop.conf - don't exist

So I installed lxsession-edit and looked at that:
thmb_lxs-edit.png
OK ... now we're getting someplace ...

Print queue applet - ?  what's that, I see nothing in autostart.sh
volumeicon - hmmmmmmmm it's in autostart.sh
Wicd Network Manager Tray  - it's in autostart.sh
xfce4-autostart - I can't find that....

~/.config/openbox/autostart.sh right after ##have fun : )

## Have fun! :)

## Start session manager
lxsession &

## Start volumeicon after a slight delay
(sleep 3s && volumeicon) &

## Launch network manager applet
# (sleep 4s && nm-applet) & ## removed

# Launch WICD
(sleep 1s && wicd-client) &

Here's a good one:

## Enable power management
xfce4-power-manager &

It's not even installed?

HOWEVER in /etc/xdg/autostart I see
(added by me):

parcellite-startup.desktop
 (clipboard manager)
polkit-gnome-authentication-agent-1.desktop
 (PolicyKit Authentication Agent)
print-applet.desktop
 (System tray icon for managing print jobs)
volumeicon.desktop
 (Volume Icon)
wicd-tray.desktop
 (Display network connection status in the system tray)
xfce4-volumed.desktop
 (Daemon managing the volume multimedia keys and displaying volume notifications)

So now I'm totally confused. hmm

I end with: Commented out lxsession, xfce4-power-manager and "removed-totally" lxsession-edit!

Last edited by Sector11 (2011-07-01 21:39:42)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#11 2011-07-04 17:58:44

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: [solved]Openbox session : is it supposed to work like this?

Yeh add me to the "wtf is lxsession doing there?" list.
My guess it's a hangover from Crunchbang 8 or something that never got taken out.
As far as I know the current lxsession (in squeeze) is only for startup apps, something like openbox's autostart.sh. I don't think it can save sessions.


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
#! forum moderator    BunsenLabs

Offline

#12 2011-07-04 19:20:37

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,826
Website

Re: [solved]Openbox session : is it supposed to work like this?

the great leader has spoken anno 2009:

http://crunchbanglinux.org/forums/post/23769/#p23769

smile so removing it doesn't hurt much.

Last edited by machinebacon (2011-07-04 19:22:30)


Sweaty lads picking up the soap | I love the new "Ignore user" button

Offline

#13 2011-07-06 10:58:34

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: [solved]Openbox session : is it supposed to work like this?

I'm not sure if lxsession-lite even "provides some minimal session management such as remembering which page you are viewing in Evince etc" to be honest.


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
#! forum moderator    BunsenLabs

Offline

#14 2011-07-08 18:50:53

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: [solved]Openbox session : is it supposed to work like this?

Conclusion:
Without configuring one of the 2 conf files mentioned in post 6 of this thread, lxsession does nothing at all.
I have commented it out in $HOME/.config/openbox/autostart.sh.
Closing this thread.

Offline

#15 2011-11-03 11:06:07

crunchworksyeay
#! Junkie
Registered: 2011-06-26
Posts: 292

Re: [solved]Openbox session : is it supposed to work like this?

xaos52 wrote:

When I shutdown my system with some applications open, I expect my session manager to save my session and then restore it after the next reboot.
Apparently this is NOT how it works, because the system starts a fresh new session after reboot.

So what are my options ?
How exactly was this solved ? (removing it is not a solution.)  Manually configuring those files ? How ?

or should I:
sudo apt-get install crunchbang-multi-session ?

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gnome-power-manager libpanel-applet2-0 hal libthunar-vfs-1-2 hal-info
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  crunchbang-openbox-packages crunchbang-xfce-packages desktop-base evince evince-common
  firmware-b43legacy-installer hal hal-info iceweasel-stylish-addon libevince2 libkpathsea5
  libthunar-vfs-1-2 openbox-logout-script-basic xfce4-screenshooter xfce4-terminal xfce4-volumed
Suggested packages:
  nautilus gnome-device-manager
Recommended packages:
  gdebi gimp gimp-plugin-registry xfce4 orage
The following packages will be REMOVED:
  openbox-logout-script
The following NEW packages will be installed:
  crunchbang-multi-session crunchbang-openbox-packages crunchbang-xfce-packages desktop-base evince
  evince-common firmware-b43legacy-installer hal hal-info iceweasel-stylish-addon libevince2 libkpathsea5
  libthunar-vfs-1-2 openbox-logout-script-basic xfce4-screenshooter xfce4-terminal xfce4-volumed
0 upgraded, 17 newly installed, 1 to remove and 110 not upgraded.
Need to get 13.2 MB of archives.
After this operation, 28.4 MB of additional disk space will be used.

iceweasel-stylish-addon ?! This doesn't look good.

How did you get it to work ?


What is truth? said jesting Pilate; and would not stay for an answer. - Francis Bacon.

Offline

#16 2011-11-03 11:22:55

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: [solved]Openbox session : is it supposed to work like this?

I stayed with OpenBox and accepted the consequences (No real session management provided by lxsession)
I commented out 'lxsession &' in $HOME/.config/openbox/autostart.sh since it did not provide anything usefull for me.
XFCE does provide the funcionality I was then looking for, but I prefer scrotwm over OB over LXCE.
hth

Offline

#17 2011-11-03 11:39:39

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,749

Re: [solved]Openbox session : is it supposed to work like this?

xaos52 wrote:

I I prefer scrotwm over OB over LXCE.

lol, another scrotumer. It's a virus!

Offline

#18 2011-11-03 11:43:28

crunchworksyeay
#! Junkie
Registered: 2011-06-26
Posts: 292

Re: [solved]Openbox session : is it supposed to work like this?

So cb-multisession would give me the option to log in with a xfce session ? Or what's with the bloat ?


What is truth? said jesting Pilate; and would not stay for an answer. - Francis Bacon.

Offline

#19 2011-11-03 12:34:20

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: [solved]Openbox session : is it supposed to work like this?

I was only starting with #! back then, so I installed the XFCE version.
I have never installed crunchbang-multi-session and when I try now (OB version upgraded to backports) this is what apt-get proposes.

.
.
.
xfce4-terminal xfce4-timer-plugin xfce4-utils xfce4-verve-plugin xfce4-volumed
  xfce4-wavelan-plugin xfce4-weather-plugin xfce4-xfapplet-plugin xfce4-xkb-plugin
  xfdesktop4 xfdesktop4-data xfig xfig-doc xfig-libs xfmpc xfprint4 xfswitch-plugin
  xfwm4 xfwm4-themes xhtml2ps xindy xindy-rules xloadimage xml-twig-tools xsensors
  xsidplay xulrunner-1.9.1 yate yate-core
0 upgraded, 1013 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,412 MB of archives.
After this operation, 4,434 MB of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.

So, I declined neutral
Sorry I cant help you more...

Offline

#20 2011-11-03 16:24:06

snowpine
#!-a-roo
Registered: 2008-11-24
Posts: 2,984

Re: [solved]Openbox session : is it supposed to work like this?

crunchworksyeay wrote:

So cb-multisession would give me the option to log in with a xfce session ? Or what's with the bloat ?

Correct.

28.4mb is only considered "bloat" if you have a very tiny hard drive. With a current price of under US$100 for a 1TB drive, you are talking about less than 1 penny's worth of storage. smile


/hugged

Offline

#21 2011-11-03 22:33:04

crunchworksyeay
#! Junkie
Registered: 2011-06-26
Posts: 292

Re: [solved]Openbox session : is it supposed to work like this?

It's impact on performance, not storage I'm worried about. (The simple fact that nautilus is being suggested gives me shivers. I know, I know. RAM is cheep too...)
I installed it since it seems there's no other solution.


What is truth? said jesting Pilate; and would not stay for an answer. - Francis Bacon.

Offline

#22 2011-11-03 22:37:28

snowpine
#!-a-roo
Registered: 2008-11-24
Posts: 2,984

Re: [solved]Openbox session : is it supposed to work like this?

crunchworksyeay wrote:

It's impact on performance, not storage I'm worried about. (The simple fact that nautilus is being suggested gives me shivers. I know, I know. RAM is cheep too...)
I installed it since it seems there's no other solution.

Suggesting Nautilus will not slow down your computer in any way. wink

Most #! users seem to report that the Xfce and Openbox sessions are indistinguishable in performance, except perhaps on the very oldest and slowest of hardware.


/hugged

Offline

#23 2011-11-04 12:22:52

crunchworksyeay
#! Junkie
Registered: 2011-06-26
Posts: 292

Re: [solved]Openbox session : is it supposed to work like this?

Well... I see absolutely nothing refering the xfce in the... session manager ?... on the login page. I've got some failsafe this and that... some gnome.desktop and kde.desktop something... they don't work... so, I logged in with openbox...

My windows still aren't restored at startup, so it didn't work.
I now have a "document viewer" starting up on every login for no reason.
Pidgin gave me an error message that it has trouble connecting to dbus
I can't drag a tab to the bookmarks bar in iceweasel anymore

I'm removing it...


What is truth? said jesting Pilate; and would not stay for an answer. - Francis Bacon.

Offline

#24 2011-11-04 12:34:55

snowpine
#!-a-roo
Registered: 2008-11-24
Posts: 2,984

Re: [solved]Openbox session : is it supposed to work like this?

I took a closer look at the terminal output in your post #15. I see two issues:

1. your system is not up to date--there are 110 packages to be updated!

2. you didn't actually install xfce4 (it's listed under "recommended" instead of "will be installed") so that's why it doesn't appear in your login options, obviously.

I suggest running:

cb-welcome

which will walk you step-by-step through updating your system and then installing multisession.


/hugged

Offline

Be excellent to each other!

#25 2011-11-04 17:04:07

crunchworksyeay
#! Junkie
Registered: 2011-06-26
Posts: 292

Re: [solved]Openbox session : is it supposed to work like this?

oh.. that means... i'll probably end up with:

Need to get 1,412 MB of archives.
After this operation, 4,434 MB of additional disk space will be used.

If that's the case, I'll probably be better off if I hibernate when necessary.

Too bad only xfce has this feature... hmm

Thanks !

Last edited by crunchworksyeay (2011-11-04 17:05:45)


What is truth? said jesting Pilate; and would not stay for an answer. - Francis Bacon.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo