From 527fc230c5825d9e668630e052c09586b8373d72 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 27 Feb 2024 23:50:11 -0300 Subject: Fix: export FIREJAIL_QUIET and GPG_TTY --- profile.dot.link | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/profile.dot.link b/profile.dot.link index 2a6889d..881fa0b 100644 --- a/profile.dot.link +++ b/profile.dot.link @@ -259,7 +259,7 @@ mkedit() { export GIT_PS1_SHOWDIRTYSTATE="" export GIT_PS1_SHOWUNTRACKEDFILES="" -# enable programmable completion features (you don't need to enable +# Enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile # sources /etc/bash.bashrc). if [ ! -z "$BASH" ]; then @@ -283,6 +283,11 @@ fi # fi #fi +# Firejail configuration +# This my hide important errors, so it's recommended to try running a +# firejailed command with FIREJAIL_QUIET=no to debug. +export FIREJAIL_QUIET="yes" + # Less configuration # See http://seclists.org/fulldisclosure/2014/Nov/74 export LESSSECURE="1" @@ -312,6 +317,13 @@ if [ -x "$HOME/apps/utils-ssh/ssh-agent-loadkeys" ]; then . $HOME/apps/utils-ssh/ssh-agent-loadkeys fi +# Set the proper GnuPG TTY when running on console +# See https://stackoverflow.com/questions/51504367/gpg-agent-forwarding-inappropriate-ioctl-for-device#55032706 +# https://superuser.com/questions/1649997/unable-to-decrypt-from-stdin-public-key-decryption-failed-inappropriate-ioctl +if [ -z "$DISPLAY" ]; then + export GPG_TTY=$(tty) +fi + #if [ -e "$HOME/apps/utils-ssh/ssh-agent-eval" ]; then # $HOME/apps/utils-ssh/ssh-agent-eval #fi -- cgit v1.2.3