On Fri, Jun 28, 2024 at 1:55 PM Go Canes <letsgonhlcanes0@xxxxxxxxx> wrote: > On Fri, Jun 28, 2024 at 3:20 PM Tom Horsley <horsley1953@xxxxxxxxx> wrote: > > > > I've always set my emacs alternatives to lucid emacs. Today I > > did a big dnf update, rebooted to get new kernel, and then got > > an error when I started emacs about the "pure GTK" version > > not operating correctly under X11 (one of the reasons I use > > lucid). > > > > Why did my alternatives config setting revert? > > I have my "alternatives" set to emacs-nox, but updates frequently > change it back to emacs. Too lazy to figure out why.... $ rpm -q --scripts emacs preuninstall scriptlet (using /bin/sh): /usr/sbin/alternatives --remove emacs /usr/bin/emacs-29.4 || : posttrans scriptlet (using /bin/sh): /usr/sbin/alternatives --install /usr/bin/emacs emacs /usr/bin/emacs-29.4 80 || : I think that preuninstall scriptlet should instead be: if [ $1 = 0 ]; then /usr/sbin/alternatives --remove emacs /usr/bin/emacs-29.4 || : fi See https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_syntax. If that sounds right, a bug report is in order. -- Jerry James http://www.jamezone.org/ -- _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue