Wrong permissions

Hi. After long period I decided to develop application for SailfishOs, but something has changed. I did build the default template SDK application and build a rpm package for deployment. After manually installing package file and directory permissions are wrong and application fails to load.
qml directory and everything in qml directory are set to wrong permissions
SDK is the latest.

Last login: Fri Jun  6 22:28:44 2025
,---
| Sailfish OS 4.6.0.15 (Sauna)
'---
[nemo@Sailfish ~]$ ls -l /usr/share/harbour-test/
total 8
drwxr-x---    4 root     root          4096 Jun  7 11:45 qml
drwxr-xr-x    2 root     root          4096 Jun  6 21:35 translations
[nemo@Sailfish ~]$ devel-su ls -l /usr/share/harbour-test/qml
Password: 
total 12
drwxr-x---    2 root     root          4096 Jun  7 11:45 cover
-rw-r-----    1 root     root           230 Jun  6 21:35 harbour-test.qml
drwxr-x---    2 root     root          4096 Jun  7 11:45 pages

[nemo@Sailfish ~]$ cat /etc/hw-release 
# This file is copied as hw-release (analogous to os-release)
NAME="Intex Aqua Fish"
ID=l500d
MER_HA_DEVICE=l500d
MER_HA_VENDOR=qualcomm
VERSION="1.0.0.16"
VERSION_ID=1.0.0.16
PRETTY_NAME="Aqua Fish 1.0.0.16"
SAILFISH_BUILD=16
SAILFISH_FLAVOUR=release
HOME_URL="https://sailfishos.org/"

Welcome as SFOS app dev! When reading your post I have this 2 ideas:

  1. Why don’t use “deployment as rpm package”? This is working for me when in testing.

  2. Please try to change first to devel-su and then install the rpm you created.

I tried both, but result is same.

Ok. Have you the .spec file created manually?

No, using what SDK provided.

So you have at the bottom of the .spec file

%files
%defattr(-,root,root,-)
%{_bindir}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
# >> files
# << files

And try it on the on the emulator (choose the i486 kit, then a buttom for the emulator appears, click to start the emulator, then build).

Your SDK is on a Linux desktop? And your test device is a jolla phone?

Yes SDK is Linux and using docker to build, so I did not install virtualbox. Device is Jolla C, the first C not C2.

spec file is almost same.

%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png

I’m working with the virtualbox SDK.When I create a new project using the wizard and then deploy w/o any changes this project to the phone it will work. But I have no experience with the docker SDK. Maybe a search for “docker” here in the forum will help.

At the left side of the SDK the is “project”. Here you can see all real settings behind the .spec. The wizard generated this.

I have a Docker based SDK and made test named application with that. Everything seems to work properly on JollaC.

EDITED (confused me with app names)

,---
| Sailfish OS 4.6.0.15 (Sauna)
'---
[nemo@Sailfish ~]$ ls -l /usr/share/test/
total 8
drwxr-xr-x    4 root     root          4096 Jun  8 11:20 qml
drwxr-xr-x    2 root     root          4096 Jun  8 11:20 translations
[nemo@Sailfish ~]$ devel-su ls -l /usr/share/test/qml
Password: 
total 12
drwxr-xr-x    2 root     root          4096 Jun  8 11:20 cover
drwxr-xr-x    2 root     root          4096 Jun  8 11:20 pages
-rw-r--r--    1 root     root           230 Jun  8 11:20 test.qml

ls -l /usr/share/[root@Sailfish nemo]# cat /etc/hw-release 
# This file is copied as hw-release (analogous to os-release)
NAME="Intex Aqua Fish"
ID=l500d
MER_HA_DEVICE=l500d
MER_HA_VENDOR=qualcomm
VERSION="1.0.0.16"
VERSION_ID=1.0.0.16
PRETTY_NAME="Aqua Fish 1.0.0.16"
SAILFISH_BUILD=16
SAILFISH_FLAVOUR=release
HOME_URL="https://sailfishos.org/"

Yep your SDK is building OK. A bit weird why is my SDK building packages with wrong permissions. Do you have latest SDK? Mine is latest and fresh install.

Mine should be the latest. About Qtcreator says: Qt Creator 4.15.2 (Sailfish SDK 3.12.5). I have updated the installation couple of times.