install gnome menu in setup
This commit is contained in:
parent
4a9f0041fb
commit
b66f9f07ea
13
setup.py
13
setup.py
|
@ -32,3 +32,16 @@ setup(name = "Electrum",
|
||||||
url = "http://ecdsa/electrum",
|
url = "http://ecdsa/electrum",
|
||||||
long_description = """Lightweight Bitcoin Wallet"""
|
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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue