maemo.org Bugzilla – Bug 2313
Removing hello-world-app while TN/AF is running causes permanent damage to the TN
Last modified: 2008-08-20 07:41:57 UTC
You need to log in before you can comment on or make changes to this bug.
EXPECTED OUTCOME: Removal of hello-world-app should be possible without too much problems, even when AF is running. ACTUAL OUTCOME: Application menu is replicated (two copies) in TN. If hello-world-app is then reinstalled, none of its .so s will work anymore (statusbar, TN and home applets will not be present). control panel applet will work as will the hello world application. No amount of af-sb-init.sh start|stop / reboots will fix this. STEPS TO REPRODUCE THE PROBLEM: 1) install 4.0 SDK 2) login into sbox (x86) and af-sb-init.sh start 3) fakeroot apt-get remove hello-world-app This is where TN will break and the application menus double 4) fakeroot apt-get install hello-world-app maemo-example-apps maemo-sdk-dev Will not fix it (as one would expect), but instead all the .so s will be missing from AF for hello-world-app. OTHER COMMENTS: Reinstalling the SDK is so much fun. If hello-world-app is removed before AF is started for the first time in a target, and then reinstalled (before launching AF for the first time), everything works. Didn't test other scenarios.
Created an attachment (id=615) [details] Double application menus, both of which work.
Confirming bug. This is most probably sdk bug.. when I remove hello-world-app also some other packages are removed: sbox-CHINOOK_X86: /etc/hildon-desktop] > fakeroot apt-get remove hello-world-app Reading package lists... Done Building dependency tree... Done The following packages will be REMOVED: hello-world-app maemo-example-apps maemo-sdk-debug maemo-sdk-dev 0 upgraded, 0 newly installed, 4 to remove and 8 not upgraded. Need to get 0B of archives. After unpacking 344kB disk space will be freed. Do you want to continue [Y/n]? /scratchbox/tools/bin/sh: line 1: /usr/sbin/dpkg-preconfigure: No such file or directory (Reading database ... 22530 files and directories currently installed.) Removing maemo-sdk-debug ... Removing maemo-sdk-dev ... Removing maemo-example-apps ... Removing hello-world-app ... [sbox-CHINOOK_X86: /etc/hildon-desktop] > hildon-desktop[7116]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin hildon-desktop[7116]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin hildon-desktop[7116]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin hildon-desktop[7116]: GLIB WARNING ** default - Error loading container configuration file /home/kaltsi/.osso/hildon-desktop/statusbar.conf: File is empty hildon-desktop[7116]: GLIB DEBUG default - NAO OK! hildon-desktop[7116]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin hildon-desktop[7116]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin hildon-desktop[7116]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin hildon-desktop[7116]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin hildon-desktop[7116]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin hildon-desktop[7116]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin hildon-desktop[7116]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin hildon-desktop[7116]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin hildon-desktop[7116]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin hildon-desktop[7116]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin hildon-desktop[7116]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin hildon-desktop[7116]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin hildon-desktop[7116]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin hildon-desktop[7116]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin hildon-desktop[7116]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin hildon-desktop[7116]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin hildon-desktop[7116]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin hildon-desktop[7116]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin hildon-desktop[7116]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin hildon-desktop[7116]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin [sbox-CHINOOK_X86: /etc/hildon-desktop] > hildon-desktop[7116]: GLIB WARNING ** default - Error loading icon 'hello-world': Failed to open file '/usr/share/icons/hicolor/26x26/hildon/hello-world.png': No such file or directory hildon-desktop[7116]: GLIB WARNING ** default - Error loading icon 'hello-world': Failed to open file '/usr/share/icons/hicolor/scalable/hildon/hello-world.png': No such file or directory
Assigning to sdk-bugs. Some more info.. if I "af-sb-init.sh stop" and then "rm -rf ~/.osso" directory then the extra TN menu goes away when I start the AF again, but I still get complaints about the missing hello-world.png. This seems to be because the task navigator->extras menu still has hello world in it. Looks like the hello-world.desktop is installed into /usr/share/applications/hildon but is not removed from there when the package is removed.
Testing hello-world-app on a device (N800/OS2008) showed the following: - TN icon does not come up all (different from SDK) - Installing the package (via AM) will ask for the location where to place the desktop file (default extras) (different from SDK) - Removal of the package is not possible: hello-world-app.postrm uses bashishms (arrays) which are not supported by ash. The script is marked as #!/bin/sh which it shouldn't be. Also, it uses the array for something silly, which could be replaced by using sed -i directly. After fixing the postrm manually, the package can now be removed (via application manager), home, statusbar and control panel icons will be gone, but the icon in the application menu will stay. This last bug is due to a file rename on package install and it is never renamed back (the hello-world.desktop file) and as such, it will remain on the device even if the package is removed. ----- Since the TN icon didn't appear at all, it's not known whether the "double application menu" bug affects device as well or not.
> Since the TN icon didn't appear at all, it's not known whether the "double > application menu" bug affects device as well or not. > The TN icon will not appear for 2 reasons: 1. The 3 plugin positions are already occupied on the device. 2. Even if the plugin position is available, you can see the plugin only by activating it in the panel applet of control panel.
This issue can be solved if all the TN plugins are made available in the SDK. Will be fixed in Diablo release.