Skip to content

Use AppInfo to get default filemanager#129

Closed
ryonakano wants to merge 12 commits intomuriloventuroso:masterfrom
ryonakano:use-appinfo
Closed

Use AppInfo to get default filemanager#129
ryonakano wants to merge 12 commits intomuriloventuroso:masterfrom
ryonakano:use-appinfo

Conversation

@ryonakano
Copy link
Contributor

@ryonakano ryonakano commented Nov 16, 2021

Opened as draft just for visibility and interest. This won't work in the Flatpak version of the app at the moment.

This PR aims to:

  • Clean the current code to get the default filemanager manually
  • Fixes the xdg-mime error when you launch the app with the Flatpak version (mentioned here)

This won't work in the Flatpak version at the moment because AppInfo.get_default_for_type () tries to get the default filemanager in the sandboxed environment of Flatpak and returns null since there are no filemanager app installed in that environment. This issue is reported at flatpak/xdg-desktop-portal#574 but have no actions been taken until today.

@ryonakano
Copy link
Contributor Author

ryonakano commented Nov 29, 2021

Related work in elementary project: elementary/code#1162

ryonakano and others added 3 commits January 4, 2022 20:48
This option is not working in Flatpak in main branch anyways,
so just enable on unsandboxed environment and make the code much simpler.
@ryonakano ryonakano marked this pull request as ready for review May 27, 2023 04:01
@ryonakano
Copy link
Contributor Author

The file manager option is not working in Flatpak in the main branch anyways, so I thought we can just enable it on unsandboxed environment and make the code much simpler for now.

@ryonakano ryonakano closed this Jan 20, 2024
@ryonakano ryonakano deleted the use-appinfo branch January 20, 2024 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant