View Single Post
Posts: 838 | Thanked: 3,384 times | Joined on Mar 2009
#352
Now switcher and launcher are almost working on N900. There are still some crashing, so it can't yet replace hildon-desktop, but now I'm sure Telescope will be replacement of hildon-desktop.

I can make branch on bitbucket, but I will first post some ideas here.

Place of .menu (this is trivial)
Code:
-#define APPLICATION_MENU        "/home/user/.osso/menus/applications.menu"
+#define APPLICATION_MENU        "/etc/xdg/menus/hildon.menu"
MenuReader::processMenu has several 'return NULL' without error message (and skipping cleaning/freeing).

----

Compiler flags (as suggested in #351)
Code:
-CFLAGS += -Wall -Werror -O2 $(DEFINES) `pkg-config --cflags $(DEPS)` -pthread
+CFLAGS += -Wall -fno-strict-aliasing -O2 $(DEFINES) `pkg-config --cflags $(DEPS)` -pthread
----
(stock) Maemo5 has file:
Code:
cat /usr/share/applications/hildon/intellisyncd.desktop 
[Desktop Entry]
Encoding=UTF-8
Version=1
Type=Daemon
Exec=/usr/bin/intellisyncd
MimeType=text/nmsdirective
X-Osso-Service=intellisyncd
It doesn't have 'Name' at all. So (Application.cpp:115)
_appName = gettext( g_key_file_get_string ( keyFile, group, "Name", NULL ) );
will set _appName=NULL, which will seg fault later, because of strlen(_appName).

Seems this could affect on Maemo4 version also, if user install application with wrongly made .desktop.
Maybe something like:
if (_appName == NULL) {
_appName=_executable;
}
I think every .desktop has 'Exec'.

-------
I have problems with localization on Launcher, i.e. it doesn't use localized strings.
I checked how hildon-desktop does it, and it has:
Code:
  define GETTEXT_PACKAGE "maemo-af-desktop"

  setlocale (LC_ALL, "");
  bindtextdomain (GETTEXT_PACKAGE, "/usr/share/locale");
  textdomain (GETTEXT_PACKAGE);
Seems very same than what telescope has.
------
On launcher, how to scroll icons? I didn't find any video showing how to use launcher. I have more icons than fits in one screen (no subcategories/submenus)
-------

Originally Posted by Mitrandir View Post
2)
Code:
dbus-send --print-reply --dest=org.telescope /Launcher org.telescope.Launcher.Show
Or you can rebind hotkey from F5 to other key by specifying
Code:
hotkey = <keyname>
in /etc/telescope.conf
N900 doesn't have any equivalent for F5 (or any other functionkeys). Can I use combination of key and CTRL? And what is format of e.g. CTRL+Backscape?

Originally Posted by Mitrandir View Post
4) dbus_watch_get_fd is used if DEFINES = -DMAEMO4 is specified in Makefile. It was renamed to dbus_watch_get_unix_fd in later D-Bus versions.
Yes, without this defining -Werror can be used.