Replies: 1 comment 1 reply
-
In the spec, about filter options: "List of serialized file filters". If you see "file", it implicitly means that these are not folders. However, we may prefer to treat these folders as files, as in macOS. However, it is necessary to know how to distinguish a folder with an extension that is a file from a folder with an extension that is a folder. Visually, this seems easy using icons, for example. In terms of accessibility for people who can't rely on visual information, I don't know. It is also a concept that is best adopted across desktop environments. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Reading the OpenFile spec I would assume that I should be able to specify a filter, e.g.
filter: [('RTFD documents', [(0, '*.rtfd')])]
and have it apply to folder chooser mode (directory: true
).However I heard on the Nautilus issue tracker that that is a surprising interpretation of the spec.
The spec itself doesn't seem to clarify either way. It would be good to specify this.
The use case is for apps whose conceptual unit of a "document" is a folder. The best-known example is probably RTFD documents. My use case specifically is for Inform, a development environment that stores its projects in folders named
*.inform
.This kind of document is more common on MacOS (where it is transparently supported by the OS) and indeed the Inform folder format originated there, but it would be good for interoperability and software freedom to provide facilities for dealing with these kinds of folders in the Portal spec.
Slightly related is #1419.
Beta Was this translation helpful? Give feedback.
All reactions