You are not logged in.

#1 2017-09-27 07:53:26

thamaraiselvam
Member
From: Chennai
Registered: 2016-10-13
Posts: 8
Website

git gui does not work on root

git gui does not work on root it throws following error

No protocol specified
No protocol specified
application-specific initialization failed: couldn't connect to display ":0"
No protocol specified
No protocol specified
Error in startup script: invalid command name "tk_messageBox"
    while executing
"tk_messageBox  -icon error  -type ok  -title "git-gui: fatal error"  -message $err"
    invoked from within
"if {[catch {package require Tcl 8.4} err]
 || [catch {package require Tk  8.4} err]
} {
	catch {wm withdraw .}
	tk_messageBox \
		-icon error \
		-typ..."
    (file "/usr/lib/git-core/git-gui" line 34)

I searched and could not find the solution.

Last edited by thamaraiselvam (2017-09-27 08:03:35)

Offline

#2 2017-09-27 08:00:21

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,721
Website

Re: git gui does not work on root

Why are you trying to run it as root? How are you attempting to run it as the root user?

Please edit your post to use code tags.

Mod note: moving to NC.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2017-09-27 08:04:38

thamaraiselvam
Member
From: Chennai
Registered: 2016-10-13
Posts: 8
Website

Re: git gui does not work on root

Thanks for the reply, I enter  as super user  and run git gui

sudo su
git gui

Last edited by thamaraiselvam (2017-09-27 08:13:21)

Offline

#4 2017-09-27 09:06:40

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: git gui does not work on root

That's not going to work, use the tools that are specifically designed to allow this - like gksudo and/or kdesu, they will properly set the environment for graphical applications.

Still, why do you want to do this? It is highly discouraged to run GUI applications with full root privileges and usually you'd have source code that you are checking out in a directory accessible for your user.

Offline

Board footer

Powered by FluxBB