WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Icons/applications in Wbar  (Read 11892 times)

Offline madmax

  • Jr. Member
  • **
  • Posts: 98
Icons/applications in Wbar
« on: November 02, 2019, 11:42:48 AM »
Hello:

I've installed Xfe to load 'on boot' but, unlike other applications (jpilot, calculator, etc.) I installed before and after Xfe, it only appears in the Apps menu but not in the Wbar. I know it loads dynamically each time TC boots, but I cannot find where TC reads the data to load the applications that show up in Wbar.

Any help appreciated.

Thanks in advance,
MM

Offline madmax

  • Jr. Member
  • **
  • Posts: 98
Re: Icons/applications in Wbar
« Reply #1 on: November 02, 2019, 04:44:52 PM »
Hello:
... cannot find where TC reads the data to load the applications that show up in Wbar.

I'll ask the question in a different manner.

This is what my .wbar looks like:

Code: [Select]
# The Bar && Font && Font size (11)
i: /usr/local/share/wbar/osxbarback.png
t: /usr/local/lib/X11/fonts/TTF/luxisr/11
c: wbar --bpress --pos bottom --zoomf 1.00001 --isize 30  --jumpf 0.0     --idist 7
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/aterm.png
t: Terminal
c: exec aterm
i: /usr/local/share/pixmaps/accessories-calculator.png
t: calculator
c: exec gnome-calculator
i: /usr/local/share/pixmaps/jpilot.png
t: jpilot
c: exec /usr/local/bin/jpilot
i: /usr/local/share/pixmaps/mc.png
t: mc
c: exec aterm -e mc
i: /usr/local/share/pixmaps/palemoon.png
t: PaleMoon
c: exec /usr/local/palemoon/palemoon

As you can see, applications which are part of the default CorePlus installation are there as well as calculator, jpilot and mc, which I installed afterwards and are there every time I boot.

What I need is to have xfe in wbar. I installed it after calculator and before jpilot and mc but it is not there and I cannot figure out why.

When I installed calculator, jpilot and mc, the respective icons appeared in wbar right away.

Thanks in advance.

MM
 

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11703
Re: Icons/applications in Wbar
« Reply #2 on: November 02, 2019, 05:37:40 PM »
Hi madmax
Post the contents of the  .desktop  file for xfe:
Code: [Select]
cat  /usr/local/share/applications/xfe.desktop

Offline madmax

  • Jr. Member
  • **
  • Posts: 98
Re: Icons/applications in Wbar
« Reply #3 on: November 02, 2019, 05:49:17 PM »
Hello Rich:
... contents of the .desktop  file for xfe:
Here it is:

