DankMaterialShell icon indicating copy to clipboard operation
DankMaterialShell copied to clipboard

Matugen switches Brave Browser to light mode

Open NotLe0n opened this issue 1 month ago • 0 comments

Compositor

niri

Distribution

Fedora 43 Workstation (also happened on 42)

dms version

dev

Description

After switching backgrounds or restarting dms, brave-browser's theme gets set to light mode even though it's set to Dark (and not to system). I don't know if this happens to other browsers.

I also have DMS set to dark mode, disabled "Dynamic Theming" ("Sync Mode with Portal" was also disabled, though that setting had no effect). I didn't customize matugen, since I don't intend to use it. My background is a dark picture, so this should not be a factor.

Running dms with DMS_DISABLE_MATUGEN=1 prevents this issue.

Expected Behavior

The theme should stay what was selected previously (Dark mode).

Steps to Reproduce

  1. Switch Wallpapers or restart DMS
  2. Wait a few seconds for Matugen to finish
  3. The theme should change

Error Messages/Logs

13:57:20 ❯ dms run
dms dev
  INFO  go: Spawning quickshell with -p /usr/share/quickshell/dms

██████╗  █████╗ ███╗   ██╗██╗  ██╗
██╔══██╗██╔══██╗████╗  ██║██║ ██╔╝
██║  ██║███████║██╔██╗ ██║█████╔╝
██║  ██║██╔══██║██║╚██╗██║██╔═██╗
██████╔╝██║  ██║██║ ╚████║██║  ██╗
╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═══╝╚═╝  ╚═╝
  INFO  go: DMS API Server listening on: /run/user/1000/danklinux-11764.sock
  INFO  go: API Version: 22
  INFO  go: Protocol: JSON over Unix socket
  INFO  go: Request format: {"id": <any>, "method": "...", "params": {...}}
  INFO  go: Response format: {"id": <any>, "result": {...}} or {"id": <any>, "error": "..."}
  INFO  go:
  INFO  go: Initializing managers...
  INFO  go:
  INFO  go: Attempting to initialize Wayland gamma control...
  INFO  go: setupRegistry: starting registry setup
  INFO  go: setupRegistry: found zwlr_gamma_control_manager_v1
  INFO  go: setupRegistry: gamma control manager bound successfully
  INFO  go: Bound wl_output id=5 registry_name=42
  INFO  go: Output 5 name: eDP-1
  INFO  go: setupRegistry: discovered gamma_manager=true, outputs=1
  INFO  go: setupRegistry: filtered 1 physical outputs from 1 total outputs
  INFO  go: setupRegistry: completed successfully (gamma controls will be initialized when enabled)
  INFO  go: D-Bus monitoring for suspend/resume events enabled
  INFO  go: Wayland gamma control initialized successfully
  INFO  go: Attempting to initialize DWL IPC...
  INFO  go: DWL: starting registry setup
  INFO  go: Network backend detection: NetworkManager present. Using NM API.
  INFO  go: DWL: Bound wl_output id=9 registry_name=42
  INFO  go: DWL: manager not found in registry
  INFO  go: ExtWorkspace capability detected and will be available on subscription
  INFO  go: Attempting to initialize WlrOutput management...
  INFO  go: WlrOutput: starting registry setup
  INFO  go: [BluezManager] found adapter: /org/bluez/hci0
  INFO  go: WlrOutput: registry setup complete (events will be processed async)
  INFO  go: WlrOutput management initialized successfully
  INFO  go: Wayland event dispatcher started
  INFO  go:
  INFO  go: Ready! Capabilities: [plugins gamma extworkspace brightness wlroutput]
  INFO  go: Brightness manager initialized
  WARN  go: Failed to initialize evdev manager: insufficient permissions to access input devices
  INFO  go: WlrOutput: found zwlr_output_manager_v1
  INFO  go: WlrOutput: manager bound successfully
  INFO  go: Logind backend initialized - will use for brightness control
  INFO  go: DDC backend initialized
  INFO  go: Sysfs backend initialized with 6 devices
  INFO  go: [BluezAgent] registered at /com/danklinux/bluez/agent with capability KeyboardDisplay
  INFO  go: Bluez manager initialized
  INFO  go: Freedesktop manager initialized
  INFO  go: Loginctl manager initialized
  INFO  go: [SecretAgent] Registered with NetworkManager (id=com.danklinux.NMAgent, unique name=:1.218, fixed path=/org/freedesktop/NetworkManager/SecretAgent)
  INFO  go: Network manager initialized
  INFO: Launching config: "/usr/share/quickshell/dms/shell.qml"
  INFO: Shell ID: "85ecfc916fcda75f6106502e8dabb0ab" Path ID "85ecfc916fcda75f6106502e8dabb0ab"
  INFO: Saving logs to "/run/user/1000/quickshell/by-id/y29nnij6t/log.qslog"
  INFO qml: AudioService: Sound effects enabled
  INFO qml: NetworkService: Initializing...
  INFO qml: PolkitService: Initialized successfully
  INFO qml: IdleService: Initialized with idle monitoring support
  WARN qml: IdleService: Error creating IdleMonitors: Error: Qt.createQmlObject(): failed to create object:
    file:///usr/share/quickshell/dms/Services/IdleService.MediaInhibitor:6:17: Cannot assign to non-existent property "active"
  WARN: Tried to register singleton PowerProfileWatcher_QMLTYPE_44(0x7f0c14691ec0) which isnot the root component of its file QUrl("qs:@/qs/Services/PowerProfileWatcher.qml")
  WARN quickshell.I3.ipc: $I3SOCK is unset. Trying $SWAYSOCK.
  WARN quickshell.I3.ipc: $SWAYSOCK and I3SOCK are unset. Cannot connect to socket.
  WARN: $HYPRLAND_INSTANCE_SIGNATURE is unset. Cannot connect to hyprland.
  INFO: Configuration Loaded
  INFO qt.multimedia.ffmpeg: Using Qt multimedia with FFmpeg version 7.1.2 GPL version 3 orlater
