commit 539d68e7d72be1d301913b72e8e21269d3ced29b
parent ed8dedfebbde93e024143c87f8043f976fe5390c
Author: thomasv <thomasv@gitorious>
Date: Fri, 18 May 2012 18:22:57 +0200
install electrum.desktop as data file
Diffstat:
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/setup.py b/setup.py
@@ -11,6 +11,7 @@ setup(name = "Electrum",
package_dir = {'electrum': 'lib'},
scripts= ['electrum'],
data_files=[
+ ('/usr/share/applications/',['electrum.desktop']),
('/usr/share/app-install/icons/',['electrum.png']),
('/usr/share/locale/de/LC_MESSAGES', ['locale/de/LC_MESSAGES/electrum.mo']),
('/usr/share/locale/fr/LC_MESSAGES', ['locale/fr/LC_MESSAGES/electrum.mo']),
@@ -33,15 +34,4 @@ setup(name = "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
-
-