DankMaterialShell icon indicating copy to clipboard operation
DankMaterialShell copied to clipboard

DMS fails to start and reports: the error module "QtMultimedia" is not installed

Open xbpk3t opened this issue 1 year ago • 4 comments

Compositor

  • [x] niri
  • [ ] Hyprland
  • [ ] Other (specify)

Distribution

NixOS 25.11

dms version

v0.1.2

Description

I just learned about DMS yesterday and used it. Everything was smooth, but after I modified the configuration of other services and rebuilt them, I found that DMS could not start and reported the error

ERROR: caused by @Services/AudioService.qml[6:1]: module "QtMultimedia" is not installed

Error Messages/Logs

➜ journalctl | grep QtMultimedia

763176:98:Oct 14 15:04:05 nixos-ws dms[2404]: ERROR: caused by @Services/AudioService.qml[6:1]: module "QtMultimedia" is not installed

763397:98:Oct 14 15:04:06 nixos-ws dms[2605]: ERROR: caused by @Services/AudioService.qml[6:1]: module "QtMultimedia" is not installed


776442:99:Oct 14 16:10:02 nixos-ws dms[20354]: ERROR: caused by @Services/AudioService.qml[6:1]: module "QtMultimedia" is not installed
...

Screenshots/Recordings

xbpk3t avatar Oct 14 '25 08:10 xbpk3t

Can confirm.

❯ dms run
                                  
██████╗  █████╗ ███╗   ██╗██╗  ██╗
██╔══██╗██╔══██╗████╗  ██║██║ ██╔╝
██║  ██║███████║██╔██╗ ██║█████╔╝ 
██║  ██║██╔══██║██║╚██╗██║██╔═██╗ 
██████╔╝██║  ██║██║ ╚████║██║  ██╗
╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═══╝╚═╝  ╚═╝
 DEBUG  go: Removed stale socket: /run/user/1000/danklinux-2468892.sock
  INFO  go: DMS API Server listening on: /run/user/1000/danklinux-545142.sock
  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: Freedesktop manager initialized
  INFO  go: Network manager initialized
  INFO  go: Loginctl manager initialized
  INFO: Launching config: "/home/kev/.config/quickshell/dms/shell.qml"
  INFO: Shell ID: "52a41d9a451aef8c5c61c033db0bec2a" Path ID "52a41d9a451aef8c5c61c033db0bec2a"
  INFO: Saving logs to "/run/user/1000/quickshell/by-id/6nobhi844t/log.qslog"
 ERROR: Failed to load configuration
 ERROR:   caused by @shell.qml[15:26]: Type DMSShell unavailable
 ERROR:   caused by @DMSShell.qml[55:3]: Type WallpaperBackground unavailable
 ERROR:   caused by @Modules/WallpaperBackground.qml[89:13]: Type WallpaperEngineProc unavailable
 ERROR:   caused by @Modules/WallpaperEngineProc.qml[-1:-1]: Type Anims unavailable
 ERROR:   caused by @Common/Anims.qml[-1:-1]: Type AppUsageHistoryData unavailable
 ERROR:   caused by @Common/AppUsageHistoryData.qml[-1:-1]: Type Appearance unavailable
 ERROR:   caused by @Common/Appearance.qml[-1:-1]: Type CacheUtils unavailable
 ERROR:   caused by @Common/CacheUtils.qml[-1:-1]: Type Facts unavailable
 ERROR:   caused by @Common/Facts.qml[-1:-1]: Type I18n unavailable
 ERROR:   caused by @Common/I18n.qml[-1:-1]: Type ModalManager unavailable
 ERROR:   caused by @Common/ModalManager.qml[-1:-1]: Type Paths unavailable
 ERROR:   caused by @Common/Paths.qml[-1:-1]: Type SessionData unavailable
 ERROR:   caused by @Common/SessionData.qml[-1:-1]: Type AppSearchService unavailable
 ERROR:   caused by @Services/AppSearchService.qml[-1:-1]: Type AudioService unavailable
 ERROR:   caused by @Services/AudioService.qml[6:1]: module "QtMultimedia" is not installed
 ERROR  go: quickshell exited: exit status 255

For me this started with commit b5e29cf5.

kevb1973 avatar Oct 14 '25 09:10 kevb1973

This issue can be fixed by simply installing qt6-multimedia package. As per discussion with dev on discord, he will make this package optional going further.

xd003 avatar Oct 14 '25 11:10 xd003

In nix, this package is called kdePackages.qtmultimedia, so currently we can simply add home.packages = [ pkgs.kdePackages.qtmultimedia ]; to resolve this issue.

Moraxyc avatar Oct 14 '25 11:10 Moraxyc

Made optional ea56fb58401d39391c8a2d8456fa88a289640729

bbedward avatar Oct 14 '25 11:10 bbedward