prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Hardcoded icon path in launcher for GNU/Linux systems
  Hi,
  
  currently the icon path specified in the created _.desktop_ launcher file is set to: 
  _Icon=/usr/share/app-install/icons/electrum.png_ 
  
  (see https://github.com/spesmilo/electrum/blob/bc3013caf0d3d6a35290e9cc9e51125b7d03d14c/electrum.desktop)
  
  This prevents icon theming without editing the launcher file.
  
  I'd like to ask you to change the icon location as well as the icon path line in the launcher according to the freedesktop.org standards.
  
  Please find more info here:
  http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html
  https://github.com/Foggalong/hardcode-fixer/wiki/What,-Why-&-How
  
  ---
  
  According to the above resources standard icon locations are:
  
  _/usr/share/icons/hicolor/[size]/apps/[icon name]_
  _~/.local/share/icons/hicolor/[size]/apps/[icon name]_
  _/usr/share/pixmaps/[icon name]_
  
  The standard icon line in the .desktop launcher is:
  _Icon=[icon name]_      (without full path, without file extension)
  
  for instance
  **Icon=electrum**  
  (for an icon _electrum.svg_ or _electrum.png_ stored in standard location)
  
  Could you please move the icon to one of those locations and adjust the icon path in the .desktop file accordingly?
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `setup.py`
  Content:
  ```
  1 #!/usr/bin/python
  2 
  3 # python setup.py sdist --format=zip,gztar
  4 
  5 from setuptools import setup
  6 import os
  7 import sys
  8 import platform
  9 import imp
  10 
  11 
  12 version = imp.load_source('version', 'lib/version.py')
  13 
  14 if sys.version_info[:3] < (2, 7, 0):
  15     sys.exit("Error: Electrum requires Python version >= 2.7.0...")
  16 
  17 
  18 
  19 data_files = []
  20 if platform.system() == 'Linux' or platform.system() == 'FreeBSD':
  21     usr_share = os.path.join(sys.prefix, "share")
  22     data_files += [
  23         (os.path.join(usr_share, 'applications/'), ['electrum.desktop']),
  24         (os.path.join(usr_share, 'app-install', 'icons/'), ['icons/electrum.png'])
  25     ]
  26 
  27 
  28 setup(
  29     name="Electrum",
  30     version=version.ELECTRUM_VERSION,
  31     install_requires=[
  32         'slowaes>=0.1a1',
  33         'ecdsa>=0.9',
  34         'pbkdf2',
  35         'requests',
  36         'pyasn1-modules',
  37         'pyasn1',
  38         'qrcode',
  39         'protobuf',
  40         'tlslite',
  41         'dnspython',
  42     ],
  43     package_dir={
  44         'electrum': 'lib',
  45         'electrum_gui': 'gui',
  46         'electrum_plugins': 'plugins',
  47     },
  48     packages=['electrum','electrum_gui','electrum_gui.qt','electrum_plugins'],
  49     package_data={
  50         'electrum': [
  51             'wordlist/*.txt',
  52             'locale/*/LC_MESSAGES/electrum.mo',
  53         ],
  54         'electrum_gui': [
  55             "qt/themes/cleanlook/name.cfg",
  56             "qt/themes/cleanlook/style.css",
  57             "qt/themes/sahara/name.cfg",
  58             "qt/themes/sahara/style.css",
  59             "qt/themes/dark/name.cfg",
  60             "qt/themes/dark/style.css",
  61         ]
  62     },
  63     scripts=['electrum'],
  64     data_files=data_files,
  65     description="Lightweight Bitcoin Wallet",
  66     author="Thomas Voegtlin",
  67     author_email="thomasv@electrum.org",
  68     license="GNU GPLv3",
  69     url="https://electrum.org",
  70     long_description="""Lightweight Bitcoin Wallet"""
  71 )
  72
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/setup.py b/setup.py
  --- a/setup.py
  +++ b/setup.py
  @@ -21,7 +21,7 @@
       usr_share = os.path.join(sys.prefix, "share")
       data_files += [
           (os.path.join(usr_share, 'applications/'), ['electrum.desktop']),
  -        (os.path.join(usr_share, 'app-install', 'icons/'), ['icons/electrum.png'])
  +        (os.path.join(usr_share, 'pixmaps/'), ['icons/electrum.png'])
       ]
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -21,7 +21,7 @@\n     usr_share = os.path.join(sys.prefix, \"share\")\n     data_files += [\n         (os.path.join(usr_share, 'applications/'), ['electrum.desktop']),\n-        (os.path.join(usr_share, 'app-install', 'icons/'), ['icons/electrum.png'])\n+        (os.path.join(usr_share, 'pixmaps/'), ['icons/electrum.png'])\n     ]\n", "issue": "Hardcoded icon path in launcher for GNU/Linux systems\nHi,\n\ncurrently the icon path specified in the created _.desktop_ launcher file is set to: \n_Icon=/usr/share/app-install/icons/electrum.png_ \n\n(see https://github.com/spesmilo/electrum/blob/bc3013caf0d3d6a35290e9cc9e51125b7d03d14c/electrum.desktop)\n\nThis prevents icon theming without editing the launcher file.\n\nI'd like to ask you to change the icon location as well as the icon path line in the launcher according to the freedesktop.org standards.\n\nPlease find more info here:\nhttp://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html\nhttps://github.com/Foggalong/hardcode-fixer/wiki/What,-Why-&-How\n\n---\n\nAccording to the above resources standard icon locations are:\n\n_/usr/share/icons/hicolor/[size]/apps/[icon name]_\n_~/.local/share/icons/hicolor/[size]/apps/[icon name]_\n_/usr/share/pixmaps/[icon name]_\n\nThe standard icon line in the .desktop launcher is:\n_Icon=[icon name]_      (without full path, without file extension)\n\nfor instance\n**Icon=electrum**  \n(for an icon _electrum.svg_ or _electrum.png_ stored in standard location)\n\nCould you please move the icon to one of those locations and adjust the icon path in the .desktop file accordingly?\n\n", "before_files": [{"content": "#!/usr/bin/python\n\n# python setup.py sdist --format=zip,gztar\n\nfrom setuptools import setup\nimport os\nimport sys\nimport platform\nimport imp\n\n\nversion = imp.load_source('version', 'lib/version.py')\n\nif sys.version_info[:3] < (2, 7, 0):\n    sys.exit(\"Error: Electrum requires Python version >= 2.7.0...\")\n\n\n\ndata_files = []\nif platform.system() == 'Linux' or platform.system() == 'FreeBSD':\n    usr_share = os.path.join(sys.prefix, \"share\")\n    data_files += [\n        (os.path.join(usr_share, 'applications/'), ['electrum.desktop']),\n        (os.path.join(usr_share, 'app-install', 'icons/'), ['icons/electrum.png'])\n    ]\n\n\nsetup(\n    name=\"Electrum\",\n    version=version.ELECTRUM_VERSION,\n    install_requires=[\n        'slowaes>=0.1a1',\n        'ecdsa>=0.9',\n        'pbkdf2',\n        'requests',\n        'pyasn1-modules',\n        'pyasn1',\n        'qrcode',\n        'protobuf',\n        'tlslite',\n        'dnspython',\n    ],\n    package_dir={\n        'electrum': 'lib',\n        'electrum_gui': 'gui',\n        'electrum_plugins': 'plugins',\n    },\n    packages=['electrum','electrum_gui','electrum_gui.qt','electrum_plugins'],\n    package_data={\n        'electrum': [\n            'wordlist/*.txt',\n            'locale/*/LC_MESSAGES/electrum.mo',\n        ],\n        'electrum_gui': [\n            \"qt/themes/cleanlook/name.cfg\",\n            \"qt/themes/cleanlook/style.css\",\n            \"qt/themes/sahara/name.cfg\",\n            \"qt/themes/sahara/style.css\",\n            \"qt/themes/dark/name.cfg\",\n            \"qt/themes/dark/style.css\",\n        ]\n    },\n    scripts=['electrum'],\n    data_files=data_files,\n    description=\"Lightweight Bitcoin Wallet\",\n    author=\"Thomas Voegtlin\",\n    author_email=\"thomasv@electrum.org\",\n    license=\"GNU GPLv3\",\n    url=\"https://electrum.org\",\n    long_description=\"\"\"Lightweight Bitcoin Wallet\"\"\"\n)\n", "path": "setup.py"}], "after_files": [{"content": "#!/usr/bin/python\n\n# python setup.py sdist --format=zip,gztar\n\nfrom setuptools import setup\nimport os\nimport sys\nimport platform\nimport imp\n\n\nversion = imp.load_source('version', 'lib/version.py')\n\nif sys.version_info[:3] < (2, 7, 0):\n    sys.exit(\"Error: Electrum requires Python version >= 2.7.0...\")\n\n\n\ndata_files = []\nif platform.system() == 'Linux' or platform.system() == 'FreeBSD':\n    usr_share = os.path.join(sys.prefix, \"share\")\n    data_files += [\n        (os.path.join(usr_share, 'applications/'), ['electrum.desktop']),\n        (os.path.join(usr_share, 'pixmaps/'), ['icons/electrum.png'])\n    ]\n\n\nsetup(\n    name=\"Electrum\",\n    version=version.ELECTRUM_VERSION,\n    install_requires=[\n        'slowaes>=0.1a1',\n        'ecdsa>=0.9',\n        'pbkdf2',\n        'requests',\n        'pyasn1-modules',\n        'pyasn1',\n        'qrcode',\n        'protobuf',\n        'tlslite',\n        'dnspython',\n    ],\n    package_dir={\n        'electrum': 'lib',\n        'electrum_gui': 'gui',\n        'electrum_plugins': 'plugins',\n    },\n    packages=['electrum','electrum_gui','electrum_gui.qt','electrum_plugins'],\n    package_data={\n        'electrum': [\n            'wordlist/*.txt',\n            'locale/*/LC_MESSAGES/electrum.mo',\n        ],\n        'electrum_gui': [\n            \"qt/themes/cleanlook/name.cfg\",\n            \"qt/themes/cleanlook/style.css\",\n            \"qt/themes/sahara/name.cfg\",\n            \"qt/themes/sahara/style.css\",\n            \"qt/themes/dark/name.cfg\",\n            \"qt/themes/dark/style.css\",\n        ]\n    },\n    scripts=['electrum'],\n    data_files=data_files,\n    description=\"Lightweight Bitcoin Wallet\",\n    author=\"Thomas Voegtlin\",\n    author_email=\"thomasv@electrum.org\",\n    license=\"GNU GPLv3\",\n    url=\"https://electrum.org\",\n    long_description=\"\"\"Lightweight Bitcoin Wallet\"\"\"\n)\n", "path": "setup.py"}]}