Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Input methods - again!



On 2023年10月05日 02:01, the silly Stephen J. Turnbull claimed to have said:
> .zprofile is only read in login shells, .zshrc in non-login
> interactive shells IIRC.  I would guess this is related to how the two
> GUIs treat session management?

Rather, .zshrc gets initiated every time you open a new shell, TTY, or
SSH session, or whatever runs zsh in it.
However, all variables sre being set in that one session shell session
only.
.zprofile (at least under X11) initializes session-wide, regardless of
the shell or program you're in.

Which is why I typically have to put the following in .zprofile to
prevent a graphical PINENTRY from spawning whenever I'm in an SSH session,
and to make sure that Fcitx only gets initialized when I'm right at my
desktop in a graphical mode:

if [ -z "${SSH_CLIENT}" ] && [ -z "${SSH_TTY}" ]; then
  export DefaultImModule=fcitx
  export GTK_IM_MODULE=fcitx
  export QT_IM_MODULE=fcitx
  export XMODIFIERS=@im=fcitx
else
  export DBUS_SESSION_BUS_ADDRESS=/dev/null
  export PINENTRY_USER_DATA=USE_CURSES
fi

This is taken from my desktop, not the PinePhone.

-- 
lain.

Did you know that?
90% of all emails sent on a daily basis are being sent in plain text, and it's super easy to intercept emails as they flow over the internet?
Never send passwords, tokens, personal information, or other volunerable information without proper PGP encryption!

If you're writing your emails unencrypted, please consider sending PGP encrypted emails for security reasons.
You can find my PGP public key at: https://fair.moe/lain.asc

Every good email client is able to send encrypted emails.
If yours can't, then you should consider switching to a secure email client, because yours just sucks.

My recommendations are Claws Mail or NeoMutt.
For instructions on how to encrypt your emails:
https://unixsheikh.com/tutorials/gnupg-tutorial.html

Attachment: signature.asc
Description: PGP signature


Home | Main Index | Thread Index