11

enter image description here

In some programs like Firefox (Snap), if I trigger Save as... a dialog opens. If I try to modify the file name, I can move the caret with the cursor keys but as soon as I press any key to enter text, a filter box is shown to filter the listed file names so I can't specify the file name.

This happens since I updated to Ubuntu 22.04. It is very irritating. I always have to save with the default name, then find the file on the disk and rename it.

I am using i3wm in case that matters. Anyone has an idea about how to fix this?

aBe
  • 461
  • 1
    are you using FF snap or APT? I use the APT version in v22.04 and it works fine. [edit] your question accordingly. – graham Sep 23 '22 at 10:55
  • @24601 this is with 99% certainty the default snap version of 22.04. – vanadium Sep 23 '22 at 11:28
  • There are issues with file dialogs used via xdg-portal-gtk. Indeed, that you use i3wm does matter. Can you click with the mouse in the name field then type the name? If the dialog has keyboard focus, then - as a workaround - Alt+n should focus the name field and allow you to type a file name. Perhaps using devilspie2 to automatically bring these dialogs in focus may fully work around the issue. Cannot test, lacking i3. – vanadium Sep 23 '22 at 11:32
  • It is the snap version @24601 I don't see an APT version available. – aBe Sep 24 '22 at 15:20
  • @vanadium I can click with the mouse and the caret blinks there waiting for me. As soon as I type one character, the character is entered but the filter box pops up capturing the focus. Alt+n has the same effect: I can only type one character. My medium term solution will be to switch to Arch (in my next computer) which I've used for 7 years in a laptop without troubles. Then I don't need to deal with Snap or big updates. Still, would be good to find a workaround :) – aBe Sep 24 '22 at 15:25
  • 1
    this reference shows how to remove the snap and replace with APT version of FF – graham Sep 24 '22 at 15:25
  • 1
    Thank you @24601 ! I'll check that out. – aBe Sep 24 '22 at 15:26
  • 3
    Solved by removing the Snap! Thank you! My life is a bit better thanks to you @24601 :) – aBe Sep 24 '22 at 15:42
  • By the way... how can snap be so slow even when removing a package. It took like one minute on a decent computer. – aBe Sep 24 '22 at 16:02
  • Just to point out that the asker is the only one having the problem: I have the exact same problem on Firefox 106 on Ubuntu 22.04, and this already for the last half year. I am also using i3. – nh2 Oct 25 '22 at 16:12
  • Linking identical issue that explains it'll be fixed in a future GTK version: https://askubuntu.com/questions/1413900/editing-filename-in-firefox-searches-upon-input – nh2 Oct 25 '22 at 16:30

2 Answers2

2

My issue is solved by replacing the Firefox Snap with the APT version (thank you @24601)

According to @vanadium it seems to be related to Snap, i3wm and xdg-portal-gtk. I checked other snaps and the issue is present in chromium, but not in code, blender or signal-desktop.

aBe
  • 461
0

On an Ubuntu 22.04 (newly updated from 18.04) box I got Firefox and Chromium browser back to using the good, system SaveAs dialog box instead of the horrid (((search box focus grabber and almost impossible to change file name from the default))) dialog box by doing this:

sudo snap install snapd

This version of snapd, 2.38.3, apparently overrides the apt-installed snapd version 2.38.

That the snap version of snapd wasn't installed ("snap list" did not list it) was the glaring difference between the bad box and a laptop that did not have the problem.

I should note, the about:config setting, widget.use-xdg-desktop-portal.file-picker needs to be put back to the default, 2, from 0.

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center. – Community Apr 05 '23 at 09:11
  • 1
    Sadly, on Ubuntu 22.04 LTS, 'snap version' shows that I am at snapd version 2.58.3, and I have checked that my setting for widget.use-xdg-desktop-portal.file-picker is 2, but I still see the problem described in the original post. – KneadToKnow Apr 06 '23 at 01:12
  • That is sad, KneadToKnow. Very. Noticing that I didn't have the snap-installed version was about the last of the things different between my two machines, one with the problem, one without. I suppose it might make magical sense to check that you have snapd in the "snap list"? Desperation. :) – Alex Robinson Apr 06 '23 at 10:49
  • Output from 'snap list' shows snapd version 2.58.3. – KneadToKnow Apr 07 '23 at 19:53
  • Well, my Firefox started using the bad SaveAs dialog box. Sigh. I must have run out of the eye of newt. – Alex Robinson Apr 11 '23 at 09:22
  • For what it's worth, changing widget.use-xdg-desktop-portal.file-picker to 0 fixed this issue for me. It had been set to the default 2, and I had the bad file picker with this question's issue. After changing the setting to 0, I have a fully-functional save-as dialog in which I can type and edit a filename. – Mark L Apr 20 '23 at 02:35
  • Foo. I fixed mine in the same way some time ago. Sorry for not suggesting it. On mine, the dialog box window is the same, ugly, thing, but at least the file name can be changed by typing. – Alex Robinson Apr 21 '23 at 08:15