summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2019-03-12 11:03:32 +1030
committerDaniel Jones <admin@danieljon.es>2019-03-12 11:03:32 +1030
commitc8f409de751a8a9b8e7d33c81c86faf70a542b5f (patch)
tree1363ca1d99d4fd607a3f05067df144ab91d6c823
parentbd2fad50bb43b39b5e11209a2e69f964fba2b665 (diff)
downloadurlopener-c8f409de751a8a9b8e7d33c81c86faf70a542b5f.tar.gz
urlopener-c8f409de751a8a9b8e7d33c81c86faf70a542b5f.zip
some comments
-rw-r--r--urlopen.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/urlopen.c b/urlopen.c
index 97463cd..7b76428 100644
--- a/urlopen.c
+++ b/urlopen.c
@@ -31,6 +31,10 @@
char *programs[][2] =
{
+ /*
+ * the file extensions and program to associate with them
+ * separate extensions using ','
+ */
{"default", /* this is the default program */ "/usr/bin/qutebrowser"},
{"jpg,jpeg,png", "/usr/bin/feh"},
{"gif,gifv,webm,mp4,mp3,wav,flac", "/usr/bin/mpv --loop --force-window=yes"},
@@ -80,7 +84,7 @@ getext(char *url)
{
/*
* check if the extension of the url (if exists) is in our array
- * if it is, return the index on the array, otherwise 0
+ * if it is, return the index in the array, otherwise 0
*/
int ret = 0;
char *p = NULL;