Rename .desktop file names to reverse DNS convention.

This commit is contained in:
Roman Telezhynskyi 2023-01-13 15:57:27 +02:00
parent 1b2143e026
commit 56850aef55
10 changed files with 11 additions and 11 deletions

View File

@ -66,6 +66,6 @@ script:
# bundle icu's data # bundle icu's data
- mkdir -p $BUILD_APPDIR/usr/share/icu - mkdir -p $BUILD_APPDIR/usr/share/icu
- cp /usr/share/icu/*/icudt*.dat $BUILD_APPDIR/usr/share/icu/ - cp /usr/share/icu/*/icudt*.dat $BUILD_APPDIR/usr/share/icu/
- linuxdeployqt $BUILD_APPDIR/usr/share/applications/valentina.desktop -bundle-non-qt-libs -verbose=2 -no-strip - linuxdeployqt $BUILD_APPDIR/usr/share/applications/ua.com.smart-pattern.valentina.desktop -bundle-non-qt-libs -verbose=2 -no-strip
# Show what we have done # Show what we have done
- find $BUILD_APPDIR/ - find $BUILD_APPDIR/

View File

@ -216,9 +216,9 @@ fi
%dir %{_datadir}/mime/ %dir %{_datadir}/mime/
%dir %{_datadir}/mime/packages/ %dir %{_datadir}/mime/packages/
%{_datadir}/mime/packages/%{name}.xml %{_datadir}/mime/packages/%{name}.xml
%{_datadir}/applications/%{name}.desktop %{_datadir}/applications/ua.com.smart-pattern.valentina.desktop
%{_datadir}/applications/tape.desktop %{_datadir}/applications/ua.com.smart-pattern.tape.desktop
%{_datadir}/applications/puzzle.desktop %{_datadir}/applications/ua.com.smart-pattern.puzzle.desktop
%{_datadir}/icons/hicolor %{_datadir}/icons/hicolor

View File

@ -25,7 +25,7 @@ VApp {
name: "freedesktop" name: "freedesktop"
prefix: FileInfo.joinPaths(project.sourceDirectory, "dist", FileInfo.pathSeparator()) prefix: FileInfo.joinPaths(project.sourceDirectory, "dist", FileInfo.pathSeparator())
files: [ files: [
product.targetName + ".desktop" "ua.com.smart-pattern." + product.targetName + ".desktop"
] ]
} }

View File

@ -72,7 +72,7 @@ auto main(int argc, char *argv[]) -> int
app.InitOptions(); app.InitOptions();
#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0) #if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
app.setDesktopFileName("puzzle.desktop"); VPApplication::setDesktopFileName(QStringLiteral("ua.com.smart-pattern.puzzle.desktop"));
#endif #endif
QTimer::singleShot(0, &app, &VPApplication::ProcessCMD); QTimer::singleShot(0, &app, &VPApplication::ProcessCMD);

View File

@ -69,7 +69,7 @@ auto main(int argc, char *argv[]) -> int
app.InitOptions(); app.InitOptions();
#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0) #if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
app.setDesktopFileName("tape.desktop"); MApplication::setDesktopFileName(QStringLiteral("ua.com.smart-pattern.tape.desktop"));
#endif #endif
QTimer::singleShot(0, &app, &MApplication::ProcessCMD); QTimer::singleShot(0, &app, &MApplication::ProcessCMD);

View File

@ -81,7 +81,7 @@ auto main(int argc, char *argv[]) -> int
app.InitOptions(); app.InitOptions();
#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0) #if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
app.setDesktopFileName("valentina.desktop"); VApplication::setDesktopFileName(QStringLiteral("ua.com.smart-pattern.valentina.desktop"));
#endif #endif
if (VApplication::IsGUIMode() && VAbstractApplication::VApp()->Settings()->IsAutomaticallyCheckUpdates()) if (VApplication::IsGUIMode() && VAbstractApplication::VApp()->Settings()->IsAutomaticallyCheckUpdates())

View File

@ -154,9 +154,9 @@ unix{
# .desktop file # .desktop file
desktop.path = $$DATADIR/applications/ desktop.path = $$DATADIR/applications/
desktop.files += ../../../dist/$${TARGET}.desktop \ desktop.files += ../../../dist/ua.com.smart-pattern.$${TARGET}.desktop \
desktop.files += ../../../dist/tape.desktop \ desktop.files += ../../../dist/ua.com.smart-pattern.tape.desktop \
desktop.files += ../../../dist/puzzle.desktop desktop.files += ../../../dist/ua.com.smart-pattern.puzzle.desktop
# logo # logo
hicolor_48_apps.path = $$DATADIR/icons/hicolor/48x48/apps/ hicolor_48_apps.path = $$DATADIR/icons/hicolor/48x48/apps/