Skip to content

Setup dms greeter sync during build to remove extra step for users. #3

Open

Description

@irunatbullets

At the moment, users need to run dms greeter sync to sync their background image with dms greeter. It would be good to have this setup during build time so it's already working.

I'm not sure how to do it at the moment though.

Activity

  1. sixelasacul commented on Aug 2, 2026

    @sixelasacul

    Hi there! I think/hope I can help with this, as I also wanted to have Niri/DMS on Bazzite and ran into having to create my own bootc. From what I could figured from the docs of universal blue and bootc is that we can use a one shot service to run stuff at runtime, when the user logs in. And so that's what I've used to run dms greeter sync and other systemctl commands. Have a look: https://github.com/sixelasacul/bazzite-niri-dms/blob/main/system_files/usr/lib/systemd/system/shell-setup.service.

    Though please note that my image is quite "genuine" in the idea that it doesn't build DMS itself, just installs it semi-manually to bypass the immutability policy. It's not thoroughly tested, so I don't know in what way my approach is different from yours.

    Hopefully we ca figure out the best way and don't have to maintain one-offs like mine

  2. irunatbullets commented on Aug 3, 2026

    @irunatbullets
    OwnerAuthor

    Oh, thank you for the suggestion!

    I do have a one shot type service that backs up any existing niri config and replaces it with the default DMS/niri config.

    I never thought to just popup a terminal window running the sync command when they first login. I'll give it a go.

  3. irunatbullets commented on Aug 3, 2026

    @irunatbullets
    OwnerAuthor

    Hey @sixelasacul does -y select sudo by default rather than whatever the other option is?

  4. irunatbullets commented on Aug 3, 2026

    @irunatbullets
    OwnerAuthor

    I've not had much luck getting this to work the same way as the niri config migration script, so I'll have to try a few other things. It doesn't seem to be able to ask for a password straight after login and if I use -ty to force a terminal it also fails. I might just need to add a delay or something to the service so the compositor is ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions