Sciter : GUI Application with Golang using HTML/CSS

Update : 25-12-2019

This is the words from Sciter's Web site,

Sciter brings a stack of web technologies to desktop UI development. Web designers and developers can reuse their experience and expertise in creating modern looking desktop applications. Various GUI frameworks offer different UI declaration and styling languages, such as QML and XAML (Microsoft WPF). On the contrary, Sciter allows using time proven, robust, and flexible HTML and CSS for GUI definition and GPU accelerated rendering.
Before using sciter I already tried other alternatives but none of them was satisfactory as an example first i tried andlabs/ui libraryi already have written a post on it. You can read it on post gui programming with golang.  But this library is still under construction and has no support for production apps.
Secondly, I go for electron but the problem was my simple calc like the app was of size 150mb. Which is 15mb of go and other was the electron. 
Before some time I found another alternative, s…

Export enviroment variable in linux

For User & Application

There are actully three files from the linux reads the enviroment variable

  1. /etc/enviromet 
  2. ~/.profile :
  3. ~/.bashrc 

If your app depened on the enviroment variable then you have to store that variable inside this files otherwise those variable lost as soon as the terminal exits.

To export enviroment variable permanatly in linux follow this commands :

$ echo export variablename='path/value' >> ~/.profile
This will store the variable in the ~./profile

$ echo export variablename='path/value' >> ~/.bashrc
This will store the variable in the ~./bashrc

Now to make this change working you have to run this commands

$ source ~/.profile 
This will evaluate ~/.profile file

$ source ~/.bashrc
This will evaluate ~/.bashrc file

You can locate this files in you users Home folder

Enviroment variable storage files
bashrc and profile files

If you want to go GUI way you can find this files in your /home/[user] folder

bashrc file
bashrc file

For CronJob

This will not work if you have to use the enviroment variable in the cron job

If you want to set the enviroment variable for cron job. Then you have to define that variable in the crontab as well

$crontab -e

This will open the crontab. Here define the variable in this file as i have defined the GOOGLE_APPLICATION_CREDENTAILS in image
Define Enviroment variable fron cron job
Define Enviroment variable for cron job


Popular posts from this blog

Sciter : GUI Application with Golang using HTML/CSS

setup hyperledger fabric on windows 10

Apache : setup basic auth with apache in windows