Ask / Submit
3

Programmable starting folder in Filepicker (and other pickers)

asked 2018-04-17 21:28:01 +0300

hsjpekka gravatar image

Currently Filepicker has three folders where user can start looking for the file to pick: home, root, and sd-card. I would like to be able to set a fourth folder in qml-code - or more than one folder. According to Sailfish Reference the only writeable parameters of the FilePickerPage are 'nameFilter' and 'title'.

I made a gameclock which alarms when the time ends. I want that the user can select the sound of the alarm. The jolla-sounds are good ones, but to choose from them the user has to dig into /usr/share/sounds/jolla-ambient/stereo. It would be more convenient for the app user if I could add the path in the list of folders in the file picker.

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted
0

answered 2018-04-18 12:14:10 +0300

coderus gravatar image

updated 2018-04-18 12:14:32 +0300

homePath property?

edit flag offensive delete publish link more

Comments

Something like that. An array, like nameFilter, would be great. But I would call it shortcuts or favouritePath, because homePath = /home/nemo ;-)

Or do you mean there is homePath-property already?

hsjpekka ( 2018-04-18 22:04:15 +0300 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2018-04-17 21:28:01 +0300

Seen: 132 times

Last updated: Apr 18 '18