flathub / io.typora.Typora

https://flathub.org/apps/details/io.typora.Typora
3 stars 5 forks source link

Can't save file after upgrade to 1.3.6 #15

Closed plumlis closed 1 year ago

plumlis commented 2 years ago

Fedora 36 64bit Wayland Flatpak 1.3.6 version

Can lauch typora with flatpak but can't save file.

check log can see some errors:

$flatpak run io.typora.Typora                   
Gtk-Message: 17:35:43.098: Failed to load module "canberra-gtk-module"
Gtk-Message: 17:35:43.098: Failed to load module "pk-gtk-module"
Gtk-Message: 17:35:43.098: Failed to load module "canberra-gtk-module"
Gtk-Message: 17:35:43.098: Failed to load module "pk-gtk-module"
[2:0615/173543.109432:ERROR:bus.cc(397)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:0615/173543.109464:ERROR:bus.cc(397)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:0615/173543.150647:ERROR:bus.cc(397)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:0615/173543.150687:ERROR:bus.cc(397)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:0615/173543.150711:ERROR:bus.cc(397)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[45:0615/173543.171732:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
[45:0615/173621.539184:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!

(Typora:2): Gtk-WARNING **: 17:36:23.483: Can't open portal file chooser: GDBus.Error:org.freedesktop.portal.Error.InvalidArgument: invalid filter: no filters
plumlis commented 2 years ago

I tried to install from offcial biinary file and it works fine.

syco commented 2 years ago

This seems to be another wayland issue, see https://github.com/flathub/org.signal.Signal/issues/280

The only solution I can offer is to disable the wayland socket entirely.

plumlis commented 2 years ago

I'm running typora from flatpak in X11 I can launch it, typing in it, but can't save file.

It seems the main issue is in this line Can't open portal file chooser: GDBus.Error:org.freedesktop.portal.Error.InvalidArgument: invalid filter: no filters

portal file chooser can't open up. I'm not sure if its wayland related.

syco commented 2 years ago

Ok... then might be same as these 2: https://github.com/paolostivanin/OTPClient/issues/151 and https://github.com/bottlesdevs/Bottles/issues/966

Do you have xdg-desktop-portal-gtk installed?

plumlis commented 2 years ago

Sure. I have xdg-desktop-portal-gtk installed on my system.

sudo dnf install xdg-desktop-portal-gtk
Last metadata expiration check: 1:33:24 ago on 2022年06月15日 星期三 17时02分57秒.
Package xdg-desktop-portal-gtk-1.12.0-5.fc36.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

I'm not sure if there is a xdg-desktop-portal-gtk package in flatpak I need to install. I tired with some other app in flatpak and save file. All of them works well.

Only typora can't open up file save dialog.

plumlis commented 2 years ago

Not sure if its flatpak version related

https://github.com/typora/typora-issues/issues/5275

But on my system binary version works well.

syco commented 2 years ago

I don't think that's related. On debian 11, with Flatpak 1.10.7, works fine.

sirrahn commented 2 years ago

I am unable to Save as on the Flatpak 1.3.6 version. If selected nothing happens - the dialogue doesn't open.

plumlis commented 1 year ago

Solved in new version.