View Single Post
Posts: 60 | Thanked: 23 times | Joined on Jan 2010
#21
I just made a simpler step by step process:

1. Open MADDE terminal

2. Execute: mad pscreate -t qt_simple qtx

3. Place a 64x64 image named qtx.png in the qtx folder. (NOT the src folder)

4. Create a file named qtx.desktop in qtx folder with this content:
Code:
[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Name=qtx
Exec=/usr/bin/qtx
Icon=qtx
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable
5. Add these lines to the end of qtprog.pro:
Code:
PREFIX = ./debian/qtx/usr

unix {
BINDIR = $$PREFIX/bin
DATADIR =$$PREFIX/share

DEFINES += DATADIR=\"$$DATADIR\" PKGDATADIR=\"$$PKGDATADIR\"

#MAKE INSTALL

INSTALLS += target desktop icon64

  target.path =$$BINDIR

  desktop.path = $$DATADIR/applications/hildon
  desktop.files += qtx.desktop

  icon64.path = $$DATADIR/icons/hicolor/64x64/apps
  icon64.files += qtx.png
  

}
6. Exectute these commands in MADDE terminal:
Code:
cd qtx
mad qmake
mad dpkg-buildpackage
mad remote -r N900 send ../qtx_0.1_armel.deb
mad remote -r N900 install qtx_0.1_armel.deb
Thats it, its now installed with shortcut and icon! (shows a blue icon before you restart the device)

Can someone show me how the debian/postinst file is supposed to look like to update the icon without the need for a restart ?

Last edited by tmsha; 2010-01-18 at 22:01.
 

The Following 3 Users Say Thank You to tmsha For This Useful Post: