Xfce Forum

Sub domains
 

You are not logged in.

#1 2006-11-16 07:32:52

SimonJ
Member
From: Perth
Registered: 2006-09-06
Posts: 135
Website

Panel entries

I have had a look in ~/.config/xfce4/panel and see the panel entries with numeric suffixes eg. clock-5.rc and then some with what I guess is a session id eg. launcher-11627105420.rc

Then in panels.xml I can see the list of these launchers. Can I edit them to remove the session id's and therefore make them stick even if I save another session? I guess I'd need to do the filenames and the entries in panels.xml.

Also can I then make a backup of these so I can drop them into a new installation and voila, desktop done!

I hope all that makes sense,

TIA


Simon.                                                         (^_^)

TIP: Proofread carefully to see if you any words out.
=====================================================================

Offline

#2 2006-11-16 13:54:54

TomE
Member
Registered: 2005-02-05
Posts: 132

Re: Panel entries

It needs the numbers there, as if there more than one launcher there would only be one config.
You can tar up the ~/.config/xfce4/panel/ dir and it will be transferable.

If you really want it without the numbers and only have one of each item, something like this should work (I've not tested and it may destroy the world  lol )

sed -i -e s/-.*.rc/.rc/ ~/.config/xfce4/panel/panels.xml

for i in `ls ~/.config/xfce4/panel`; do
  cd ~/.config/xfce4/panel
  replace=`echo $i | sed s/-.*.rc/.rc/`
  cp $i $replace
  rm $i
done

Offline

#3 2006-11-16 14:25:58

SimonJ
Member
From: Perth
Registered: 2006-09-06
Posts: 135
Website

Re: Panel entries

I did it manually, changing the files and the panel reference, but on logout it rewrites the panels.xml and saves new .rc files to match.

Oh well, I tried. :-) Thanks for the input.


Simon.                                                         (^_^)

TIP: Proofread carefully to see if you any words out.
=====================================================================

Offline

#4 2006-11-16 14:32:26

TomE
Member
Registered: 2005-02-05
Posts: 132

Re: Panel entries

I forgot that the panel save its config when it exits you should be able to exit the panel and then make the changes

Offline

Board footer

Powered by FluxBB