WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: No desktop icon for extension  (Read 2243 times)

Offline Anthony

  • Newbie
  • *
  • Posts: 3
No desktop icon for extension
« on: January 19, 2010, 09:25:55 AM »
Hello,
I have an application stored at /mnt/hda2/lazarus/show_fonts
I like to start it with an icon on the desktop and created a show_fonts.tcz file.
Running tce-load -i show_fonts.tcz adds the logo to the desktop and clicking on it starts the application
After copy the tcz file to /mnt/hda1/tce/ and reboot there is no additional icon on the desktop.
In a terminal : mount --> dev/loop11 on /tmp/tcloop/show_fonts

1) the file is read and mounted by TC 2.7
2) the file structure is OK as it is correctly processed by tce-load
    file structure :
    usr/local/tce.icons/show_fonts           (tried as text and executable)
    usr/local/tce.icons/show_fonts.png
    usr/local/tce.menu/                            (empty directory)


Why does it not appear after reboot?
« Last Edit: January 19, 2010, 10:22:49 AM by Anthony »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: No desktop icon for extension
« Reply #1 on: January 19, 2010, 09:30:31 AM »
Please post the file list of the extension, including permissions, and contents of the icon control files.
The only barriers that can stop you are the ones you create yourself.

Offline Anthony

  • Newbie
  • *
  • Posts: 3
Re: No desktop icon for extension
« Reply #2 on: January 19, 2010, 09:41:14 AM »
Hello curaga

I have the tcz, png and descriptor file attached.
All directories have 755 permissions and all files have 644 permissions.
   -- the tcz file is made under mandriva with an user ID unknown on TC
   -- I do not think this is relevant as read is permitted for all
I hope this is what you asked for.
Thanks for your very quick reply

Anthony Vogelaar
« Last Edit: January 19, 2010, 09:50:20 AM by Anthony »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: No desktop icon for extension
« Reply #3 on: January 19, 2010, 10:21:11 AM »
Some things wrong with the extension:
- /usr/local/tce.* directories should be root:staff (0:50) with 775 permissions
- system dirs should be owned by root
- the squashfs block size should be 4kb. Our squashfs-tools default to that, upstream currently defaults to 128kb.
- there should be a menu item for an icon to show

As for what causes the icon to not show, if you load another extension with wrong permissions, all extensions after that one will not show icons. It might have been another cause as well, complex interactions with so many extensions.

edit: Attached is the fixed extension.
« Last Edit: January 19, 2010, 06:17:28 PM by curaga »
The only barriers that can stop you are the ones you create yourself.

Offline Anthony

  • Newbie
  • *
  • Posts: 3
Re: No desktop icon for extension
« Reply #4 on: January 20, 2010, 04:06:24 AM »
Dear Curaga,

Thank you very much for providing the .tcz file; it worked immediately on my computer.
This gave me hope.
I think something is not correct working on my Mandriva machine as I was able to unpack your file but not my own file which was created on the very same machine.
Then I created the .tcz file in a VirtualBox version of Tiny Core Linux and the squashfs-tools.tgz.
The resulting .tcz file installed on the production embedded PC was also OK.

Conclusion : correct working using tce-load does not guarantees correct working when installed.

Now I can create the icons for the supporting applications.
Best regards, Anthony Vogelaar
« Last Edit: January 20, 2010, 04:09:07 AM by Anthony »