diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 006233f..f7a2445 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -1,21 +1,21 @@ ########### install files ############### ecm_install_icons( ICONS 16-apps-ksokoban.png 22-apps-ksokoban.png 32-apps-ksokoban.png 48-apps-ksokoban.png 64-apps-ksokoban.png 128-apps-ksokoban.png DESTINATION ${KDE_INSTALL_ICONDIR} THEME hicolor ) -install(FILES ksokoban.desktop DESTINATION ${XDG_APPS_INSTALL_DIR}) +install(FILES org.kde.ksokoban.desktop DESTINATION ${KDE_INSTALL_APPDIR}) diff --git a/data/ksokoban.desktop b/data/org.kde.ksokoban.desktop similarity index 98% rename from data/ksokoban.desktop rename to data/org.kde.ksokoban.desktop index f5a15a4..30e3c8c 100644 --- a/data/ksokoban.desktop +++ b/data/org.kde.ksokoban.desktop @@ -1,70 +1,69 @@ [Desktop Entry] Name=KSokoban Name[af]=Ksokoban Name[be]=Сакабан Name[bn]=কে-সোকোবান Name[hi]=के-शोकोबॉन Name[mk]=КСокобан Name[nb]=Sokoban Name[ne]=केडीई सोकोबान Name[pl]=Sokoban Name[sv]=Ksokoban Name[ta]=Kசோகோபான் Name[tg]=KСокобан Name[zh_TW]=KSokoban 倉庫番 Name[zu]=I-KSokoban GenericName=Sokoban Game GenericName[be]=Гульня Сакабан GenericName[bg]=Логическа игра GenericName[bn]=সোকোবান খেলা GenericName[bs]=Igra Sokoban GenericName[ca]=Joc Sokoban GenericName[cs]=Hra Sokoban GenericName[cy]=Gêm Sokoban GenericName[da]=Sokoban spil GenericName[de]=Sokoban Spiel GenericName[el]=Παιχνίδι Sokoban GenericName[eo]=Sokobana ludo GenericName[es]=Juego Sokoban GenericName[et]=Sokoban GenericName[eu]=Sokoban jokoa GenericName[fa]=بازی Sokoban GenericName[fi]=Sokoban GenericName[fr]=Jeu Sokoban GenericName[ga]=Cluiche Sokoban GenericName[he]=משחק Sokoban GenericName[hr]=Sokoban GenericName[hu]=Sokoban GenericName[is]=Sokoban leikur GenericName[it]=Gioco del Sokoban GenericName[ja]=倉庫番ゲーム GenericName[km]=ល្បែង​សូកូបាន GenericName[lt]=Sokoban žaidimas GenericName[lv]=Sokoban spēle GenericName[mk]=Игра Сокобан GenericName[nb]=Sokoban-spill GenericName[nds]=Sokoban-Speel GenericName[ne]=सोकोबान खेल GenericName[nl]=Sokobanspel GenericName[nn]=Sokoban-spel GenericName[pl]=Sokoban GenericName[pt]=Jogo de Sokoban GenericName[pt_BR]=Jogo de Sokoban GenericName[ru]=Сокобан GenericName[se]=Sokoban-speallu GenericName[sk]=Hra Sokoban GenericName[sl]=Igra Sokobana GenericName[sr]=Игра Sokoban-а GenericName[sr@Latn]=Igra Sokoban-a GenericName[sv]=Sokoban-spel GenericName[ta]=சொகோபான் விளையாட்டு GenericName[uk]=Гра Sokoban GenericName[zh_TW]=倉庫番遊戲 DocPath=ksokoban/index.html Exec=ksokoban -qwindowtitle %c Icon=ksokoban Terminal=false Type=Application X-KDE-StartupNotify=true -X-DCOP-ServiceType=Multi Categories=Qt;KDE;Game;StrategyGame; diff --git a/main.cpp b/main.cpp index 6a87abf..1aa7a81 100644 --- a/main.cpp +++ b/main.cpp @@ -1,86 +1,90 @@ /* * ksokoban - a Sokoban game by KDE * Copyright (C) 1998-2000 Anders Widell * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include #include #include #include #include #include "MainWindow.h" static const char version[] = "0.5.0"; int main (int argc, char **argv) { QApplication app(argc, argv); KLocalizedString::setApplicationDomain("ksokoban"); KAboutData aboutData(QStringLiteral("ksokoban"), i18n("ksokoban"), version, i18n("The japanese warehouse keeper game"), KAboutLicense::GPL, i18n("(c) 1998 Anders Widell \n(c) 2012 Lukasz Kalamlacki"), QString(), QStringLiteral("http://www.shlomifish.org/open-source/projects/ksokoban/") ); aboutData.addAuthor(i18n("Shlomi Fish"), i18n("For porting to Qt5/KF5 and doing other cleanups"), "shlomif@cpan.org", "http://www.shlomifish.org/"); aboutData.addAuthor(i18n("Lukasz Kalamlacki"), i18n("For rewriting the original ksokoban game from kde3 to kde4"), "kalamlacki@gmail.com", "http://sf.net/projects/ksokoban"); aboutData.addAuthor(i18n("Anders Widell"), i18n("For writing the original ksokoban game"), "awl@hem.passagen.se", "http://hem.passagen.se/awl/ksokoban/"); aboutData.addCredit(i18n("David W. Skinner"), i18n("For contributing the Sokoban levels included in this game"), "sasquatch@bentonrea.com", "http://users.bentonrea.com/~sasquatch/"); + + aboutData.setOrganizationDomain(QByteArray("kde.org")); + aboutData.setDesktopFileName(QStringLiteral("org.kde.ksokoban")); + KAboutData::setApplicationData(aboutData); app.setWindowIcon(QIcon::fromTheme(QStringLiteral("ksokoban"))); QCommandLineParser parser; parser.addVersionOption(); parser.addHelpOption(); parser.addPositionalArgument(i18n("[file]"), i18n("Level collection file to load")); aboutData.setupCommandLine(&parser); parser.process(app); aboutData.processCommandLine(&parser); MainWindow *widget = new MainWindow(); widget->show(); if (parser.positionalArguments().count() > 0) { widget->openURL(parser.positionalArguments().at(0)); } QObject::connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(quit())); return app.exec(); }