Select a file from user partition only
_DLGOpenDir, _DLGOpenFile, _DLGOpenFileMulti, _DLGSaveFile should forbid any file/directory outside the user partition. It's a really problem even if I know it's hard; a solution should be found.
In GTK+, i developed a hack for this (any other path shows the user root partition in the dialog box) but it is for the Scol GTK version only and it is not very safe yet.
#1 Updated by arkeon almost 9 years ago
_DLGOpenDir already manage this but show only the user partition not all available partitions. for the others the windows API don't seems to have any option for that, and don't forget that sometimes we can open or save a file outside the scol partitions, and the P or W scol type can be outside the scol partitions only in the case of the dialog box file.
this is why the old SCS file dialog was written in Scol and the different partitions was mixed.
I think that we should find an another method to list or write files corresponding to the desired partition but only for file dialogs.