zhanghai / MaterialFiles

Material Design file manager for Android
https://play.google.com/store/apps/details?id=me.zhanghai.android.files
GNU General Public License v3.0
5.9k stars 398 forks source link

[Feature request] Set default app for opening file types #1166

Open Senliast opened 6 months ago

Senliast commented 6 months ago

Ability to choose which app to open each file type with. For example, .txt > QuickEdit, .rar > RAR, .db > SQLite Editor, etc.

zhanghai commented 6 months ago

That's a system level functionality since this app uses system's API to resolve which app handles viewing which file types.

Senliast commented 6 months ago

Okay, but i am unable to set .rar file to open with the RAR app. It is an encrypted archive and it opens with Material Files and since it doesn't support encrypted archives (which is absolutely ok), i get an error, see screenshot. I always have to click "Open with" and then select RAR. Any way to set it as default?

Screenshot_20240318-113121_Material Files

zhanghai commented 6 months ago

Unfortunately no way to do that yet. By default archive files are open directly in the app, but libarchive, the library this app uses, doesn't support encrypted RAR yet.

Senliast commented 6 months ago

may be you can let archives open with the default system app as well?