Skip to content

Commit

Permalink
nixos/stirling-pdf: daemon users do not have a dbus session
Browse files Browse the repository at this point in the history
Before any invocation to LibreOffice ended up in trying to mkdir
/run/user/<uid>/libreoffice-dbus. Since the user is not a logged one and
the user not a lingering one, it always failed with a permission denied
error.

With this change, LibreOffice does execute and does not complain about
missing /proc nor permission denied.
  • Loading branch information
daedric committed Feb 9, 2025
1 parent 0d5dab8 commit 97fca2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/modules/services/web-apps/stirling-pdf.nix
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ in
# See https://github.com/Stirling-Tools/Stirling-PDF/blob/main/src/main/java/stirling/software/SPDF/config/ExternalAppDepConfig.java#L42
which
unpaper
libreoffice
(libreoffice.override { dbusVerify = false; })
qpdf
ocrmypdf
poppler_utils
Expand Down Expand Up @@ -112,7 +112,7 @@ in
NoNewPrivileges = true;
PrivateDevices = true;
PrivateUsers = true;
ProcSubset = "pid";
ProcSubset = "all"; # for libreoffice to work
ProtectClock = true;
ProtectControlGroups = true;
ProtectHome = true;
Expand Down

0 comments on commit 97fca2a

Please sign in to comment.