parent
bd309cff49
commit
60b595356b
|
@ -17,6 +17,11 @@ data_files = []
|
||||||
|
|
||||||
if platform.system() in ['Linux', 'FreeBSD', 'DragonFly']:
|
if platform.system() in ['Linux', 'FreeBSD', 'DragonFly']:
|
||||||
usr_share = os.path.join(sys.prefix, "share")
|
usr_share = os.path.join(sys.prefix, "share")
|
||||||
|
if not os.access(usr_share, os.W_OK):
|
||||||
|
if 'XDG_DATA_HOME' in os.environ.keys():
|
||||||
|
usr_share = os.environ['$XDG_DATA_HOME']
|
||||||
|
else:
|
||||||
|
usr_share = os.path.expanduser('~/.local/share')
|
||||||
data_files += [
|
data_files += [
|
||||||
(os.path.join(usr_share, 'applications/'), ['electrum.desktop']),
|
(os.path.join(usr_share, 'applications/'), ['electrum.desktop']),
|
||||||
(os.path.join(usr_share, 'pixmaps/'), ['icons/electrum.png'])
|
(os.path.join(usr_share, 'pixmaps/'), ['icons/electrum.png'])
|
||||||
|
|
Loading…
Reference in New Issue