sourcegit-scm / sourcegit

Windows/macOS/Linux GUI client for GIT users
MIT License
616 stars 66 forks source link

File picker could not open on Deepin with commit 67c771d #183

Closed gadfly3173 closed 3 weeks ago

gadfly3173 commented 3 weeks ago

It seems that Avalonia does not support deepin-file-manager or need some other configuration. image The file picker with builder.UseManagedSystemDialogs();

gadfly3173 commented 3 weeks ago

Without builder.UseManagedSystemDialogs();, I would get debug output like this:

[FreeDesktopPlatform] OnCommitString failed: System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Tmds.DBus.Protocol.DBusConnection+Observer'. (FcitxX11TextInputMethod #33781949) 

With builder.With(new X11PlatformOptions { UseDBusFilePicker = false }), the deepin-file-manager would be opened correctly

love-linger commented 3 weeks ago

According to https://github.com/AvaloniaUI/Avalonia/issues/9383#issuecomment-1378350456, AvaloniaUI will use native picker when turn off UseDBusFilePicker, which seems to be even less stable.

image

I would like to revert commit 67c771d7d99a54845131816d753ad9ddccec608d.