Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"No protocol specified" after su -c vim
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Tue Aug 26, 2014 10:31 am    Post subject: "No protocol specified" after su -c vim Reply with quote

Any time I use vim from xterm or urxvt with
Code:
su -c vim
after quit, I receive three lines
Code:
No protocol specified
No protocol specified
No protocol specified
Could someone please tell me where these lines come from?
Back to top
View user's profile Send private message
kikko
Apprentice
Apprentice


Joined: 29 Apr 2014
Posts: 276
Location: Milan, IT

PostPosted: Tue Sep 02, 2014 8:51 am    Post subject: Reply with quote

Hi charles17
has your vim the "X" USE flag enabled? with this flag enabled, vim tries to access your X clipboard, failing when you run it as root (with that message)

If this is your case, you can try issuing
Code:
xhost +local:
as your normal user, in order to enable local programs to access your X server
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum