diff --git a/README.asciidoc b/README.asciidoc index 879463ed4..0e8464e23 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -42,9 +42,8 @@ Running qutebrowser After installing the <>, you have these options: -* Run qutebrowser directly via `python3 -m qutebrowser`. Note executing -qutebrowser.py directly as script won't work, as Python won't recognize the -module. +* Run qutebrowser directly via `python3 qutebrowser.py` in the toplevel +directory. * Run `python3 setup.py install` to install qutebrowser, then call `qutebrowser`. diff --git a/qutebrowser.py b/qutebrowser.py new file mode 100755 index 000000000..1c4688346 --- /dev/null +++ b/qutebrowser.py @@ -0,0 +1,29 @@ +#!/usr/bin/python + +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + +# Copyright 2014 Florian Bruhin (The Compiler) +# +# This file is part of qutebrowser. +# +# qutebrowser is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# qutebrowser is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with qutebrowser. If not, see . + +"""Simple launcher for qutebrowser.""" + +import qutebrowser.qutebrowser +import sys + + +if __name__ == '__main__': + sys.exit(qutebrowser.qutebrowser.main())