Thread
:
How to set permission on a file during debian package installation
View Single Post
magnuslu
2010-04-21 , 08:08
Posts: 299 | Thanked: 241 times | Joined on Oct 2009 @ Singapore
#
1
Hi!
I have an app that installs a SQLITE .db file. The .db file is included in my installation package, but on the device it will have permissions set to 644. When I run my app, I hit errors that the database is read only. When I do root + chmod 666 on the .db file, the app will work just fine again. How do I modify the permissions from the outset? I obviously don't want all my users to have to do chmod manually. I even try to change the permissions in code using the Qt setPermissions method, but that didn't to do the work either...
I sort of expect to change something like this:
Code:
INSTALLS += db db.path = /home/user db.files = data/qsportsevent.db
db.permissions = 666
Thanks
__________________
My Maemo Apps:
QTeachMe
- Flashcard app
MobiTifo
(which was formerly known as
QSportsEvent
) - Sports leagues tracking (mainly football).
Quote & Reply
|
magnuslu
View Public Profile
Send a private message to magnuslu
Find all posts by magnuslu