Results 1 to 4 of 4

Thread: Restore Desktop from backup upon login

  1. #1
    Join Date
    Aug 2005
    Location
    Costa Rica
    Beans
    119
    Distro
    Kubuntu 12.04 Precise Pangolin

    Restore Desktop from backup upon login

    I am running kubuntu. I have been trying to get a script so that when a user logs in, it will restore their Desktop from a file storage. This is the user's ~/.xsession file:

    Code:
    #!/bin/sh
    rm -r /home/english/Desktop
    cd /home/Desktop-bak
    cp -R ./ /home/english/Desktop
    The script executes fine and it works, however the X session crashes right after its execution. What here would cause the session to crash and how can I get around it?

  2. #2
    Join Date
    Aug 2005
    Location
    Costa Rica
    Beans
    119
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: Restore Desktop from backup upon login

    I just realized that this happens with ANY .xsession file. I just created an empty file and when the user starts KDE with that session, it just goes back to the login screen. Should I file a bug report? Can anyone else confirm this?
    Last edited by mikerobinson; August 8th, 2008 at 10:37 PM.

  3. #3
    Join Date
    Jun 2007
    Beans
    290
    Distro
    Kubuntu 9.04 Jaunty Jackalope

    Re: Restore Desktop from backup upon login

    It's doing this because you don't quite have it right...

    Try man Xsession and man xinit - these man pages specifically talk about the X initialization process and how .xsession fits into it.
    E. A. (Ed) Graham, Jr.
    Linux User #28251
    Professional Java Geek

  4. #4
    Join Date
    Aug 2008
    Beans
    1

    Re: Restore Desktop from backup upon login

    I'm as new as can be to linux and after seeing this topic I became intrigued. I'm running ubuntu and am wondering if there is a similar process by which the desktop and all its contents will reload upon startup

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •