AvengeMedia / AvengeMedia/DankMaterialShell
Trezor Suite won't open via Spotlight
- Dominant language
- QML
- Stars
- 8.1k
- Forks
- 515
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 102
Description
### Compositor
Sway
### Distribution
Arch Linux
### If Other, please specify
_No response_
### Select your Installation Method
Distro Packaging
### Was this your original Installation method?
Yes
### If no, specify
_No response_
### dms doctor -vC
Click to expand
## DMS Doctor Report
**System**
- [ok] Operating System: Arch Linux
- ID: arch, Version: rolling, Arch: amd64
- [ok] Architecture: amd64
- [ok] Display Server: Wayland
- WAYLAND_DISPLAY=wayland-1
**Versions**
- [ok] DMS CLI: dms v1.4.6
- /usr/bin/dms
- [ok] Quickshell: Quickshell 0.3.0 (revision , distributed by Arch Linux)
- /usr/bin/qs
- [ok] DMS Shell: v1.4.6
- /usr/share/quickshell/dms
**Installation**
- [ok] DMS Configuration: Found
- /usr/share/quickshell/dms
- [ok] shell.qml: Present
- /usr/share/quickshell/dms/shell.qml
- [info] Install Type: System package
- /usr/share/quickshell/dms
**Compositor**
- [ok] Hyprland: 0.55.0
- /usr/bin/hyprland
- [ok] Sway: swayfx version 0.5.3 (based on sway 1.11.0)
- /usr/bin/sway
- [info] Active: sway:wlroots:swayfx
- [warn] Background Blur: Unsupported
- Compositor does not support ext-background-effect-v1
**Quickshell Features**
- [ok] Polkit: Available
- Authentication prompts
- [ok] IdleMonitor: Available
- Idle detection
- [ok] IdleInhibitor: Available
- Prevent idle/sleep
- [ok] ShortcutInhibitor: Available
- Allow shortcut management (niri)
- [ok] BackgroundBlur: Available
- Background blur API support in Quickshell
**Optional Features**
- [ok] accountsservice: Available
- User accounts
- [ok] power-profiles-daemon: Available
- Power profile management
- [ok] logind: Available
- Session management
- [warn] cups-pk-helper: Not available (install cups-pk-helper)
- Printer management
- [ok] I2C/DDC: 1 monitor(s) detected
- External monitor brightness control
- [ok] qt6-imageformats: Installed (1 formats)
- Formats: GIF (/usr/lib/qt6/plugins/imageformats:/usr/lib64/qt6/plugins/imageformats)
- [warn] kimageformats: Not installed
- AVIF, HEIF, JXL support
- [ok] Terminal: kitty
- [ok] Network: NetworkManager
- NetworkManager present. Using NM API.
- [ok] matugen: Installed
- Dynamic theming
- [ok] dgop: Installed
- System monitoring
- [ok] cava: Installed
- Audio visualizer
- [info] khal: Not installed
- Calendar events
- [info] danksearch: Not installed
- File search
- [info] fprintd: Not installed
- Fingerprint auth
**Config Files**
- [ok] settings.json: Present
- /home/benihime/.config/DankMaterialShell/settings.json
- [info] clsettings.json: Not yet created
- /home/benihime/.config/DankMaterialShell/clsettings.json
- [ok] plugin_settings.json: Present
- /home/benihime/.config/DankMaterialShell/plugin_settings.json
- [ok] session.json: Present
- /home/benihime/.local/state/DankMaterialShell/session.json
- [ok] dms-colors.json: Present
- /home/benihime/.cache/DankMaterialShell/dms-colors.json
**Services**
- [ok] dms.service: enabled, active
- [info] greetd: Not installed
- Optional greeter service
**Environment**
- [info] QT_QPA_PLATFORMTHEME: Not set
- [info] QS_ICON_THEME: Not set
---
**Summary:** 0 error(s), 3 warning(s), 30 ok
### Description
Attempting to launch io.trezor.suite (Flatpak) via Spotlight doesn't open the app but creates the processes. This only happens when DMS is run as a service. Running DMS with `dms run` doesn't cause this issue. Running the app via gtk-launch, flatpak run or fuzzel works fine.
### Expected Behavior
The app opens like any other app/flatpak
### Steps to Reproduce
1. Run DMS as a service
2. flatpak install io.trezor.suite
3. Open spotlight and open Trezor Suite
### Error Messages/Logs
Journalctl --user -u dms.service -f shows nothing when opening apps via Spotlight.
Sway is run via systemd
```
cat .config/sway/conf.d/systemd.conf
exec dbus-update-activation-environment --systemd --all XDG_CURRENT_DESKTOP=sway"
exec "systemctl --user import-environment {,WAYLAND_}DISPLAY SWAYSOCK"
exec systemctl --user start sway-session.target
---
systemctl --user status sway-session.target
● sway-session.target - Sway compositor session
Loaded: loaded (/home/benihime/.config/systemd/user/sway-session.target; static)
Active: active since Wed 2026-05-20 10:55:28 BST; 16min ago
Invocation: b35890be40ca4f3494ea0bf75af76ea2
Docs: man:systemd.special
May 20 10:55:28 benihime-t480 systemd[1268]: Reached target Sway compositor session.
```
Environment vars are placed in `.config/environment.d/90-dms.conf`
```
cat .config/environment.d/90-dms.conf
QT_QPA_PLATFORM="wayland;xcb"
QT_QPA_PLATFORMTHEME=gtk3
ELECTRON_OZONE_PLATFORM_HINT=auto
DMS_DISABLE_MATUGEN=true
```
### Screenshots/Recordings
_No response_
Contributor guide
Research direction
Start by comparing DMS as dms.service with dms run, then reproduce launching io.trezor.suite from Spotlight while monitoring journalctl --user -u dms.service -f and the listed Sway/systemd environment setup. Trace the Spotlight launch path and service environment; done when Trezor Suite opens through Spotlight under the service just as it does via gtk-launch, flatpak run, or fuzzel.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100