為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Import Certificates button not functioning

more options

I am attempting to import server certificates into Firefox. But the "Import" button does nothing when viewing certificates. Any work around? I need to import our server certificates into the Authorities section.

Ubuntu 22.04 Firefox installed through snap. Version 104.0 just upgraded this afternoon.

Thank you, James

I am attempting to import server certificates into Firefox. But the "Import" button does nothing when viewing certificates. Any work around? I need to import our server certificates into the Authorities section. Ubuntu 22.04 Firefox installed through snap. Version 104.0 just upgraded this afternoon. Thank you, James

被選擇的解決方法

Hi James, do Browse... buttons call up your system file browser? If not, it's probably because Firefox is trying to call a file picker that isn't installed or isn't enabled.

I don't know which versions of Linux are affected, but some users need to make either of these two changes to make the file/directory picker appear. As a Windows user, I can't verify this myself

(A) Install xdg-desktop-portal

This would be from your package manager, I think.

(B) Turn off auto-detection of the GTK portal

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.

More info on about:config: Configuration Editor for Firefox. The moderators would like us to remind you that changes made through this back door aren't fully supported and aren't guaranteed to continue working in the future.

(2) In the search box in the page, type or paste widget.use-xdg-desktop-portal.file-picker and pause while the list is filtered

(3) Double-click the preference to display an editing field, and change the value to 0 then press Enter or click the blue check mark button to save the change. For reference, these are the valid values:

  • 0 => Never
  • 1 => Always
  • 2 => Auto-detect

Now... there are a bunch of other preferences starting with widget.use-xdg-desktop-portal. and I have no idea what those do. If your distribution has a support site with a Firefox board or active Firefox discussions, you might search there for more tips.

從原來的回覆中察看解決方案 👍 0

所有回覆 (2)

more options

選擇的解決方法

Hi James, do Browse... buttons call up your system file browser? If not, it's probably because Firefox is trying to call a file picker that isn't installed or isn't enabled.

I don't know which versions of Linux are affected, but some users need to make either of these two changes to make the file/directory picker appear. As a Windows user, I can't verify this myself

(A) Install xdg-desktop-portal

This would be from your package manager, I think.

(B) Turn off auto-detection of the GTK portal

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.

More info on about:config: Configuration Editor for Firefox. The moderators would like us to remind you that changes made through this back door aren't fully supported and aren't guaranteed to continue working in the future.

(2) In the search box in the page, type or paste widget.use-xdg-desktop-portal.file-picker and pause while the list is filtered

(3) Double-click the preference to display an editing field, and change the value to 0 then press Enter or click the blue check mark button to save the change. For reference, these are the valid values:

  • 0 => Never
  • 1 => Always
  • 2 => Auto-detect

Now... there are a bunch of other preferences starting with widget.use-xdg-desktop-portal. and I have no idea what those do. If your distribution has a support site with a Firefox board or active Firefox discussions, you might search there for more tips.

more options

Package was installed and up to date. The last item corrected the issue. Changing the setting from 2 to 0 allowed the file picker to appear. Thank you for the response. James