Reply
Thread Tools
shep's Avatar
Posts: 85 | Thanked: 65 times | Joined on Jan 2010 @ Ireland
#1
Hi,

I know there are similar posts about this and I have read them! I can't seem to get it straight in my head what you need to do to "optify" an app.

I have modified my src.pro file
Code:
TARGET = myappname
TEMPLATE = app
SOURCES += qtmain.cpp \
    ... \ ...\ ...
HEADERS += ...
FORMS += ...

unix {
    isEmpty(PREFIX) {
        PREFIX = /usr/local
    }
    # - Before BINDIR = $$PREFIX/bin
     #After:
	BINDIR = /opt/maemo
    DATADIR = $$PREFIX/share

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

    # MAKE INSTALL
    ...
}
and my .desktop file
Code:
...
(Before)
Exec=/usr/bin/myapp
(After)
Exec=/opt/maemo/myapp

...
Is this all I need to do? What is optimal about this???

I have attached the full package code too.

Thanks,

Shep
Attached Files
File Type: zip sitrep-0.4.zip (71.9 KB, 70 views)
__________________
- Hey! I also do other stuff Touchscreen apps for Windows and Android
- Currently developing a Diet Assistant/Weight Tracker for the N900
 
krk969's Avatar
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#2
Originally Posted by shep View Post
Hi,

I know there are similar posts about this and I have read them! I can't seem to get it straight in my head what you need to do to "optify" an app.

Is this all I need to do? What is optimal about this???

I have attached the full package code too.

Thanks,

Shep
Optification in simple terms is to ensure your app is installed in the /home/opt partition and not the rootfs partition.
Also any configurations files or data files installed/generated must be in the opt partition.

Seems like you are ready above !
__________________
Developer of :
Buddy - budget/expense manager ( website )
Showtime - a telly channel listing viewer/reminder ( website )
Travelapp - london underground status/planner ( website )
Batlevel - desktop widget for battery level ( website )

“I hear and I forget. I see and I remember. I do and I understand.”

Last edited by krk969; 2010-02-22 at 14:10.
 

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


 
Forum Jump


All times are GMT. The time now is 09:53.