diff --git a/goldendict.pro b/goldendict.pro index 16a20220..c55b5ff9 100644 --- a/goldendict.pro +++ b/goldendict.pro @@ -186,9 +186,9 @@ unix:!mac { desktops.path = $$PREFIX/share/applications desktops.files = redist/*.desktop INSTALLS += desktops - appdata.path = $$PREFIX/share/metainfo - appdata.files = redist/*.appdata.xml - INSTALLS += appdata + metainfo.path = $$PREFIX/share/metainfo + metainfo.files = redist/*.metainfo.xml + INSTALLS += metainfo helps.path = $$PREFIX/share/goldendict/help/ helps.files = help/*.qch INSTALLS += helps diff --git a/mainwindow.cc b/mainwindow.cc index 0bc4910d..d46f51e4 100644 --- a/mainwindow.cc +++ b/mainwindow.cc @@ -3396,7 +3396,7 @@ void MainWindow::setAutostart(bool autostart) return; // Nothing to do. if( autostart ) { - const QString sourcePath = Config::getProgramDataDir() + "../applications/goldendict.desktop"; + const QString sourcePath = Config::getProgramDataDir() + "../applications/org.goldendict.GoldenDict.desktop"; QFile::copy( sourcePath, destinationPath ); } else diff --git a/redist/goldendict.desktop b/redist/org.goldendict.GoldenDict.desktop similarity index 100% rename from redist/goldendict.desktop rename to redist/org.goldendict.GoldenDict.desktop diff --git a/redist/goldendict.appdata.xml b/redist/org.goldendict.GoldenDict.metainfo.xml similarity index 89% rename from redist/goldendict.appdata.xml rename to redist/org.goldendict.GoldenDict.metainfo.xml index 490ff4fb..356cf438 100644 --- a/redist/goldendict.appdata.xml +++ b/redist/org.goldendict.GoldenDict.metainfo.xml @@ -1,7 +1,7 @@ - org.goldendict.desktop + org.goldendict.GoldenDict CC0-1.0 GPL-3.0-or-later GoldenDict @@ -34,6 +34,9 @@ http://goldendict.org https://github.com/goldendict/goldendict - goldendict.desktop + org.goldendict.GoldenDict.desktop + + org.goldendict.desktop +