[Linux Linpus] Desktop Switcher

Discussion in 'Modding and Customization' started by Tybor, Jul 16, 2008.

  1. Tybor

    Tybor

    Joined:
    Jul 11, 2008
    Messages:
    62
    Likes Received:
    0
    Location:
    Austria
    Hi all,

    I'm running Linpus Lite in Vmware. There exists a shortcut in panel with which it is possible to
    switch between the two desktop modes. This shortcut calls the shell script /etc/rc.d/session/switch-desk.sh .
    Code:
    #! /bin/sh
    #touch /tmp/.switch
    echo $HOME > /tmp/X_status
    echo $USER >> /tmp/X_status
    mkdir $HOME/.config/xfce4/panel -p
    mkdir $HOME/.config/xfce4/mcs_settings -p
    #sudo init 3
    #sudo killall xdm > /dev/null 2>&1
    #sudo killall X
     
    ###################
    if [ -e /tmp/desktop ]; then
       sudo /bin/cp -f /etc/rc.d/session/xfce4-session.rc.new /etc/xdg/xfce4-session/xfce4-session.rc
       sudo /bin/cp -f /etc/rc.d/session/panels.xml.new $HOME/.config/xfce4/panel/panels.xml
       sudo /bin/cp -f /etc/rc.d/session/desktop.xml.new $HOME/.config/xfce4/mcs_settings/desktop.xml
       sudo rm -f /tmp/desktop
    else
       sudo /bin/cp -f /etc/rc.d/session/xfce4-session.rc.desktop /etc/xdg/xfce4-session/xfce4-session.rc
      sudo /bin/cp -f /etc/rc.d/session/panels.xml.desktop $HOME/.config/xfce4/panel/panels.xml
       sudo /bin/cp -f /etc/rc.d/session/desktop.xml.desktop $HOME/.config/xfce4/mcs_settings/desktop.xml
       sudo touch /tmp/desktop
    fi
    #           rm -f /tmp/.switch
     
    ###############
    sudo /usr/sbin/gdm-stop
    #startxfce4 &
    Could some One owner look up if there is such a script available? Or the specified files?
    It shouldn't be that hard to modify this script to be run on the One.

    gr33tz,
    Tybor
     
    Tybor, Jul 16, 2008
    #1
  2. Tybor

    bjrn

    Joined:
    Jul 10, 2008
    Messages:
    16
    Likes Received:
    0
    In the Linpus Lite you get with the Aspire One, the /etc/rc.d/session/ directory only contains one file, xfdesktop.sh, which contains the following:
    Code:
    killall -9 xfdesktop2
    killall -9 acer-search-desktop
    xfdesktop2 &
    /usr/share/search-bar/start-search_bar.sh &
    
    
     
    bjrn, Jul 16, 2008
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.