Input #0, wav, from '/usr/share/quickshell/dms/assets/sounds/freedesktop/audio-volume-change.wav':
  Metadata:
    encoder         : Lavf62.3.100
  Duration: 00:00:00.06, bitrate: 1420 kb/s
  Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s
  WARN qml: I18n: Falling back to built-in English strings
Input #0, wav, from '/usr/share/quickshell/dms/assets/sounds/freedesktop/message.wav':
  Metadata:
    encoder         : Lavf62.3.100
  Duration: 00:00:00.31, bitrate: 1413 kb/s
  Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s
Input #0, wav, from '/usr/share/quickshell/dms/assets/sounds/freedesktop/message-new-instant.wav':
  Metadata:
    encoder         : Lavf62.3.100
  Duration: 00:00:01.03, bitrate: 1411 kb/s
  Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s
Input #0, wav, from '/usr/share/quickshell/dms/assets/sounds/plasma/power-plug.wav':
  Metadata:
    encoder         : Lavf62.3.100
  Duration: 00:00:03.00, bitrate: 1411 kb/s
  Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s
Input #0, wav, from '/usr/share/quickshell/dms/assets/sounds/plasma/power-unplug.wav':
  Metadata:
    encoder         : Lavf62.3.100
  Duration: 00:00:03.00, bitrate: 1411 kb/s
  Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s
  WARN quickshell.service.polkit.listener: failed to register listener: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: An authentication agent already exists for the given subject
  WARN quickshell.service.polkit: failed to register listener on path "/org/quickshell/PolkitAgent"
  WARN qt.qpa.services: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: Connection already associated with an application ID")
  INFO qml: Detected distribution: Fedora Linux 43 (Workstation Edition)
  INFO qml: CompositorService: Detected Niri with socket: /run/user/1000/niri.wayland-1.2758.sock
  INFO qml: Theme: Setting desired theme - hex mode: dark (dynamic)
  WARN qml: SystemUpdate: No update checker found. Will use package manager.
  INFO qml: NiriService: Generated binds config at /home/leon/.config/niri/dms/wpblur.kdl
  INFO qml: NetworkService: Network capability detected, using DMSNetworkService
  INFO qml: NetworkService: Switched to DMSNetworkService, networkAvailable: true
  INFO qml: DMSService: Connected (API v22, CLI dev) - ["plugins","network","loginctl","freedesktop","gamma","bluetooth","extworkspace","brightness","wlroutput"]
  INFO qml: WlrOutputService: wlr-output-management capability detected
  INFO qml: ExtWorkspaceService: ext-workspace available but compositor has native support
  WARN qml: Theme worker: [matugen-worker] Building theme (key: 6fcc095ae286...)
  INFO qml: NiriService: Generated binds config at /home/leon/.config/niri/dms/wpblur.kdl
  WARN qml: Theme worker: [matugen-worker] Using dynamic theme from hex: #42a5f5
  INFO qml: NiriService: Loaded 1 outputs
  WARN qml: Theme worker: [matugen-worker] Running matugen hex with dank16 injection
  INFO qml: CompositorService: Detected Niri with socket: /run/user/1000/niri.wayland-1.2758.sock
  INFO qml: NiriService: Generated binds config at /home/leon/.config/niri/dms/wpblur.kdl
  INFO qml: NiriService: Generated binds config at /home/leon/.config/niri/dms/wpblur.kdl
  WARN scene: QML DankBatteryAlerts at file:///home/leon/.config/DankMaterialShell/plugins/dankBatteryAlerts/DankBatteryAlerts.qml[8:1]: Created graphical object was not placed in thegraphics scene.
  INFO qml: DankBar: Plugin loaded: dankBatteryAlerts
  INFO qml: DankBar: Plugin loaded: dockerManager
  INFO qml: Daemon plugin loaded: dankBatteryAlerts
  INFO qml: SessionService: Native inhibitor available: true
  INFO qml: NiriService: Generated layout config at /home/leon/.config/niri/dms/layout.kdl
  INFO qml: NiriService: Generated alttab config at /home/leon/.config/niri/dms/alttab.kdl
  WARN qml: Theme worker: [matugen-worker] Done
  INFO qml: Theme: Matugen worker completed successfully

NotLe0n avatar Nov 30 '25 13:11 NotLe0n