]> git.armaanb.net Git - chorizo.git/commitdiff
Move user scripts
authorPeter Hofmann <scm@uninformativ.de>
Sat, 14 Mar 2020 10:36:34 +0000 (11:36 +0100)
committerPeter Hofmann <scm@uninformativ.de>
Sat, 14 Mar 2020 10:36:34 +0000 (11:36 +0100)
This is a more meaningful path.

CHANGES
browser.c
man1/lariza.usage.1

diff --git a/CHANGES b/CHANGES
index 890ea44307d2980873cf805b959069769649b27a..8dabf2ecc5664ec8d92dad61638369d6e6ca3b26 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -10,7 +10,7 @@ next
 
   [Added]
   - User-supplied JavaScript files can be put into
-    ~/.config/lariza/scripts. "hints.js" is one such script, it's
+    ~/.config/lariza/user-scripts. "hints.js" is one such script, it's
     bundled with the main application, but must be activated manually.
 
 v19.05  2019-05-05
index 120078bdd48adfbbbf5b7a7a4ca56e0b4f71cbff..11e34da963ff17c7876f3f3df08a918cf9661183 100644 (file)
--- a/browser.c
+++ b/browser.c
@@ -1131,7 +1131,7 @@ run_user_scripts(WebKitWebView *web_view)
     const gchar *entry = NULL;
     GDir *scriptdir = NULL;
 
-    base = g_build_filename(g_get_user_config_dir(), __NAME__, "scripts", NULL);
+    base = g_build_filename(g_get_user_config_dir(), __NAME__, "user-scripts", NULL);
     scriptdir = g_dir_open(base, 0, NULL);
     if (scriptdir != NULL)
     {
index 5e34a2065b70261d8ae5e08ceaf9c7697be9c64a..5cb5ab1783bcb6392f2d67da75f0c9e27165749f 100644 (file)
@@ -126,9 +126,9 @@ Lines starting with \fB#\fP are ignored.
 .\" --------------------------------------------------------------------
 .SH "USER-SUPPLIED JAVASCRIPT FILES"
 After a page has been successfully loaded, the directory
-\fI~/.config\:/lariza\:/scripts\fP will be scanned and each file in it
-ending with \fB.js\fP will be run as a JavaScript file in the context of
-said page.
+\fI~/.config\:/lariza\:/user-scripts\fP will be scanned and each file in
+it ending with \fB.js\fP will be run as a JavaScript file in the context
+of said page.
 .P
 During development, you will most likely want to run \fBlariza\fP with
 $\fBLARIZA_ENABLE_CONSOLE_TO_STDOUT\fP enabled.