How BlueRune works with the system
This page explains the parts of BlueRune that reach outside your own files: the portals apps use, how apps show files in Files, the settings that change system files, boot splash previews and drawing tablets. You don't need to set any of them up.
Portals
Apps reach the desktop through xdg-desktop-portal: to share the screen, choose a file or read the light or dark setting. In the BlueRune session, xdg-desktop-portal reads /usr/share/xdg-desktop-portal/bluerune-portals.conf:
| Portal | Served by |
|---|---|
| Screen and window sharing, screenshots, global shortcuts, input capture | xdg-desktop-portal-hyprland |
| File chooser | xdg-desktop-portal-bluerune (the Files browser as a dialog); xdg-desktop-portal-gtk if it can't start |
| Settings (light or dark, accent, fonts for apps), and the rest | xdg-desktop-portal-gtk |
| Inhibit | None: apps use Wayland's idle-inhibit, which Hyprland and hypridle honour |
To change one, copy the file to ~/.config/xdg-desktop-portal/bluerune-portals.conf, edit it there, then restart the portal:
systemctl --user restart xdg-desktop-portal
While an app shares or records the screen or a window, the bar shows what is shared and offers to stop it.
Show in folder
When an app shows a file in its folder (Show in folder in Firefox's downloads, Show in Folder in Telegram) or opens a folder, it asks the session's file manager through org.freedesktop.FileManager1. BlueRune Files answers:
- A Files that is running opens the folders as tabs of its window, one per folder, the files selected and scrolled to, and comes to the front. With several Files windows open, the one opened first answers; when it closes, the next does.
- With no Files running, D-Bus starts one (
bluerune-files --dbus-service) that opens at what was asked. - Properties in such an app opens Files' Properties dialog.
- Files opens local files, the trash and servers Files is connected to. For anything else it says what it couldn't show, and the app may fall back to something else.
Dolphin and Thunar answer to the same name, and where several are installed D-Bus picks among them as it likes. So in the BlueRune session, bluerune-file-manager.service (which the session starts) writes Files' entry to $XDG_RUNTIME_DIR/dbus-1/services, which D-Bus reads first, and removes it when the session ends; other desktops keep their own file manager. To have Dolphin answer in the BlueRune session instead (an open Files window still answers while it is open):
systemctl --user mask --now bluerune-file-manager.service
Settings that need a password
Some settings change system files: what the lid and power button do, the battery charge limit and warning levels, automatic login, the login screen and boot splash, typing aids and pen pressure for every keyboard and tablet. BlueRune asks a small helper, bluerune-helper, to make those changes. There is nothing to set up:
- The system bus starts the helper when Settings calls
org.bluerune.Helper1. It exits by itself half a minute after the last call. Its unit can't be enabled. - Every change asks polkit, which asks for the administrator's password every time, from an active local session only. The prompt is BlueRune's own (Settings > Lock and privacy > Password prompts for apps); with that off, install and start
hyprpolkitagentinstead. - The helper writes only its own drop-in files (under
/etc/systemd/logind.conf.d,/etc/UPower/UPower.conf.d,/etc/sddm.conf.dand a few more) in a sandbox where the rest of the system is read-only. What it can't do from there (rebuilding the initramfs and writing the charge limit to the battery), it does by starting units that come with the package (bluerune-initramfs,bluerune-charge-limit,bluerune-charge-fully).
To see what the helper did:
journalctl -u bluerune-helper
Boot splash previews
Settings > Login screen > Preview boot splashes plays an installed Plymouth theme for about 12 seconds, as it shows at boot: its animation, progress, a message and the password prompt for an encrypted disk. Escape, closing its window or Stop ends it sooner. It needs no password and changes nothing about the boot splash:
plymouthdruns as you, in user, mount and network namespaces of its own (unshare,nsenterandsetprivfrom util-linux,timeoutfrom coreutils), with no GPU, framebuffer or console devices, so it can't meet a Plymouth running for real or draw on a screen.- A theme that draws plays in a window of a private rootful Xwayland (
xorg-xwayland). One that only writes text (text,details,tribar) plays in your terminal. - It needs unprivileged user namespaces, which Arch's kernel allows. Where they are off, the page says what
unshareanswered.
Drawing tablets
The Touchscreen and tablet page reads a tablet's buttons and pen to map buttons and to calibrate a screen tablet. The package's udev rule gives the person at the computer read access to tablet pens and pads, as systemd already does for joysticks. It applies when a tablet is plugged in. For a tablet that is plugged in already, unplug it and plug it back in, or run:
sudo udevadm trigger --subsystem-match=input