[Linux Linpus] Desktop Switcher

Joined
Jul 11, 2008
Messages
62
Reaction score
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
 
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 &
 
Back
Top