[gtk-web: 1/4] Adds how to run the Javascript Hello World App



commit de75ee6e91e47bfdb604b383eea3e22ece8995ec
Author: Leandro Ramos <leandroembu gmail com>
Date:   Fri Feb 21 17:01:26 2020 +0000

    Adds how to run the Javascript Hello World App

 collections/_docs/javascript.md | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/collections/_docs/javascript.md b/collections/_docs/javascript.md
index 174eb36..69a235a 100644
--- a/collections/_docs/javascript.md
+++ b/collections/_docs/javascript.md
@@ -46,6 +46,13 @@ app.run([]);
 This code depicts how to use GJS and GTK together for creating a simple
 Hello World application.
 
+### Running the application
+
+You can run the application with a command
+`gjs filename`
+
+You can also use a shebang (like `#!/usr/bin/gjs`) before the code and give permissions to execute the file.
+
 ## GTK Templates in GJS
 
 
[http://www.hadess.net/2014/09/gtk-widget-templates-now-in-javascript.html](http://www.hadess.net/2014/09/gtk-widget-templates-now-in-javascript.html)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]