| Summary: | No way to specify multiple filters for --getfileopen | ||
|---|---|---|---|
| Product: | [Applications] kdialog | Reporter: | Kovid Goyal <kovid> |
| Component: | general | Assignee: | Brad Hards <bradh> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Kovid Goyal
2017-08-05 02:31:37 UTC
If the filters correspond with MIME types, you work around this and set multiple: kdialog --getopenfilename ~/ 'text/plain image/png' This also works, but requires the user to select the filter: kdialog --getopenfilename ~/ 'Text Files (*.txt)\nPNG Images (*.png)' You maybe have to prepend a filter that includes all files to be useful. The mimetypes wont works for what I need. But the \n will, so thanks for that. You might want to document it somewhere. |