Skip to content

Fix for fish and gnome-shell gkr-pam: unable to locate daemon control file #1

Open

Description

@igo95862

I saw you linked an bug report on Arch Wiki fish shell with an issues between the bashrc fish launch script and gnome shell.

I debugged it a little bit and came up with the fix:

if [[ $(ps --no-header --pid=$PPID --format=cmd) != "fish" && -z ${BASH_EXECUTION_STRING} ]]
then
	exec fish
fi

For some reason gnome shell launches the bash with -c commands and manually sources bashrc. BASH_EXECUTION_STRING will indicate that bash was launched with -c arguments.

Activity

  1. igo95862 commented on Aug 3, 2021

    @igo95862
    Author

    I believe this is a Fedora problem. I never had an issue with this on Arch even though I have been running GNOME for quite some time.

    Might be different PAM configuration as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions