typora-issues icon indicating copy to clipboard operation
typora-issues copied to clipboard

"Save-as" does not work

Open dcfreire opened this issue 2 years ago • 15 comments

  • [x] Searched existing issues to avoid creating duplicates.

  • [x] Confirmed that it can be reproduced in built-in themes without customized css.

    If it only exists in 3rd party themes or css, you can still report it, but please attach the theme target or the css file. We may not "fix" it, if it is caused by 3rd party themes or css styles that we cannot support.

  • [x] Searched http://support.typora.io/


Describe the bug Ever since release (ver >= 1.0) I can't use the save-as functionality for any files or export files. This is a big problem considering that I cannot create new files on Typora, and then open it on Typora to edit it. When trying clicking save-as or the export buttons nothing happens on screen, but this is printed to the terminal:

(typora:114856): Gtk-WARNING **: 15:47:01.744: Can't open portal file chooser: GDBus.Error:org.freedesktop.portal.Error.InvalidArgument: invalid filter: no filters

The file chooser opens normally when opening files and folders.

To Reproduce Steps to reproduce the behavior:

  1. Go to File
  2. Click on Save-as

Expected behavior The file chooser opens, and lets me save the file.

Screenshots / Screencasts If applicable, add screenshots / screencasts to help explain your problem.

Desktop (please complete the following information):

  • OS: Manjaro 21.2.6

Typora Version 1.2.4

Additional context Save-as works fine on typora 0.11

dcfreire avatar Jun 06 '22 18:06 dcfreire

Does GTK_USE_PORTAL=0 ./Typora work?

Or install xdg-desktop-portal-gtk

abnerlee avatar Jun 08 '22 04:06 abnerlee

I already had xdg-desktop-portal-gtk installed and it does not fixes the issue, however setting GTK_USE_PORTAL=0 does.

dcfreire avatar Jun 08 '22 23:06 dcfreire

I tested two Typora versions on Linux Mint 20.03 Una. Version 1.3.6 (installed through the Linux Mint 20.03 Software Manager) does not open the save/save as dialog when clicking Save or Save As. Version 1.2.3 (available for download from the typora.io website) functions properly as expected when clicking Save or Save As. The bug appears to have been introduced in version 1.3.

davidfhill avatar Jun 15 '22 20:06 davidfhill

Same here. But this issue is only on Flatpak version. It's normal with deb and binary.

Fedora 36 64 bit Gnome - wayland

plumlis avatar Jun 16 '22 00:06 plumlis

Am also experiencing this with the flatpak version on Fedora 36, gnome wayland and gnome xorg. Version 1.3.6

sirrahn avatar Jun 20 '22 08:06 sirrahn

Same problem in Arch Linux, with xdg-desktop-portal-gtk installed, and export function also doesn't work. However, if set GTK_USE_PORTAL=0, this problem can be solved

Syize avatar Jun 23 '22 02:06 Syize

How do you set the GTK_USE_PORTAL=0 ?

sirrahn avatar Jun 24 '22 03:06 sirrahn

How do you set the GTK_USE_PORTAL=0 ?

From a command line, invoke typora but prefix it with the desired environmental variable, i.e. GTK_USE_PORTAL=0 typora

exergonic avatar Jun 25 '22 04:06 exergonic

I can second this. Same issues here, but not just with the flatpak, but also with the AUR version. Both 1.3.6.

Tested with:

  • Manjaro (Gnome42) with X11 and wayland, Kernels 5.15 and 5.18
  • PopOs with X11, Kernel 5.17

xdg-desktop-portal-gtk is installed.

How can I set the environment variable? GTK_USE_PORTAL=0 typora doesn't work with the flatpak, GTK_USE_PORTAL=0 io.typora.Typora as well is not working.

sonnie-sonnig avatar Jun 27 '22 14:06 sonnie-sonnig

Hi there,

So for us fedora users who don't know how to run the unpack and run the binary version and are stuck with the issues with flatpak (still unable to print or save files), is there a way to build an rpm package or is there a copr repo or rpm version that is trusted?

Maybe the snap version would be better supported..

benji88i avatar Jul 02 '22 11:07 benji88i

Hi there,

So for us fedora users who don't know how to run the unpack and run the binary version and are stuck with the issues with flatpak (still unable to print or save files), is there a way to build an rpm package or is there a copr repo or rpm version that is trusted?

Maybe the snap version would be better supported..

https://github.com/RPM-Outpost/typora

try this script

plumlis avatar Jul 02 '22 12:07 plumlis

Thanks a lot!

Sorry do I need to download something from github before I run "./create-package.sh"

benji88i avatar Jul 04 '22 03:07 benji88i

Is there anyway to rollback the flathub version. ?

benji88i avatar Jul 04 '22 03:07 benji88i

Same issue here; Typora 1.3.6 on Ubuntu 20.04, installed with Flatpak. xdg-desktop-portal-gtk installed. Setting flatpak override --user --env=GTK_USE_PORTAL=0 io.typora.Typora does not solve the issue.

akosma avatar Jul 07 '22 05:07 akosma

Issue persists on FedoraCore 36 after setting GTK_USE_PORTAL=0 through Flatseal. This environment variable is not a working fix.

bluesangel avatar Jul 25 '22 07:07 bluesangel

Does version 1.4.4 works?

abnerlee avatar Sep 06 '22 14:09 abnerlee

Still doesn't work.

(Typora:2): Gtk-WARNING **: 15:34:20.227: Can't open portal file chooser: GDBus.Error:org.freedesktop.portal.Error.InvalidArgument: invalid filter: no filters

plumlis avatar Sep 07 '22 07:09 plumlis

Does version 1.4.4 works?

Yes for the manual .deb-File-Update. No for the Flatpak. (PopOS 22.04 / Gnome 42.3.1 / X11)

sonnie-sonnig avatar Sep 07 '22 12:09 sonnie-sonnig

Could you try 1.4.5 (flatpak)? It should be fixed in that version

abnerlee avatar Sep 08 '22 06:09 abnerlee

Could you try 1.4.5 (flatpak)? It should be fixed in that version

Unfortunately not. This is my terminal output, when starting Typora 1.4.5. with flatpak run io.typora.Typora


Gtk-Message: 08:35:28.778: Failed to load module "appmenu-gtk-module"
Gtk-Message: 08:35:28.814: Failed to load module "canberra-gtk-module"
Gtk-Message: 08:35:28.814: Failed to load module "canberra-gtk-module"
[2:0908/083528.825389:ERROR:bus.cc(398)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:0908/083528.825417:ERROR:bus.cc(398)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:0908/083528.860230:ERROR:bus.cc(398)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:0908/083528.860281:ERROR:bus.cc(398)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:0908/083528.860307:ERROR:bus.cc(398)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory

(Typora:2): Gtk-WARNING **: 08:35:33.572: Can't open portal file chooser: GDBus.Error:org.freedesktop.portal.Error.InvalidArgument: invalid filter: no filters

sonnie-sonnig avatar Sep 08 '22 06:09 sonnie-sonnig

@sonnie-sonnig Sorry, but does Export → PDF now shows the dialog in 1.4.5?

abnerlee avatar Sep 11 '22 04:09 abnerlee

@abnerlee Yes, this seems to work properly with the flatpak 1.4.5.

sonnie-sonnig avatar Sep 11 '22 09:09 sonnie-sonnig

@sonnie-sonnig Could you try 1.4.6 and see if it works now?

abnerlee avatar Sep 14 '22 03:09 abnerlee

It works well now.

plumlis avatar Sep 14 '22 05:09 plumlis

Fixed in 1.4.6

abnerlee avatar Sep 14 '22 08:09 abnerlee

It works well now.

I second that. Works fine with 1.4.6 from flathub. TY for your work.

sonnie-sonnig avatar Sep 15 '22 07:09 sonnie-sonnig