Switch acer desktop <-> xfce from panel (icon)

New forum just for customizing your Acer Aspire One, desktop, wallpaper, icons, overall look, search bar.

Moderators: glibdud, janss

Switch acer desktop <-> xfce from panel (icon)

Postby adcomp » Mon Aug 18, 2008 9:12 pm

Hello .. ( sorry for my poor english )

Some people ask me how I do this 'switch desktop' : http://www.youtube.com/watch?v=z_3NeUGAOLI
If someone can help me to "translate" this little howto ..

TODO : switch between 'Acer Desktop' <-> 'Xfce Desktop' from panel

1) to switch I made this little script : http://www.ad-comp.be/data/files/src/changedesktop.sh
Code: Select all
#!/bin/sh

# Test if easy mode (acer)
ps aux | grep xfdesktop2 | grep '/usr/bin'

#  0 = Acer Desktop 
if [ $? = 0 ]; then
   killall xfdesktop2
   sleep .5
   /usr/bin/xfdesktop-xfce &
else
   killall xfdesktop-xfce
   sleep .5
   /usr/bin/xfdesktop2 &
fi


2) download it in your home path ( or copy/paste )

3) you have to set file permissions. Open a terminal ,
Code: Select all
chmod +x changedesktop.sh


4) now add a launcher to panel .. open terminal ( or ALT+F2 ) :
Code: Select all
xfce4-panel -a


###
# UPDATE 1
###


Summary :D
Follow instructions and it should be ok ;)

1) open terminal : ALT+F2 , 'xterm' or 'xfterm4'
2) download script in your home path
3) change file permission [ chmod ]
4) move the script to /usr/local/bin [ with sudo because you need to be root ]
5) add launcher to panel [ xfce4-panel -a ]

here some screenshot to help ( in french :ugeek: )

Image

Image

Image


###
# UPDATE 2
###


If the script is in your download' directory ( /home/user/Downloads or /mnt/home/Downloads if you have SD on storage expansion ) :
Code: Select all
[user@localhost ~]$ cd ~/Downloads
[user@localhost Downloads]$ ls
changedesktop.sh
[user@localhost Downloads]$ chmod +x changedesktop.sh
[user@localhost Downloads]$ sudo mv changedesktop.sh /usr/local/bin/changedesktop
[user@localhost Downloads]$ cd
[user@localhost ~]$ xfce4-panel -a


Now add a launcher to panel ( command = changedesktop ) ..
Last edited by adcomp on Mon Sep 01, 2008 6:35 pm, edited 2 times in total.
User avatar
adcomp
 
Posts: 20
Joined: Thu Jul 24, 2008 9:48 pm
Location: Belgium

Re: Switch acer desktop <-> xfce

Postby clairvaux » Mon Aug 18, 2008 10:33 pm

Will the updater work after this?
clairvaux
 
Posts: 26
Joined: Mon Aug 18, 2008 12:30 am

Re: Switch acer desktop <-> xfce

Postby adcomp » Mon Aug 18, 2008 10:43 pm

clairvaux wrote:Will the updater work after this?

Yes .. why not ? all work fine for me ..
User avatar
adcomp
 
Posts: 20
Joined: Thu Jul 24, 2008 9:48 pm
Location: Belgium

Re: Switch acer desktop <-> xfce

Postby clairvaux » Tue Aug 19, 2008 12:05 am

Ah I see, unlike the other script, this one doesn't replace vital parts of the OS. Very well done! I like this a lot. Simple, but complete 8-)
clairvaux
 
Posts: 26
Joined: Mon Aug 18, 2008 12:30 am

Re: Switch acer desktop <-> xfce

Postby Sid » Tue Aug 19, 2008 5:51 am

clairvaux wrote:Ah I see, unlike the other script, this one doesn't replace vital parts of the OS. Very well done! I like this a lot. Simple, but complete 8-)



