[SailfishDevel] After April SDK Update Existing App fails on RPM deploy to Jolla Device: Possible rights problem

christopher.lamb at thurweb.ch christopher.lamb at thurweb.ch
Wed Apr 16 14:17:07 UTC 2014


Hi Mohammed

thanks

The varied permission on the qml / js files on my host probably  
reflect that the project originated in pre-sailfish days, and thus the  
files have come from various sources / versions of Qt Creator / edited  
with different text editors etc. since then.

I have now set all qml and js files in the project on my development  
host to chmod 644
e.g
-rw-r--r--   1 christopherlamb  staff   7,7K 24 Feb 17:20  
InitialCharacterPicker.qml

Are these the correct permissions? It is how a new demo project sets  
the permissions.

Chris

Zitat von "Mohammed Hassan" <mohammed.hassan at jolla.com>:

> You don't need executable permission (x) for js files. Read bit is  
> enough so the SDK is correct here.
>
> I noticed that the missing scripts do not have read permission set  
> which is the problem.
>
> I have no idea how it happened though.
>
> Cheers,
>
> --
> Sent from my Nokia N9On 16.4.2014 15:39 christopher.lamb at thurweb.ch wrote:
> Hi All
>
> I have just installed the April SDK update, and have opened an
> existing app, and am trying to deploy to my Jolla.
>
> The app worked with the previous SDK release, and is already installed
> on the phone.
>
> If I deploy as "Deploy by copying Binaries" then thinks work as
> expected, and the app successfully deploys and starts on the phone.
>
> If I deploy as "Deploy as RPM Package", then I get the error below in
> QtCreator, and a "white screen of death" on the phone.
>
>
> [W] unknown:72 -
> file:///usr/share/landed26_QT5/qml/landed26_QT5.qml:72:5: Type
> MainPage unavailable
>           MainPage {
>           ^
> [W] unknown:9 -
> file:///usr/share/landed26_QT5/qml/gui/MainPage.qml:9:1: Script
> file:///usr/share/landed26_QT5/qml/javascript/landed.js unavailable
>       import "../javascript/landed.js" as LJS
>       ^
> [W] unknown:-1 -
> file:///usr/share/landed26_QT5/qml/javascript/landed.js: File not found
>
> I also get the white screen when trying to open the app.
>
> Via SSH on the jolla device I can find the file is present:
> [nemo at Jolla javascript]$ pwd
> /usr/share/landed26_QT5/qml/javascript
> [nemo at Jolla javascript]$ ls -ahl
> total 48K
> drwxr-xr-x 1 root root  152 2014-04-16 14:31 .
> drwxr-xr-x 1 root root  110 2014-04-16 14:31 ..
> -rw-r--r-- 1 root root 4.2K 2014-04-16 14:31 jsonpath.js
> -rw------- 1 root root  349 2014-04-16 14:31 landed.js
> -rw------- 1 root root 1.2K 2014-04-16 14:31 message.js
> -rwxr-xr-x 1 root root 9.4K 2014-04-16 14:31 readDataModel.js
> -rwxr-xr-x 1 root root 8.8K 2014-02-03 08:32 settingsDB.js
> -rw-r--r-- 1 root root 5.2K 2014-04-16 14:31 writeDataModel.js
>
> However the access permissions look very strange. I suspect that all
> the js files should have rights like -rwxr-xr-x
>
> Chris
>
>
>
> _______________________________________________
> SailfishOS.org Devel mailing list
> _______________________________________________
> SailfishOS.org Devel mailing list
>





More information about the Devel mailing list