Skip to content

Commit

Permalink
HZ
Browse files Browse the repository at this point in the history
  • Loading branch information
viatoriche committed Oct 16, 2010
1 parent eb90a90 commit 1d05e0f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion scripts/noplugin.py
Expand Up @@ -47,7 +47,11 @@ def parse_config():
def main(url, fifo):
domains = parse_config()
domain = get_domain(url)
fh = open(fifo, "w")
try:
fh = open(fifo, "w")
except:
sys.stdout.write(fifo+' can\' be write')
return
if domain in domains:
fh.write('set disable_plugins = 0\n')
else:
Expand Down
6 changes: 5 additions & 1 deletion scripts/noscript.py
Expand Up @@ -47,7 +47,11 @@ def parse_config():
def main(url, fifo):
domains = parse_config()
domain = get_domain(url)
fh = open(fifo, "w")
try:
fh = open(fifo, "w")
except:
sys.stdout.write(fifo+' can\'t be write')
return
if domain in domains:
fh.write('set disable_scripts = 0\n')
else:
Expand Down
2 changes: 1 addition & 1 deletion scripts/set_title.sh
Expand Up @@ -19,6 +19,6 @@ test "x$title" = "x" && {
title='\ ';
}

echo "set cool_title = `cutstr $title 15`" | socat - unix-connect:$socket
echo set cool_title = `cutstr "$title" 15` | socat - unix-connect:$socket


0 comments on commit 1d05e0f

Please sign in to comment.