Both modifications are good, note that the other script removes the acer modified items, giving better customization options.
Sid,
AOA 110-Ab, Linpus (No M$ here) 1.5 gig of ram and NO swap activity - Proud owner since 27th July 2008
PNY DDR2 PC2-4300 1Gb 533mhz SODIMM 200pin
Sid
 
Posts: 642
Joined: Tue Jul 22, 2008 2:50 pm
Location: UK - (most locations)

Re: Switch acer desktop <-> xfce

Postby pon10 » Tue Aug 19, 2008 8:52 am

Ok this i my first Linux OS i have ever worked with so i am a nobe!

i cant get the launcher to work when i put the script in the teminal it works but then i closed the teminal and it goes to crap! when i i am in the properties of the new launcher i put the script in the command line but when i closed it all nothing happens???

http://dl.getdropbox.com/u/32503/Screenshot.png
pon10
 
Posts: 8
Joined: Mon Aug 18, 2008 6:13 am

Re: Switch acer desktop <-> xfce

Postby equani » Tue Aug 19, 2008 2:57 pm

Have you found a way to run the command at startup? (To boot directly to the xfce desktop)
I tried different types of startup scripts, but apparently the Acer Desktop launches after the scripts are executed, so it boots to the Acer Desktop.
equani
 
Posts: 2
Joined: Tue Aug 19, 2008 2:54 pm

Re: Switch acer desktop <-> xfce

Postby adcomp » Tue Aug 19, 2008 3:56 pm

pon10 wrote:i cant get the launcher to work when i put the script in the teminal it works but then i closed the teminal and it goes to crap! when i i am in the properties of the new launcher i put the script in the command line but when i closed it all nothing happens???


:shock: you do it in wrong way :lol:

You have to put 'where is the script' in the command line .. not copy the script into ;)
Save the script in your home path ( /home/user ) and write something like this in command line : /home/user/changedesktop

But if you want to launch it by hand , I think that's better to move the script to /usr/local/bin and use it with "Run program" ( ALT+F2 )
Code: Select all
[user@localhost ~]$ sudo mv changedesktop /usr/local/bin

now you can use it from anywhere .. not only in your home path. with ALT+F2 , simply write 'changedesktop'
Same thing with command line (launcher) .. simply write 'changedesktop'.

I know my explaination are not very clear .. again sorry for my poor english but if this can help someone :geek:

David [a.k.a] ADcomp from Belgium :ugeek:
User avatar
adcomp
 
Posts: 20
Joined: Thu Jul 24, 2008 9:48 pm
Location: Belgium

Re: Switch acer desktop <-> xfce

Postby adcomp » Tue Aug 19, 2008 4:15 pm

equani wrote:Have you found a way to run the command at startup? (To boot directly to the xfce desktop)
I tried different types of startup scripts, but apparently the Acer Desktop launches after the scripts are executed, so it boots to the Acer Desktop.

Yep .. I didn't test this , but you can try to move the script in '~/.config/autostart/' .. I don't think That's the better way to do it ...
Code: Select all
[user@localhost ~]$ cp changedesktop .config/autostart


:ugeek: bye
User avatar
adcomp
 
Posts: 20
Joined: Thu Jul 24, 2008 9:48 pm
Location: Belgium

Re: Switch acer desktop <-> xfce

Postby equani » Tue Aug 19, 2008 4:25 pm

adcomp wrote:Yep .. I didn't test this , but you can try to move the script in '~/.config/autostart/' .. I don't think That's the better way to do it ...
Code: Select all
[user@localhost ~]$ cp changedesktop .config/autostart


:ugeek: bye



Thanks alot mate! Didnt even think of that option :P
:mrgreen:


-- Edit --
Didnt work :(
Too bad. Would have been so easy a way.
I guess you could try prevent the system from running the Acer Desktop, but it just leaves me wondering, what other stuff that affects on.
equani
 
Posts: 2
Joined: Tue Aug 19, 2008 2:54 pm

Next

Return to Desktop Customization

Who is online

Users browsing this forum: No registered users and 2 guests