Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#68227 - [xdg-user-dirs] Conditionally run xdg-user-dirs-update.service

Attached to Project: Arch Linux
Opened by tinywrkb (tinywrkb) - Monday, 12 October 2020, 16:32 GMT
Last edited by Doug Newgard (Scimmia) - Monday, 12 October 2020, 16:44 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

It doesn't make a lot of sense to run xdg-user-dirs-update on root login or users dedicated services that still offer ssh login.
AFAIK it's pretty much accepted that personal users are belonging to the `users` group so I suggest the following change

```
diff --git a/trunk/xdg-user-dirs-update.service b/trunk/xdg-user-dirs-update.service
index d8cebe58..773a48d4 100644
--- a/trunk/xdg-user-dirs-update.service
+++ b/trunk/xdg-user-dirs-update.service
@@ -1,6 +1,7 @@
[Unit]
Description=Update XDG user dir configuration
Documentation=man:xdg-user-dirs-update(1)
+ConditionGroup=users

[Service]
Type=oneshot
```
This task depends upon

Closed by  Doug Newgard (Scimmia)
Monday, 12 October 2020, 16:44 GMT
Reason for closing:  Not a bug
Comment by Doug Newgard (Scimmia) - Monday, 12 October 2020, 16:36 GMT
"AFAIK it's pretty much accepted that personal users are belonging to the `users` group so I suggest the following change"

No idea where you got that, but it's not true in any way.
Comment by Doug Newgard (Scimmia) - Monday, 12 October 2020, 16:44 GMT
This is also a user service that you have to specifically enable for the user you want to run it with. The entire premise here is bad.

Loading...