You are not logged in.
Pages: 1
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
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
Thanks for the reply, I enter as super user and run git gui
sudo su
git guiLast edited by thamaraiselvam (2017-09-27 08:13:21)
Offline
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
Pages: 1