From ded803fcfa2f09716ee32fd215dcaac4466c8158 Mon Sep 17 00:00:00 2001 From: Papoteur Date: Tue, 5 Feb 2019 19:51:15 +0100 Subject: Install application icon --- qml/mageiawelcome.py | 2 +- setup.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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')), -- cgit v1.2.1