Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: emninger on November 06, 2015, 03:32:22 PM

Title: tcwbarconf changes are not permanent
Post by: emninger on November 06, 2015, 03:32:22 PM
When i change something in ControlPanel > tcwbarconf the changes are instantanely effective but after the next reboot they disappear. How can i make them permanent?

TIA
Title: Re: tcwbarconf changes are not permanent
Post by: curaga on November 06, 2015, 04:16:03 PM
They change a hidden file in your home dir, so do a backup.
Title: Re: tcwbarconf changes are not permanent
Post by: emninger on November 06, 2015, 04:35:05 PM
They change a hidden file in your home dir, so do a backup.

I do on any shutdown/reboot a backup!

The involved hidden file is ".wbar" which in reality is a symlink to /usr/local/tce.icons. Might it be that way that the original file keeps its settings (since not included in the backup scheme) and there after the next restart "overrules" the changes in ".wbar"?
Title: Re: tcwbarconf changes are not permanent
Post by: curaga on November 07, 2015, 07:25:12 AM
The settings are stored in ~/.wbarconf, and applied on reboot to the non-persistent tce.icons file.
Title: Re: tcwbarconf changes are not permanent
Post by: emninger on November 10, 2015, 03:56:15 PM
The settings are stored in ~/.wbarconf, and applied on reboot to the non-persistent tce.icons file.

Turning back to this issue:$HOME/.wbarconf looks like this:
Code: [Select]
c: wbar --bpress --pos bottom --zoomf 2 --isize 32

Which seems to me the basic configuration (how wbar behaves).

.wbar is a symbolic link to /usr/local/tce.icons which looks like this:
Code: [Select]
# The Bar && Font && Font size (11)
i: /usr/local/share/wbar/osxbarback.png
t: /usr//share/fonts/luxisr/11
c: wbar --bpress --pos bottom --zoomf 2 --isize 32
i: /usr/local/share/pixmaps/exittc.png
t: Exit
c: exec exittc
i: /usr/local/share/pixmaps/editor.png
t: Editor
c: exec editor
i: /usr/local/share/pixmaps/cpanel.png
t: ControlPanel
c: exec cpanel
i: /usr/local/share/pixmaps/apps.png
t: Apps
c: exec apps
i: /usr/local/share/pixmaps/flrun.png
t: RunProgram
c: exec flrun
i: /usr/local/share/pixmaps/mnttool.png
t: MountTool
c: exec mnttool
i: /usr/local/share/pixmaps/xfe.png
t: Xfe
c: exec xfe
i: /usr/local/share/pixmaps/aterm.png
t: Terminal
c: exec aterm
i: /usr/local/share/pixmaps/ezremaster.png
t: ezremaster
c: exec ezremaster
i: /usr/local/share/pixmaps/firefox.png
t: firefox-ESR
c: exec /usr/local/firefox-ESR/firefox
i: /usr/local/share/pixmaps/firefox.png
t: firefox
c: exec /usr/local/firefox/firefox
i: /usr/local/share/pixmaps/galculator.png
t: galculator
c: exec /usr/local/bin/galculator
i: /usr/local/share/pixmaps/htop.png
t: Htop
c: exec aterm +tr +sb -T "Htop" -e htop
i: /usr/local/share/pixmaps/lxrandr.png
t: MonitorSettings
c: exec lxrandr
i: /usr/local/share/pixmaps/core.png
t: TC_Install
c: exec tc-install
i: /usr/local/share/icons/hicolor/48x48/apps/viewnior.png
t: Viewnior
c: exec viewnior
i: /usr/local/share/pixmaps/wifi.png
t: Wifi
c: exec cliorx sudo wifi.sh
i: /usr/local/share/icons/hicolor/24x24/apps/xarchiver.png
t: Xarchiver
c: exec xarchiver
i: /usr/local/share/icons/hicolor/64x64/apps/flaxpdf.png
t: FlaxPDF
c: exec flaxpdf

