mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
Rename id in metadata and desktop entry to org.goldendict.GoldenDict
https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-id-generic https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#file-naming
This commit is contained in:
parent
7db077bd03
commit
38d7193f49
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
Loading…
Reference in a new issue