×

Discussion Board

Results 1 to 7 of 7

Hybrid View

  1. #1
    Registered User
    Join Date
    Sep 2012
    Posts
    31

    How to deploy file to MyDcos/ or make it writable???

    How to deploy file to MyDcos/ ???
    I want to deploy a writable file (as larga as 5 Mb),which can be writtable in my N9 application.
    However i cant use postinst file to use commands to cp it to MyDocs/(This falied as if because the file is somehow too lage ,5 Mb)
    Besides i try to use chmod to change some file's permission which located at opt/myproject/ (To enable them to be writable again).However ,all these tries failed again and again.

    So now I am very needing some infomation or tips for solving these problem.That is to make file packaged in deb application can writable in my N9 application...

    Does anyone have some ideas?Please hlep me......

    This is my codes in postinst file

    #!/bin/sh
    chmod 666 /opt/chinaTrain/qml/chinaTrain/Databases/a2c2991211de1a0745e933b93e672a13.sqlite
    chmod 666 /opt/chinaTrain/qml/chinaTrain/Databases/a2c2991211de1a0745e933b93e672a13.ini
    exit 0

    and while i do so,the qml console debug show infomation below:
    file:///opt/chinaTrain/qml/chinaTrain/TravelPage.qml:173: Error: unable to open database file Unable to fetch row
    Last edited by rhythmkay; 2012-10-22 at 15:41.

  2. #2
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    200

    Re: How to deploy file to MyDcos/ or make it writable???

    Hmm, maybe just show the failing postinst so we could probably fix it for you? Showing the exact errors would help too.

  3. #3
    Registered User
    Join Date
    Sep 2012
    Posts
    31

    Re: How to deploy file to MyDcos/ or make it writable???

    I have show my codes now.
    I dont know why i fail
    My conncetion to the database is correct.I can query but cant write to it.

    I've got some information from this ,http://talk.maemo.org/archive/index.php/t-71608.html
    however ,it seems didnt work.
    Or how to use this:??

    Some permissions get "fixed" during install.
    The debian/rules file includes the call to dh_fixperms (http://man.he.net/man1/dh_fixperms). //What is this means ,take my file below as example ,how to use the dh_fixperms????
    Last edited by rhythmkay; 2012-10-22 at 15:35.

  4. #4
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    200

    Re: How to deploy file to MyDcos/ or make it writable???

    What are the actual file permissions after install? From terminal use "ls -l /path/to/your/file"

    Also the "Error: unable to open database file Unable to fetch row" message doesn't seem to be about writing but about reading. Are you able to read from database?

  5. #5
    Registered User
    Join Date
    Sep 2012
    Posts
    31

    Re: How to deploy file to MyDcos/ or make it writable???

    Yeah,I can read from it,but cant write,such as i cant create a table in the database.
    It behaves well in reading data,in contrast to writting data.

  6. #6
    Registered User
    Join Date
    Jun 2012
    Posts
    105

    Re: How to deploy file to MyDcos/ or make it writable???

    Quote Originally Posted by rhythmkay View Post
    Yeah,I can read from it,but cant write,such as i cant create a table in the database.
    It behaves well in reading data,in contrast to writting data.
    Perhaps you should consider copying the file from within the app (if it does not exist, that is)?

Similar Threads

  1. how to deploy non executable file
    By vladest in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 2
    Last Post: 2010-08-11, 14:13
  2. How can I deploy RMS files by Jar file?
    By breceivemail in forum Mobile Java General
    Replies: 1
    Last Post: 2010-01-10, 10:54
  3. Failed to deploy file
    By hk3003 in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2006-11-29, 13:30
  4. how to deploy jad file using Nokia Developer Suite 2.2?
    By javafreshman in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2006-11-28, 13:01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×