Closed c02y closed 4 years ago
@c02y can you paste the output of echo $DISPLAY
? Thanks!
$ echo $DISPLAY
:0
@c02y are you using KDE?
Yes.
@c02y Just installed Tumbleweed with KDE and cannot reproduce. What is the result of
echo $XAUTHORITY
cat $XAUTHORITY
?
@c02y can you try what is suggested in this answer? https://unix.stackexchange.com/a/429809
It is not working.
And I tried all the answers in that post, none of them works.
That is strange, and I cannot reproduce the problem. Do you have anything unusual in your setup?
Unusual? I use the same fish configurations in multiple machines, other machines work fine, but the machine I mentioned in the top of this thread doesn't work. It is weird.
I meant unusual in the machine itself 😄 like for example, a remote desktop or streaming display something like that.
Could you try xdotool as described in this answer and see if it works? https://superuser.com/a/615946
>> xdotool getwindowfocus getwindowname
No protocol specified
chz : tmux — Yakuake
Without loading done.fish file.
Are you inside a tmux session? Have you tried outside?
Yes, but I tried it without tmux session running, the same result.
After every fish prompt, there will be a line of error message:
No protocol specified
Another outout:
>> xdotool getwindowfocus getwindowname
No protocol specified
fish /home/chz — Konsole
If I load the done.fish in my config.fish and running fish inside terminal like Ctrl-Alt-F1, the error message message is gone.
This issue seems stale. Would you be OK with closing it?
@c02y can you still reproduce the problem?
No, the problems is gone, but I'm using another environment now: Manjaro fish-shell: v3.0.2
done
works fine in this environment, and I'm still using the old version of done
, v1.8.1, this reminds me of updating it.
Thanks for the help.
https://github.com/fisherman/done/blob/d07eca1cde37303cf63ca8ab4fbb951d883a3f81/conf.d/done.fish#L30
I sourced done.fish in my config.fish, and after every fish prompt, there will be a line of error message:
and found the issue is caused by the xprop line:
but I'm not familiar with the xprop, after googling a while but didn't get the solution.
FYI: openSUSE Tumbleweed fish-shell v2.7.1