This seems to be the file, where the applications and respective icons which are shown in wbar are listed. And here go the changes made by tcwbarconf in the controlpanel. And this changes are NOT permanent. And yes, i do a backup of /home
Title: Re: tcwbarconf changes are not permanent
Post by: curaga on November 10, 2015, 04:02:00 PM
I cannot reproduce on a clean install. The changes correctly persist.
Title: Re: tcwbarconf changes are not permanent
Post by: gerald_clark on November 10, 2015, 05:28:29 PM
Emninger need to start over clean.
The onboot.lst and .filetool.lst previously shown are a mess, causing many of the problems reported and yet to be reported.
Title: Re: tcwbarconf changes are not permanent
Post by: emninger on November 11, 2015, 01:59:44 AM
Emninger need to start over clean.
The onboot.lst and .filetool.lst previously shown are a mess, causing many of the problems reported and yet to be reported.

I did.

But, i do NOT see, how to exclude e.g. /usr/local/etc/fonts from being backuped because otherwise i'd loose all settings i did in fontconfig (and other settings are also done there, or in /etc/ , which as far as i know cannot be transferred to $HOME .

Just a question: The existence of this 2 files:
$HOME/.wbar and $HOME/.wbarconf is correct?
And also, that .wbar is a symbolic link to /usr/local/tce.icons ?
Title: Re: tcwbarconf changes are not permanent
Post by: gerald_clark on November 11, 2015, 08:54:03 AM
Yes, and yes, but changes to wbar are stored in ~/.wbarconf and in wbar.lst in the tce directory.
Title: Re: tcwbarconf changes are not permanent
Post by: emninger on November 11, 2015, 09:45:03 AM
Yes, and yes, but changes to wbar are stored in ~/.wbarconf and in wbar.lst in the tce directory.

So, ~/.wbarconf is a symbolic link pointing to wbar.lst? In which tce directory? /tmp/tce or /mnt/sda1/... ?
Title: Re: tcwbarconf changes are not permanent
Post by: gerald_clark on November 11, 2015, 09:59:34 AM
No. ~/.wbarconf is not a symlink.
look in /etc/sysconfig/tcedir for wbar.lst.
Are you sure /etc/sysconfig/tcedir points to persistent storage?
Title: Re: tcwbarconf changes are not permanent
Post by: emninger on November 11, 2015, 10:15:38 AM
No. ~/.wbarconf is not a symlink.
Same here.

look in /etc/sysconfig/tcedir for wbar.lst.
Are you sure /etc/sysconfig/tcedir points to persistent storage?

1. There is no wbar.lst? Should i create one?
2. /etc/sysconfig/tcedir is a symlink to /mnt/sda1/tce

Title: Re: tcwbarconf changes are not permanent
Post by: gerald_clark on November 11, 2015, 10:27:26 AM
I suspect your tce directory permissions are wrong.
Do the following and post results:

ce
ls -la
Title: Re: tcwbarconf changes are not permanent
Post by: emninger on November 11, 2015, 11:03:11 AM
Code: [Select]
tc@box:~$ ce
tc@box:/mnt/sdb1/tce$ ls -la
total 392
drwxrwxr-x    5 tc       staff         4096 Nov 11 00:40 ./
drwxr-xr-x    6 root     root          4096 Nov 11 00:05 ../
drwxrwxr-x    3 tc       staff         4096 Nov 10 23:56 boot/
-rw-rw-r--    1 tc       staff            0 Oct 27 15:37 copy2fs.lst
-rw-rw----    1 tc       staff            0 Oct 26 23:22 firstrun
-rw-rw-r--    1 tc       staff       332016 Oct 27 01:45 mydata.tgz
-rw-rw-r--    1 tc       staff         2003 Nov 11 07:07 onboot.lst
drwxrwxr-x    2 tc       staff         4096 Nov 11 00:38 ondemand/
drwxrwxr-x    2 tc       staff        40960 Nov 11 00:39 optional/
-rw-rw-r--    1 tc       staff          155 Nov 11 15:32 xwbar.lst
Title: Re: tcwbarconf changes are not permanent
Post by: gerald_clark on November 11, 2015, 11:15:06 AM
OK, xwbar.lst
Title: Re: tcwbarconf changes are not permanent
Post by: emninger on November 11, 2015, 11:24:28 AM
OK, xwbar.lst

