mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 20:33:08 +00:00
__fish_config_interactive: warn users that fishd is going away
Work on #1730
This commit is contained in:
parent
c10aab77da
commit
ad61c3f0d6
1 changed files with 12 additions and 0 deletions
|
@ -119,6 +119,18 @@ function __fish_config_interactive -d "Initializations that should be performed
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
# Warn upgrading users that fishd has gone away
|
||||
# https://github.com/fish-shell/fish-shell/issues/1730
|
||||
set -l __fishd_socket_path
|
||||
if set -q XDG_RUNTIME_DIR
|
||||
set __fishd_socket_path "$XDG_RUNTIME_DIR/fishd.socket"
|
||||
else
|
||||
set __fishd_socket_path "/tmp/fish.$USER/fishd.socket"
|
||||
end
|
||||
if test -S "$__fishd_socket_path"
|
||||
printf (_ "One or more instances of an old version of fish is still running.\nUniversal variables will not be shared across instances and changes may be lost.\nAll running instances of old versions of fish should be restarted.\n")
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue