summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2019-02-05 19:51:15 +0100
committerPapoteur <papoteur@mageia.org>2019-02-05 19:51:15 +0100
commitded803fcfa2f09716ee32fd215dcaac4466c8158 (patch)
treef70a69172b45a995e09c8f918a6c190decc292f3
parent39da9160e12dc30ad1c37efa5d7d84977bb7b146 (diff)
downloadmageiawelcome-ded803fcfa2f09716ee32fd215dcaac4466c8158.tar
mageiawelcome-ded803fcfa2f09716ee32fd215dcaac4466c8158.tar.gz
mageiawelcome-ded803fcfa2f09716ee32fd215dcaac4466c8158.tar.bz2
mageiawelcome-ded803fcfa2f09716ee32fd215dcaac4466c8158.tar.xz
mageiawelcome-ded803fcfa2f09716ee32fd215dcaac4466c8158.zip
Install application icon
-rw-r--r--qml/mageiawelcome.py2
-rw-r--r--setup.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/qml/mageiawelcome.py b/qml/mageiawelcome.py
index 3931e99..f19a49f 100644
--- a/qml/mageiawelcome.py
+++ b/qml/mageiawelcome.py
@@ -164,7 +164,7 @@ if __name__ == '__main__':
view = QQuickView()
view.setResizeMode(QQuickView.SizeRootObjectToView)
view.setTitle(app.translate('app',"Welcome to Mageia"))
- app.setWindowIcon(QIcon("icons/32x32/apps/mageiawelcome.png"))
+ app.setWindowIcon(QIcon("/usr/share/mageiawelcome/icons/32x32/apps/mageiawelcome.png"))
screen = app.primaryScreen()
defaultHeight = 700 * screen.devicePixelRatio()
defaultWidth = 1000 * screen.devicePixelRatio()
diff --git a/setup.py b/setup.py
index c1b3cbd..3cbd7af 100644
--- a/setup.py
+++ b/setup.py
@@ -15,6 +15,7 @@ class BuildQm(build):
data_files = [("bin",["usr/bin/mageiawelcome","usr/bin/mageiawelcome-launcher"]),
("share/applications/", ["usr/share/applications/mageiawelcome.desktop"]),
+ ("share/icons/32x32/apps/", ["qml/icons/32x32/apps/mageiawelcome.png"]),
("share/icons/hicolor/scalable/apps/", ["qml/icons/scalable/apps/mageiawelcome.svg"]),
("share/mageiawelcome/",glob.glob('qml/*.py')),
("share/mageiawelcome/",glob.glob('qml/*.qml')),