Nautilus "Set as Wallpaper" context menu action does nothing on Hyprland
What happened Right-clicking an image in Files (Nautilus) and choosing "Set as Wallpaper" has no visible effect on the desktop background.
Root cause
Nautilus's built-in "Set as Wallpaper" action only writes to the GNOME gsettings key org.gnome.desktop.background picture-uri (confirmed via gsettings get org.gnome.desktop.background picture-uri, which still pointed at the stock Adwaita background after using the context menu). Omarchy's actual background is managed independently by omarchy-shell / omarchy-theme-bg-set, symlinked at ~/.local/state/omarchy/current/background. Nothing in Omarchy reads the GNOME gsettings key, so the action silently no-ops.
Expected
Either the context menu action should be hooked up to Omarchy's background system (e.g. via a Nautilus script/extension calling omarchy-theme-bg-set), or the stock "Set as Wallpaper" entry should be hidden/disabled since it doesn't function in this environment.
Steps to reproduce
- Open Files, navigate to any image.
- Right-click → "Set as Wallpaper".
- Observe: desktop background is unchanged.
Workaround
omarchy-theme-bg-set /path/to/image.jpg, or copy the image into ~/.config/omarchy/backgrounds/<theme>/ and use the background switcher.
System
- Omarchy 4.0.1-1
- Hyprland 0.56.2
- CPU: Intel Core Ultra 5 235U
- GPU: Intel Arrow Lake-U (integrated)
Pretty sure this is because Nautilus expects and works with GNOME's wallpaper system, not hyprpaper. Not sure if there's anything we can do here, but I'll see.
Pretty sure this is because Nautilus expects and works with GNOME's wallpaper system, not hyprpaper. Not sure if there's anything we can do here, but I'll see.
This is exactly why! copy the wallpapers in .local/state/omarchy/current/theme/backgrounds/ and apply them. if you change the theme they will get deleted so you can use a plugin like Wallpaper selector to move around this. Each theme comes with it's own set of wallapers. You can make one yourself using Aether and put all your wallapapers there.
Maybe this button should be removed then.
System details: Intel i7-12700K, AMD Radeon RX 7900 XT, Omarchy 4.0.1-1, Hyprland 0.56.2, Nautilus 50.2.2-1
Reproduced on 4.0.1-1. The context menu still no-ops. One correction to the root cause: Nautilus 50 does not write org.gnome.desktop.background picture-uri. It calls the XDG wallpaper portal, and this session has no implementation of org.freedesktop.portal.Wallpaper.
After right-click → Set as Background, journalctl shows:
org.gnome.Nautilus: Failed to set wallpaper via portal:
GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod:
No such interface “org.freedesktop.portal.Wallpaper”
on object at path /org/freedesktop/portal/desktop
gsettings get org.gnome.desktop.background picture-uri stays on the stock Adwaita URI because the portal call fails before anything is written.
Installed backends and what they actually export:
xdg-desktop-portal-hyprland1.4.1: Screenshot, ScreenCast, GlobalShortcuts, InputCapturexdg-desktop-portal-gtk1.15.3: FileChooser, AppChooser, Print, Notification, Inhibit, Access, Account, Email, DynamicLauncher, Lockdown, Settingshyprland-portals.conf:default=hyprland;gtk
Neither backend implements Wallpaper. omarchy theme bg set ~/Pictures/example.png still works, because Omarchy’s background is the ~/.local/state/omarchy/current/background symlink plus omarchy-shell, not GNOME’s schema.
Shipping xdg-desktop-portal-gnome would not fix this on Omarchy. That backend would write GNOME wallpaper settings, which nothing here reads. A real fix is either:
- Implement
org.freedesktop.impl.portal.Wallpaperand hand the file toomarchy theme bg set, or - Hide/disable Files’ Set as Background item so it is not a dead control.
Pretty sure this is because Nautilus expects and works with GNOME's wallpaper system, not hyprpaper. Not sure if there's anything we can do here, but I'll see.
This is exactly why! copy the wallpapers in .local/state/omarchy/current/theme/backgrounds/ and apply them. if you change the theme they will get deleted so you can use a plugin like Wallpaper selector to move around this. Each theme comes with it's own set of wallapers. You can make one yourself using Aether and put all your wallapapers there.
It should be possible to micro-fork nautilus and change what the button does, right? Not sure if thats really worth doing, but this is a possible solution
We (I and Sol 5.6) reproduced this on Omarchy 4.0.2-1 with Nautilus 50.2.2-1.
We confirmed that an effective user-level workaround is a small nautilus-python extension which adds a Set as Omarchy Background item and delegates to the supported Omarchy command:
import gi
gi.require_version("Nautilus", "4.1")
from gi.repository import Gio, GObject, Nautilus
class OmarchyBackgroundExtension(GObject.GObject, Nautilus.MenuProvider):
def get_file_items(self, files):
if len(files) != 1:
return []
selected = files[0]
location = selected.get_location()
path = location.get_path() if location else None
mime_type = selected.get_mime_type() or ""
if not path or not mime_type.startswith("image/"):
return []
item = Nautilus.MenuItem(
name="OmarchyBackgroundExtension::set_background",
label="Set as Omarchy Background",
)
item.connect("activate", self._set_background, path)
return [item]
def get_background_items(self, _current_folder):
return []
@staticmethod
def _set_background(_item, path):
Gio.Subprocess.new(
["omarchy", "theme", "bg", "set", path],
Gio.SubprocessFlags.NONE,
)
We placed it at ~/.local/share/nautilus-python/extensions/omarchy-background.py and restarted Nautilus with nautilus -q. The new context-menu action works and updates the live Omarchy Shell background immediately.
This seems like a practical upstream improvement without micro-forking Nautilus: Omarchy could ship a similar extension (the nautilus-python package is already installed on our system). The original GNOME action would remain unless hidden separately, but a clearly named working Omarchy action removes the functional blocker.
Amazing. It works!
Thanks everyone for digging into this! @BVisagie thanks for the detailed root-cause writeup — really clarifies why this doesn't work on Omarchy. And @agdula, the nautilus-python extension workaround works perfectly for me, much appreciated 🙏
Might be worth considering as a proper Omarchy fix down the line (either shipping the extension or hiding the dead GNOME action), but for now this fully solves my problem. Closing this out!