commit b66f9f07ea8134614d1ff885a37b66c30ee9e7b7 parent 4a9f0041fb3b126d9aab090e4452969c720a8fb3 Author: thomasv <thomasv@gitorious> Date: Fri, 18 May 2012 18:03:13 +0200 install gnome menu in setup Diffstat:
M | setup.py | | | 13 | +++++++++++++ |
1 file changed, 13 insertions(+), 0 deletions(-)
diff --git a/setup.py b/setup.py @@ -32,3 +32,16 @@ setup(name = "Electrum", url = "http://ecdsa/electrum", long_description = """Lightweight Bitcoin Wallet""" ) + +if __name__ == '__main__': + import sys,os + if len(sys.argv)>1 and sys.argv[1]=='install': + cmd = "sudo desktop-file-install electrum.desktop" + try: + print cmd + os.system(cmd) + except: + pass + + +