# How to remember previous login session

**URL:** <https://forums.suse.com/t/how-to-remember-previous-login-session/30200>\
**Category:** SLES Configure-Administer\
**Created:** [August 21, 2017, 4:45pm UTC](https://forums.suse.com/t/how-to-remember-previous-login-session/30200 "2017-08-21T16:45:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dn312sr](https://avatars.discourse-cdn.com/v4/letter/d/439d5e/32.png) [@dn312sr](https://forums.suse.com/u/dn312sr)\
**Post date:** [August 21, 2017, 4:45pm UTC](https://forums.suse.com/t/how-to-remember-previous-login-session/30200/1 "2017-08-21T16:45:19Z")

</div>

I am pretty inexperienced with Linux, so please be patient with me…

I have just set up a new SPES 12 SP2 machine up and when I log on as a normal (non-root) user, it brings up a blank canvas every time. I start a couple of Xterms and YaST and then logout but when it logs back in, it still displays a blank canvas.

Is there any way when I log in that I can get it to reopen the windows that were open when I last logged out?

Many thanks,

Gary

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [August 22, 2017, 1:56am UTC](https://forums.suse.com/t/how-to-remember-previous-login-session/30200/2 "2017-08-22T01:56:26Z")

</div>

[QUOTE=dn312sr;39188]I am pretty inexperienced with Linux, so please be patient with me…

I have just set up a new SPES 12 SP2 machine up and when I log on as a normal (non-root) user, it brings up a blank canvas every time. I start a couple of Xterms and YaST and then logout but when it logs back in, it still displays a blank canvas.

Is there any way when I log in that I can get it to reopen the windows that were open when I last logged out?

Many thanks,

Gary[/QUOTE]  
Hi  
Sounds like you running ICEwm? A right click on the desktop shows a menu system? So you physically at the machine when you login, not remotely via something like VNC?

If ICEwm, then you normally would create a shell script to start things up in a file called ~/.icewm/startup (~/ = your user home directory)

---

<div class="post-metadata">

**Author:** ![dn312sr](https://avatars.discourse-cdn.com/v4/letter/d/439d5e/32.png) [@dn312sr](https://forums.suse.com/u/dn312sr)\
**Post date:** [August 22, 2017, 11:21am UTC](https://forums.suse.com/t/how-to-remember-previous-login-session/30200/3 "2017-08-22T11:21:44Z")

</div>

Thanks for the reply Malcolm. Yes, I am running icewm.

What commands will I need to put in the startup file in order to get icewm to remember my previous session?

Cheers,

Gary

[QUOTE=malcolmlewis;39195]Hi  
Sounds like you running ICEwm? A right click on the desktop shows a menu system? So you physically at the machine when you login, not remotely via something like VNC?

If ICEwm, then you normally would create a shell script to start things up in a file called ~/.icewm/startup (~/ = your user home directory)[/QUOTE]

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [August 22, 2017, 2:42pm UTC](https://forums.suse.com/t/how-to-remember-previous-login-session/30200/4 "2017-08-22T14:42:26Z")

</div>

Hi  
Just the apps you want to run with an ampersand (detach/background), for example

```auto
#!/bin/bash

# Xterm 1
xterm &

# Xterm 2
xterm &
```

You would need to add additional switches for size, location on the screen etc. But these will be fresh apps since if you logout everything is shutdown…

---

<div class="post-metadata">

**Author:** ![dn312sr](https://avatars.discourse-cdn.com/v4/letter/d/439d5e/32.png) [@dn312sr](https://forums.suse.com/u/dn312sr)\
**Post date:** [August 22, 2017, 6:27pm UTC](https://forums.suse.com/t/how-to-remember-previous-login-session/30200/5 "2017-08-22T18:27:12Z")

</div>

Hi Malcolm,

Brilliant! That did the trick nicely!

Many thanks,

Gary

[QUOTE=malcolmlewis;39211]Hi  
Just the apps you want to run with an ampersand (detach/background), for example

```auto
#!/bin/bash

# Xterm 1
xterm &

# Xterm 2
xterm &
```

You would need to add additional switches for size, location on the screen etc. But these will be fresh apps since if you logout everything is shutdown…[/QUOTE]
