Daemons do not have an /run/user/* dir created

Bug #1738197 reported by Gerry Boland
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

I'm working on the Mir-Kiosk snap. It has Mir running as a "daemon: simple". Mir wants an XDG_RUNTIME_DIR directory for its sockets.

Snapd does set the $XDG_RUNTIME_DIR environment variable for it (/run/user/0/snap.mir-kiosk), but I'm not able to create that directory as /run/user/0 has not been created by snapd.

(I'm creating it myself to work around lp:1656340)

Use this snapcraft file for evidence of this bug:

name: daemon-no-xdgruntimedir
version: "0.1"
summary: Daemon has no XDG_RUNTIME_DIR
description: Daemon has no XDG_RUNTIME_DIR
grade: devel
confinement: strict

    command: ls -l /run/user/`id -u`
    daemon: simple

    plugin: nil

You'll see a line like this in the journal:
daemon-no-xdgruntimedir.xdg[4702]: ls: cannot access '/run/user/0': No such file or directory

Gerry Boland (gerboland)
summary: - Daemon's do not have an /run/user/* dir created
+ Daemons do not have an /run/user/* dir created
description: updated
Gerry Boland (gerboland)
description: updated
Gerry Boland (gerboland)
description: updated
description: updated
Changed in snappy:
status: New → Confirmed
Zygmunt Krynicki (zyga)
no longer affects: snappy
Changed in snapd:
status: New → Confirmed
importance: Undecided → Medium
John Lenton (chipaca)
Changed in snapd:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers