timeshift: explain the timeshift-launcher string substitution

+2
+2
pkgs/applications/backup/timeshift/unwrapped.nix
··· 35 substituteInPlace ./src/Utility/IconManager.vala \ 36 --replace-fail "/usr/share" "$out/share" 37 38 substituteInPlace ./src/timeshift-launcher \ 39 --replace-fail "app_command='timeshift-gtk'" ${lib.escapeShellArg ''app_command="$(realpath "$(dirname "$0")")/timeshift-gtk"''} \ 40 --replace-fail ${lib.escapeShellArg ''pkexec ''${app_command}''} ${lib.escapeShellArg ''pkexec env DISPLAY="$DISPLAY" XAUTHORITY="$XAUTHORITY" "''${app_command}"''}
··· 35 substituteInPlace ./src/Utility/IconManager.vala \ 36 --replace-fail "/usr/share" "$out/share" 37 38 + # Substitute app_command to look for the `timeshift-gtk` in the same directory as the executed `timeshift-launcher`. 39 + # Substitute the `pkexec ...` as a hack to run a GUI application like Timeshift as root without setting up the corresponding pkexec policy. 40 substituteInPlace ./src/timeshift-launcher \ 41 --replace-fail "app_command='timeshift-gtk'" ${lib.escapeShellArg ''app_command="$(realpath "$(dirname "$0")")/timeshift-gtk"''} \ 42 --replace-fail ${lib.escapeShellArg ''pkexec ''${app_command}''} ${lib.escapeShellArg ''pkexec env DISPLAY="$DISPLAY" XAUTHORITY="$XAUTHORITY" "''${app_command}"''}