proletarius101 2021-02-25 18:31:18 +08:00
parent 7db077bd03
commit 38d7193f49
4 changed files with 9 additions and 6 deletions

View file

@ -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

View file

@ -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

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2019 Vitaly Zaitsev <vitaly@easycoding.org> -->
<component type="desktop">
<id>org.goldendict.desktop</id>
<id>org.goldendict.GoldenDict</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0-or-later</project_license>
<name>GoldenDict</name>
@ -34,6 +34,9 @@
</screenshots>
<url type="homepage">http://goldendict.org</url>
<update_contact>https://github.com/goldendict/goldendict</update_contact>
<launchable type="desktop-id">goldendict.desktop</launchable>
<launchable type="desktop-id">org.goldendict.GoldenDict.desktop</launchable>
<content_rating type="oars-1.0" />
<provides>
<id>org.goldendict.desktop</id>
</provides>
</component>