Sorry, i do not understand ...  :-\
Title: Re: tcwbarconf changes are not permanent
Post by: gerald_clark on November 11, 2015, 11:26:06 AM
The file is xwbar.lst, and you have it.
Title: Re: tcwbarconf changes are not permanent
Post by: emninger on November 12, 2015, 06:08:20 AM
The file is xwbar.lst, and you have it.

But, as far as i understand xwbar.lst contains the items that has been excluded from the wbar. Not those included - at least on this machine it works in that way.

Remains, that ~/.wbarconf contains only basic settings:
Code: [Select]
c: wbar --bpress --pos bottom --zoomf 2 --isize 32 but nothing about the apps included to it. Those values are in /usr/local/tce.icons wherefrom controlpanel > tcWbarConf also seems to read (and write) them.

So, one way to make changes permanent would  be to include /usr/local/tce.icons into the backup list (?)

Or, when i delete the symbolic link to tce.icons (~/.wbar) and migrate the settings (by hand) to ~.wbarconf tcWbarConf, then,  would read from that file?

Title: Re: tcwbarconf changes are not permanent
Post by: gerald_clark on November 12, 2015, 08:36:47 AM
What changes do you want to make permanent?
Title: Re: tcwbarconf changes are not permanent
Post by: emninger on November 12, 2015, 06:57:58 PM
ControlPanel > tcWbarConf (changes of the order of appearance, excluding also some)
Title: Re: tcwbarconf changes are not permanent
Post by: Misalf on November 15, 2015, 07:46:55 AM
The config for WBar (/usr/local/tce.icons holds entries for icons) gets rewritten based on installed apps.
Only the basic settings (position, size, etc.) are stored in  ~/.wbarconf .
If you want to add custom icons, you can either abuse the OnDemand feature by adding scripts and icons to  /etc/sysconfig/tcedir/ondemand  or create *.desktop files at  /usr/local/share/applications . The latter would need to be added to the backup or contained in an extension.
Title: Re: tcwbarconf changes are not permanent
Post by: emninger on November 16, 2015, 05:55:29 AM
Thanks for your answer. Frankly, i only want to change the order of the apps in wbar (no new icons). With the *.desktop option i'm pretty familar ;)

In this context - i do not want to open a new thread on it:
I'm using TCL with fluxbox (which is fine for me and i'm really familiar with). I reflected about installing menumaker or, even better. xdgmenumaker (which is made by gapan on git) but now, i see, the TCL fluxbox automatically updates the program starter by including /usr/local/tce.fluxbox) and /usr/local/tce.fluxbox . Now, just out of curiousity, i'd like to understand HOW TCL builds that files (because as far as i see, they are continously rebuilt along with changing installed programs either onboot or ondemand).

Thanks!
Title: Re: tcwbarconf changes are not permanent
Post by: Misalf on November 16, 2015, 06:14:55 AM
In order to understand how those icons are created, you should study Core's scripts (/usr/bin/ondemand ,  /usr/bin/tce-*  and  /usr/local/bin/fluxbox_*).

You could use the boot code  noicons  to prevent WBar from being automatically populated with new icons and start WBar manually with a different config file.
Title: Re: tcwbarconf changes are not permanent
Post by: Rich on November 16, 2015, 07:45:01 AM
Hi emninger
There are also a bunch of  wbar*  files:
Code: [Select]
tc@box:~/guilib/grabber/grabber-1.1$ ls /usr/bin/wbar*
/usr/bin/wbar     /usr/bin/wbar_mv_icon  /usr/bin/wbar_setup.sh   /usr/bin/wbarconf
/usr/bin/wbar.sh  /usr/bin/wbar_rm_icon  /usr/bin/wbar_update.sh
tc@box:~/guilib/grabber/grabber-1.1$
Title: Re: tcwbarconf changes are not permanent
Post by: emninger on November 16, 2015, 02:32:32 PM
In order to understand how those icons are created, you should study Core's scripts (/usr/bin/ondemand ,  /usr/bin/tce-*  and  /usr/local/bin/fluxbox_*).

You could use the boot code  noicons  to prevent WBar from being automatically populated with new icons and start WBar manually with a different config file.

Thanks for the pointer! I'll study the scripts you mention. In any case, i'm close to a somewhat definitive setup. There is still some tweaking needed as for the backup - it's way too big and slow (but i'm anxious to loose my settings ;) ).