Closed adombeck closed 2 weeks ago
reviewer: You can try the new template by creating an issue in my authd fork: https://github.com/adombeck/authd/issues/new/choose
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 84.79%. Comparing base (
17530d2
) to head (a64a3db
). Report is 8 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
However over SSH without a graphical session, the script fails with the following error
Ah, good catch! I'm not sure what's the best way to handle that. Maybe check if $DISPLAY
is set and if it's not, use $EDITOR
to open the file?
However over SSH without a graphical session, the script fails with the following error
Ah, good catch! I'm not sure what's the best way to handle that. Maybe check if
$DISPLAY
is set and if it's not, use$EDITOR
to open the file?
You could replace if command -v xdg-open > /dev/null; then xdg-open "$TMPFILE"; else $EDITOR "$TMPFILE"; fi
by editor
It'll open nano by default but it shouldn't be a problem since the command has to be executed from a terminal.
You could replace if command -v xdg-open > /dev/null; then xdg-open "$TMPFILE"; else $EDITOR "$TMPFILE"; fi by editor
I think that using a graphical editor when in a graphical session is better UX. We could replace $EDITOR
with editor
though.
With the change I just pushed, it now uses xdg-open
only if $DESKTOP
is set, else it uses $EDITOR
if set, else it uses editor
.
With the change I just pushed, it now uses
xdg-open
only if$DESKTOP
is set, else it uses$EDITOR
if set, else it useseditor
.
Thanks for this update, it works well. More hint that we need a script to collect these data :)
I noticed that xdg-open && rm
caused a race, because xdg-open
returns immediately after spawning the process, so sometimes the file was removed before it was being opened by the editor. I pushed a fixup commit which omits the rm
, so that the tmpfile is now kept in /tmp. IMO that's not too bad, but another reason to replace the command with a script soon.
Adds a comment to show all relevant system information and makes various minor improvements. See commit messages for details.
UDENG-4099