Tiny Core Base > TCB Tips & Tricks

Step-by-step instructions how to add or remove wbar entries (tcl-3.3)

<< < (3/5) > >>

AbNoRMiS:

--- Quote from: hiro on January 02, 2011, 02:07:46 PM ---Can I change the icon of an app which doesn't use ondemand?

Eventually I would like to have two icons calling the same app, but with different options and icons.

--- End quote ---
if there is extension which has a name for example extension.tcz
and which has icon /usr/local/share/pixmaps/extension.png
and desktop-file /usr/local/share/application/extension.desktop

to change its icon should do the following
# 1. make exchange folder in your backup directory /opt
mkdir /opt/exchange
# 2. copy any icon that you want to replace the extension.png to /opt/exchange folder
cp -f any_icon.png /opt/exchange/extension.png
# 3. add string cp -f /opt/exchange/extension.png /usr/local/share/pixmaps to /opt/bootlocal.sh
echo "cp -f /opt/exchange/extension.png /usr/local/share/pixmaps" >> /opt/bootlocal.sh

to add a second icon should do the following
# 1. copy any icon that you want make as second icon to /opt/exchange named it as extension-2.png
cp -f any_icon.png /opt/exchange/extension-2.png
# 2. copy existing extension.desktop following by link to /opt/exchange named it as extension-2.desktop
cp -H /usr/local/share/applications/extension.desktop /opt/exchange/extension-2.desktop
# 3. add string cp -f /opt/exchange/extension-2.png /usr/local/share/pixmaps to /opt/bootlocal.sh
echo "cp -f /opt/exchange/extension-2.png /usr/local/share/pixmaps" >> /opt/bootlocal.sh
# 4. add string cp -f /opt/exchange/extension-2.desktop /usr/local/share/applications to /opt/bootlocal.sh
echo "cp -f /opt/exchange/extension-2.desktop /usr/local/share/applications" >> /opt/bootlocal.sh

now should make the following changes in the file /opt/exchange/extension-2.desktop
replace all entries extension.png to extension-2.png
change entry Icon=extension to Icon=extension-2
make sure that following line is present
X-FullPathIcon=/usr/local/share/pixmaps/extension-2.png
add needed options to line Exec=extension

and finally
make sure that /opt/exchange will be backed up
save changes by command
filetool.sh -b
or do reboot with backup
and see results

guaranteed work in version tc4+
about tc3+ does not know

hiro:
Abnormis: There's something strange with your text format. I can't read this in neither Chrome nor dillo.

Technically: not everyone has persistant opt.

AbNoRMiS:
sorry, this is because of too long lines
monitor 24" :)
thanks, now will correct

--- Quote from: hiro on March 09, 2012, 11:20:59 AM ---Technically: not everyone has persistant opt.

--- End quote ---
this also can be simply solved
echo "opt/exchange" >> /opt/.filetool.lst
also now correct

gerald_clark:
All of opt is backed up with V4.
There is no need to add it to .filetool.lst.

hiro:
Oh, shit, I didn't know. Thanks

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version