git - gitk "package require Tk" -


on starting gitk cli on ubuntu m getting error

vihaan@trojan :~$ gitk application-specific initialization failed: unknown color name "s_base3" error in startup script: unknown color name "s_base3"     (database entry "-background" in widget ".")     invoked within "load /usr/lib/x86_64-linux-gnu/libtk8.6.so tk"     ("package ifneeded tk 8.6.1" script)     invoked within "package require tk"     (file "/usr/bin/gitk" line 10) 

how fix ?

this pretty tricky, old school x11 stuff.

your xrdb contains specification background colour gitk main window s_base3, nothing knows how parse colour name, neither tk nor xserver, means error during toplevel widget creation when gitk application trying create main window (it's trying parse xrmdb entry , doing software equivalent of exclaiming “wat!?”).

the xrdb way of specifying defaults various attributes of gui applications. 1 of attributes background colour. in case, you've got entry this:

gitk.background: s_base3 

or maybe:

*.background: s_base3 

the xrdb maintained in property of x root window (resource_manager) , global across applications. default contents typically initialised file in home directory (conventionally ~/.xresources) set desktop environment too. working out what's causing problem can tricky many programs can write property.

the xrdb program can used edit resource database. example, can use:

xrdb -query >xprops.txt 

to list current contents xprops.txt. edit file sensible values in, , use:

xrdb -load <xprops.txt 

to install new values.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -