notify-send.py icon indicating copy to clipboard operation
notify-send.py copied to clipboard

is it necessary to hardcode the user name and ID in the script for root?

Open pmav99 opened this issue 3 years ago • 2 comments

In the readme it is mentioned that in order to use the script for root you must hardcode the user name and the user id.

I think it is not really necessary to hardcode them. Is there something wrong with:

user_name=$(id -un)
user_id=$(id -u)
user_group=$(id -g)

echo "${user_name}"
echo "${user_id}"
echo "${user_group}"

pmav99 avatar Jan 30 '21 12:01 pmav99