how I can change the portal-lxqt font size for filepicker
- User
how I can change the portal-lxqt font size for filepicker
Assistant
Of course! This is an excellent question because it touches on how modern Linux desktops handle application sandboxing and system integration.
The key to understanding this is that
portal-lxqtdoes not have its own font settings.Instead,
portal-lxqtacts as a "bridge." When a sandboxed application (like a Flatpak) needs to open a file, it asks the desktop portal. The portal then opens the native file picker of your desktop environment. For LXQt, this is typically the file picker provided by PCManFM-Qt.Therefore, to change the font size in the
portal-lxqtfile picker, you need to change the system-wide font settings for your LXQt desktop.Here are the two main ways to do it. The first method is the easiest and recommended one.
Method 1: Using the LXQt Appearance Settings (Easy & Recommended)
This is the standard graphical way to change fonts and other appearance settings in LXQt.
-
Open LXQt Configuration Center:
- Click on the main application menu (usually at the bottom-left corner).
- Go to Preferences -> LXQt Settings.
- Click on Appearance.
-
Adjust the Font Settings:
- In the "LXQt Appearance Configuration" window, click on the Font tab.
- You will see a "General" font setting. This is the font used for most application windows, menus, and dialogs, including the file picker.
- Click on the button that shows the current font (e.g., "Noto Sans, 10").
-
Choose a New Font Size:
- A font selection dialog will appear.
- Find the Size setting and increase it to your desired value (e.g., from 10 to 12).
- Click Select or OK.
-
Apply the Changes:
- Back in the Appearance window, click the Apply button.
The font size in your file picker (and most other application windows) should change immediately. To test, simply open a Flatpak or any other application and use its "File -> Open" or "File -> Save" dialog.
Method 2: Editing the Configuration File (Advanced)
If you prefer using the terminal or the graphical method doesn't work for some reason, you can edit the configuration file directly.
-
Open the Configuration File: The LXQt appearance settings are stored in
~/.config/lxqt/lxqt.conf. Open this file with your favorite text editor (like FeatherPad, which comes with LXQt).featherpad ~/.config/lxqt/lxqt.conf -
Locate the Font Setting: Look for the
[General]section in the file. Inside this section, you will find a line that starts withfont=. It will look something like this:[General] __userfile__=true font=Noto Sans,10,-1,5,50,0,0,0,0,0 -
Edit the Font Size: The format is
FontFamily,Size,.... The second value is the font size. Change the number10(or whatever your current size is) to your desired new size.For example, to change the font size to 12: Before:
font=Noto Sans,10,-1,5,50,0,0,0,0,0After:font=Noto Sans,12,-1,5,50,0,0,0,0,0 -
Save and Log Out: Save the
lxqt.conffile. For the changes to be fully applied across your session, you will need to log out and log back in.
Troubleshooting: If It Still Doesn't Work
If you change the font but the file picker from a Flatpak app still looks different, it might be because the system is incorrectly using the GTK portal instead of the LXQt (Qt) one.
-
Check which portals are active: Open a terminal and run:
xdg-desktop-portal -vThis will show you which backend is being used. You should see references to
lxqt. -
Ensure the environment is set correctly: Make sure your system knows you are running LXQt. The
XDG_CURRENT_DESKTOPenvironment variable should be set toLXQt. You can check it with:echo $XDG_CURRENT_DESKTOPIf it's blank or set to something else, you may need to set it permanently. A good place to do this is in
/etc/environment.# As root, edit /etc/environment and add this line: XDG_CURRENT_DESKTOP=LXQtYou will need to reboot for this change to take effect. This ensures that sandboxed applications correctly identify your desktop and use the right portal (
portal-lxqt).
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.