Skip to content

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

@igo95862

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.

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