Code: [Select]
tc@box:~$ cat  /usr/local/share/applications/xfe.desktop
[Desktop Entry]
Name=Xfe
Name[cs]=Xfe
Name[de]=Xfe
Name[el]=ΕξΕφΈ (Xfe)
Name[es]=Xfe
Name[es_AR]=Xfe
Name[es_CO]=Xfe
Name[fi]=Xfe
Name[fr]=Xfe
Name[hu]=Xfe
Name[it]=Xfe
Name[nl]=Xfe
Name[pl]=Xfe
Name[ru]=Xfe
Name[sv]=Xfe
Name[zh_TW]=Xfe
GenericName=File Manager
GenericName[cs]=Souborový manažer
GenericName[de]=Dateimanager
GenericName[el]=Διαχειριστής Αρχείων
GenericName[es]=Gestor de archivos
GenericName[es_AR]=Gestor de archivos
GenericName[es_CO]=Administrador de archivos
GenericName[fi]=File Manager
GenericName[fr]=Gestionnaire de fichiers
GenericName[hu]=Fájlkezelő
GenericName[it]=File Manager
GenericName[nl]=Bestandsbeheerder
GenericName[pl]=Menedżer plików
GenericName[pt_BR]=Gerenciador de Arquivos
GenericName[ru]=Файловый менеджер
GenericName[sv]=Filhanterare
GenericName[zh_TW]=檔案管理員
Comment=A lightweight file manager for X Window
Comment[cs]=Lehký souborový manažer pro X
Comment[de]=Ein leichter Dateimanager für X Window
Comment[el]=Ένας ελαφρύς διαχειριστής αρχείων για τα Εξ Γουίνντοου
Comment[es]=Un gestor de archivos ligero para X Window
Comment[es_AR]=Un gestor de archivos ligero para X Window
Comment[es_CO]=Un administrador de archivos ligero para X Window
Comment[fi]=Kevyt tiedostonhallinta X ikkunalle
Comment[fr]=Un gestionnaire de fichiers léger pour X Window
Comment[hu]=Pehelysúlyú fájlkezelő X Windowhoz
Comment[it]=Un file manager leggero per X Window
Comment[nl]=Een lichtgewicht bestandsbeheerder voor X-Window
Comment[pl]=Lekki menadżer plików dla X Window
Comment[pt_BR]=Um gerenciador de arquivos leve para o X Window
Comment[ru]=Легкий файловый менеджер для X Window
Comment[sv]=En lättviktig filhanterare för X Window
Comment[zh_TW]=X 視窗的輕量檔案管理員
Exec=xfe
Terminal=false
Type=Application
StartupNotify=true
Icon=xfe
Categories=System;FileManager;
tc@box:~$

Thanks for your help.
Cheers,
MM

Offline vinceASPECT

  • Hero Member
  • *****
  • Posts: 810
Re: Icons/applications in Wbar
« Reply #4 on: November 02, 2019, 05:56:32 PM »
Hello,
f
hope  that it is sorted and configured with correct populated apps.

thx

V




Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11703
Re: Icons/applications in Wbar
« Reply #5 on: November 02, 2019, 06:42:53 PM »
Hi madmax
I see 2 problems:
1. The  .desktop  file is missing the following line:
Code: [Select]
X-FullPathIcon=/usr/local/share/pixmaps/xfe.png2. The extension is missing the file:
Code: [Select]
/usr/local/share/pixmaps/xfe.png

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11703
Re: Icons/applications in Wbar
« Reply #6 on: November 02, 2019, 06:45:48 PM »
Hi vinceASPECT
Please stop posting irrelevant comments in other members threads.
« Last Edit: March 25, 2020, 08:01:36 AM by Rich »

Offline madmax

  • Jr. Member
  • **
  • Posts: 98
Re: Icons/applications in Wbar
« Reply #7 on: November 02, 2019, 07:38:22 PM »
Hello Rich:
I see 2 problems ...
OK

I was trying to edit them (comparing to other working .desktop files) before I posted but I cannot edit them with sudo mc or sudo xfe ...   

Complains about being read-only file system.

Sort of lost here now.
Thanks in advance,

MM

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11703
Re: Icons/applications in Wbar
« Reply #8 on: November 02, 2019, 08:32:52 PM »
Hi madmax
Try this:
Code: [Select]
busybox cp -f /tmp/tcloop/xfe/usr/local/share/applications/xfe.desktop /usr/local/share/applications/xfe.desktopYou should now be able to edit  /usr/local/share/applications/xfe.desktop.

Download the attached  xfe.png file to  /usr/local/share/pixmaps/.

Use the  Backup  utility in the  ConrolPanel  to add  /usr/local/share/applications/xfe.desktop  and  /usr/local/share/pixmaps/xfe.png
to your backup (filetool.lst) and then run a backup. Reboot and verify your icon is present and works.

Offline madmax

  • Jr. Member
  • **
  • Posts: 98
Re: Icons/applications in Wbar
« Reply #9 on: November 02, 2019, 09:19:32 PM »
Hello Rich:
Try this: ...
OK

Download the attached  xfe.png file to  /usr/local/share/pixmaps/.
No needed as it was present.

... add  /usr/local/share/applications/xfe.desktop ...

Reboot and verify ...
It lives !!!!
And works as intended. =-)

Q1:
The original .desktop file was present, I just was not able to edit it.
Your busybox line copied the one from the /tmp/loop to where it was, overwriting it (root needed).

So then I had a copy (albeit editable) of the original, which once edited enabled xfe to load as it should.

Shouldn't this new edited .desktop file be able to survive a reboot, just like the original one did?
ie: add to filetool.lst would not be needed. Or am I missing something?

Q2:
It would seem that the xfe.tcz was updated 2019/03 but could it be that it needs patching?

Rich: thank you very much for your help. Have a good week-end.

MM

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11703
Re: Icons/applications in Wbar
« Reply #10 on: November 02, 2019, 10:18:17 PM »
Hi madmax
... The original .desktop file was present, I just was not able to edit it.
Your busybox line copied the one from the /tmp/loop to where it was, overwriting it (root needed). ...
The  /tmp/tcloop/xfe/usr/local/share/applications/xfe.desktop  file is located inside the extension. Extensions use a  squashfs
format which is a  read only compressed file system.  The  /usr/local/share/applications/xfe.desktop  file was merely a link
back to the file in  /tmp/tcloop  so it was still  read only.  By copying the file from the  read only  file system to a writable
directory the file can be edited and saved in that directory.

The reason for using  busybox cp  is  GNU cp (if installed) refuses to overwrite the link.

Quote
Shouldn't this new edited .desktop file be able to survive a reboot, just like the original one did?
ie: add to filetool.lst would not be needed. Or am I missing something?
/usr/local/share/applications/  gets rebuilt from scratch every time you boot, as does most of the file system.


Quote
It would seem that the xfe.tcz was updated 2019/03 but could it be that it needs patching?
Send a PM to  GNUser  to alert him to this issue. Include a link to this thread.

Offline madmax

  • Jr. Member
  • **
  • Posts: 98
Re: Icons/applications in Wbar
« Reply #11 on: November 02, 2019, 10:49:57 PM »
Hello Rich:
... /tmp/tcloop/xfe/usr/local/share/applications/xfe.desktop file is located inside the extension.
... a  squashfs format which is a read only compressed file system.
I see ...

... /usr/local/share/applications/xfe.desktop file was merely a link ...
Yes, I saw that and also tried to edit it. =^/

The reason for using  busybox cp is GNU cp (if installed) refuses to overwrite the link.
I see.

/usr/local/share/applications/ gets rebuilt from scratch every time you boot, as does most of the file system.
Indeed ...
A concept I still have to finish wrapping my head around.
TinyCore's main strength, practically indestructible.

Send a PM to GNUser ...
Done.

Thank you very much for taking the time to explain all this to me.

Have a good week-end.

Best,

MM

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1530
Re: Icons/applications in Wbar
« Reply #12 on: November 03, 2019, 05:27:06 PM »
@madmax - I will repackage xfe for Pure64 when xfe 1.44 comes out. I'll make sure the wbar issue is fixed.

Offline madmax

  • Jr. Member
  • **
  • Posts: 98
Re: Icons/applications in Wbar
« Reply #13 on: November 04, 2019, 04:52:03 AM »
Hello:
@madmax - I will repackage xfe for Pure64 when xfe 1.44 comes out. I'll make sure the wbar issue is fixed.
OK.  = ^)
Please add it to the CorePlus 10.x repository also.

Thanks in advance,

MM

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11703
Re: Icons/applications in Wbar
« Reply #14 on: November 04, 2019, 09:28:38 AM »
Hi GNUser
I fixed and sent in the 32 bit version for you. I'm guessing you packaged it on a non Tinycore system? The user:group were
set to  1000:staff  instead of  tc:staff.  It didn't break anything I'm aware of, just an observation.