2
24
Fork
You've already forked xsettingsd
6

systemd: Fix ExecReload= of the systemd user service file #33

Merged
derat merged 1 commit from q234rty/xsettingsd:fix-user-service into main 2023年09月29日 18:57:43 +02:00
Contributor
Copy link

${MAINPID} is considered a variable reference by cmake and
would be substituted to empty when installing. Instead of escaping
the dollar sign, simply use $MAINPID instead which does the same
thing in this case and is more concise.

Using @CMAKE_INSTALL_FULL_BINDIR@ breaks when kill(1) is not in the
same directory as the installed binaries, which is very likely when
the cmake installation prefix is e.g. /usr/local. Skip hardcoding
the path to kill(1) and allow systemd to do a PATH lookup instead.

${MAINPID} is considered a variable reference by cmake and would be substituted to empty when installing. Instead of escaping the dollar sign, simply use $MAINPID instead which does the same thing in this case and is more concise. Using @CMAKE_INSTALL_FULL_BINDIR@ breaks when kill(1) is not in the same directory as the installed binaries, which is very likely when the cmake installation prefix is e.g. /usr/local. Skip hardcoding the path to kill(1) and allow systemd to do a PATH lookup instead.
${MAINPID} is considered a variable reference by cmake and
would be substituted to empty when installing. Instead of escaping
the dollar sign, simply use $MAINPID instead which does the same
thing in this case and is more concise.
Using @CMAKE_INSTALL_FULL_BINDIR@ breaks when kill(1) is not in the
same directory as the installed binaries, which is very likely when
the cmake installation prefix is e.g. /usr/local. Skip hardcoding
the path to kill(1) and allow systemd to do a PATH lookup instead.
Owner
Copy link

Thanks!

Thanks!
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
derat/xsettingsd!33
Reference in a new issue
derat/xsettingsd
No description provided.
Delete branch "q234rty/xsettingsd:fix-user-service"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?