abranson / rockpool

Pebble client application for Sailfish OS
41 stars 19 forks source link

"Install app or watchface from file" does not find any files #104

Open henk84 opened 1 year ago

henk84 commented 1 year ago

Selecting it just shows a screen with "nemo" in the upper right corner, "No files" about 1/3 down the middle, and nothing else.

https://github.com/abranson/rockpool/blob/3d8423af3c61699e87e171b35ec195c6274ae44d/rockwork/qml/pages/ImportPackagePage.qml#L15 might be hardcoding this to look in /home/nemo AFAICT. This is not (always) a good choice because in some cases this path does not exist. The user on my phone is called "defaultuser" but it could be called whatever since sailfish supports multiple user accounts.

If this is the cause, rockpool should figure out what the current user’s home directory is and use that. But only as a starting point for navigation, not as the only path to pick from.

I’m not sure that’s the cause because even when putting a .pbw file in /home/nemo/, it does not show up there. This might be caused by something like selinux/apparmor or so, though.

In any case: I can’t pick which file to install from and the filechooser does not seem to allow navigation to where I put the file I wanted to install.

Also possibly related: #18