export SWT_GTK3=0 on terminal, does it effect your system?
If the only thing you did was running export SWT_GTK3=0
then you did nothing permanent. What the command does is to set an environment variable SWT_GTK3
and set its value to 0 for that terminal session only. If you close the terminal window and open a new one it will be gone or reset.
If you want to unset it in the current terminal window you can also do: unset env SWT_GTK3
.
If you want to see the current value of an env. variable: echo $SWT_GTK3
or for example to see your current PATH variable echo $PATH
.
Related videos on Youtube
Blaze Tama
Updated on September 18, 2022Comments
-
Blaze Tama over 1 year
This question is related to my other question : Full dark theme for eclipse Luna in Ubuntu 14.04
So, i should run
export SWT_GTK3=0
on ash
script for eclipse, but i mistakenly run it from my ubuntu'sterminal
.I dont feel something changed for now, but i would like to make sure my system will be OK since i will need it in the near future.
Does running
export SWT_GTK3=0
dangerous?What does it do?
How to reset
SWT_GTK3
to its default value?Thanks a lot for your time.
-
tigerjack over 9 yearsThis, except that it sets its value to 0, not 3
-
Blaze Tama over 9 yearsThanks a lot.@tigerjack89 Thanks, what do you mean? So if i run export SWT_GTK3=0, it will be permanent?
-
tigerjack over 9 years@BlazeTama no, I just pointed out that the value of the variables
SWT_GTK3
is actually 0, not 3 as suggested by Hami. Also, the export is not permanent: it marks a variable as "to be exported", so all the child programs of the parent program can see that environment variable. In your case, it is visible only to eclipse if you run it in the same shell. Indeed, if you runecho $SWT_GTK
in the same shell where you execute theexport
, it returns 0; if you open another shell and type the same command, it returns an empty line. -
Hami Torun over 9 years@tigerjack89 oops, thanks for the correction. And Blaze_Tama no it will not be permanent, I just typed 3 instead of 0, the rest is correct (I hope :) ).
-
Blaze Tama over 9 years@tigerjack89 Just to clarify, so if i run export SWT_GTK3=0 in the terminal, it means the terminal is the shell, so if i exit the terminal, the export will be no more?
-
tigerjack over 9 yearsyes, the export will be deleted. Also, take a look at these links for a detailed difference between shell and terminal askubuntu.com/questions/111144/are-terminal-and-shell-the-same unix.stackexchange.com/questions/4126/…