diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 22e2e51c..615c9e4a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -61,7 +61,7 @@ before_script: #-----------------------------------------------------------------------# "Linux 32 AppImage": <<: *ccache_init - image: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:bullseye-32 + image: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:bookworm-32 stage: build script: - export $(dpkg-architecture) @@ -87,7 +87,7 @@ before_script: #-----------------------------------------------------------------------# "Linux 64 AppImage": <<: *ccache_init - image: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:bullseye-64 + image: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:bookworm-64 stage: build script: - export $(dpkg-architecture) diff --git a/OpenRGB.pro b/OpenRGB.pro index 1bd39a25..5874a11c 100644 --- a/OpenRGB.pro +++ b/OpenRGB.pro @@ -545,9 +545,9 @@ contains(QMAKE_PLATFORM, linux) { #-------------------------------------------------------------------------------------------# target.path=$$PREFIX/bin/ desktop.path=$$PREFIX/share/applications/ - desktop.files+=qt/OpenRGB.desktop + desktop.files+=qt/org.openrgb.OpenRGB.desktop icon.path=$$PREFIX/share/icons/hicolor/128x128/apps/ - icon.files+=qt/OpenRGB.png + icon.files+=qt/org.openrgb.OpenRGB.png metainfo.path=$$PREFIX/share/metainfo/ metainfo.files+=qt/org.openrgb.OpenRGB.metainfo.xml INSTALLS += target desktop icon metainfo udev_rules @@ -642,9 +642,9 @@ contains(QMAKE_PLATFORM, freebsd) { target.path=$$PREFIX/bin/ desktop.path=$$PREFIX/share/applications/ - desktop.files+=qt/OpenRGB.desktop + desktop.files+=qt/org.openrgb.OpenRGB.desktop icon.path=$$PREFIX/share/icons/hicolor/128x128/apps/ - icon.files+=qt/OpenRGB.png + icon.files+=qt/org.openrgb.OpenRGB.png metainfo.path=$$PREFIX/share/metainfo/ metainfo.files+=qt/org.openrgb.OpenRGB.metainfo.xml rules.path=$$PREFIX/lib/udev/rules.d/ diff --git a/fedora/OpenRGB.spec.in b/fedora/OpenRGB.spec.in index b45d85b6..baaf6f1b 100644 --- a/fedora/OpenRGB.spec.in +++ b/fedora/OpenRGB.spec.in @@ -29,7 +29,7 @@ cd %{_builddir} %make_install INSTALL_ROOT=%{buildroot} #desktop -desktop-file-install %{_sourcedir}/%{_name}/qt/%{_name}.desktop +desktop-file-install %{_sourcedir}/%{_name}/qt/org.%{name}.%{_name}.desktop %post -n %{name} if [ -S /run/udev/control ]; then @@ -39,8 +39,8 @@ fi %files %{_bindir}/%{name} -%{_datadir}/icons/hicolor/*/apps/%{_name}.png -%{_datadir}/applications/%{_name}.desktop +%{_datadir}/icons/hicolor/*/apps/org.%{name}.%{_name}.png +%{_datadir}/applications/org.%{name}.%{_name}.desktop %{_metainfodir}/org.%{name}.%{_name}.metainfo.xml %{_udevrulesdir}/60-%{name}.rules %license LICENSE diff --git a/main.cpp b/main.cpp index 683af3c6..6a5f44ec 100644 --- a/main.cpp +++ b/main.cpp @@ -343,6 +343,7 @@ int main(int argc, char* argv[]) { QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication a(argc, argv); + QGuiApplication::setDesktopFileName("org.openrgb.OpenRGB"); /*---------------------------------------------------------*\ | Main UI widget | diff --git a/qt/OpenRGBDialog/OpenRGBDialog.cpp b/qt/OpenRGBDialog/OpenRGBDialog.cpp index ca423a54..99434211 100644 --- a/qt/OpenRGBDialog/OpenRGBDialog.cpp +++ b/qt/OpenRGBDialog/OpenRGBDialog.cpp @@ -6,7 +6,7 @@ OpenRGBDialog::OpenRGBDialog(std::vector& bus, std::vecto { ui->setupUi(this); - QIcon icon(":OpenRGB.png"); + QIcon icon(":org.openrgb.OpenRGB.png"); setWindowIcon(icon); QPalette pal; diff --git a/qt/OpenRGBDialog2/OpenRGBDialog2.cpp b/qt/OpenRGBDialog2/OpenRGBDialog2.cpp index df3a4117..2c4c92aa 100644 --- a/qt/OpenRGBDialog2/OpenRGBDialog2.cpp +++ b/qt/OpenRGBDialog2/OpenRGBDialog2.cpp @@ -164,7 +164,7 @@ OpenRGBDialog2::OpenRGBDialog2(QWidget *parent) : QMainWindow(parent), ui(new Op /*-----------------------------------------------------*\ | Set window icon | \*-----------------------------------------------------*/ - QIcon logo(":OpenRGB.png"); + QIcon logo(":org.openrgb.OpenRGB.png"); setWindowIcon(logo); /*-----------------------------------------------------*\ @@ -1702,7 +1702,7 @@ void OpenRGBDialog2::SetTrayIcon(bool tray_icon) } else { - trayIcon->setIcon(QIcon(":OpenRGB.png")); + trayIcon->setIcon(QIcon(":org.openrgb.OpenRGB.png")); } } diff --git a/qt/OpenRGB.desktop b/qt/org.openrgb.OpenRGB.desktop similarity index 69% rename from qt/OpenRGB.desktop rename to qt/org.openrgb.OpenRGB.desktop index bd71a38a..998da7e9 100644 --- a/qt/OpenRGB.desktop +++ b/qt/org.openrgb.OpenRGB.desktop @@ -1,9 +1,10 @@ [Desktop Entry] Type=Application -Encoding=UTF-8 +Version=1.5 Name=OpenRGB Comment=Control RGB lighting +Icon=org.openrgb.OpenRGB +TryExec=openrgb Exec=openrgb -Icon=OpenRGB Terminal=false Categories=Utility; diff --git a/qt/org.openrgb.OpenRGB.metainfo.xml b/qt/org.openrgb.OpenRGB.metainfo.xml index 61605e42..fc890108 100644 --- a/qt/org.openrgb.OpenRGB.metainfo.xml +++ b/qt/org.openrgb.OpenRGB.metainfo.xml @@ -2,23 +2,21 @@ org.openrgb.OpenRGB - OpenRGB.desktop + org.openrgb.OpenRGB.desktop CC0-1.0 GPL-2.0-or-later - OpenRGB Developers and Contributors + + OpenRGB Developers and Contributors + OpenRGB openrgb - - + - - Open source RGB lighting control that doesn't depend on manufacturer - software. - + Open source RGB lighting control that doesn't depend on manufacturer software

diff --git a/qt/OpenRGB.png b/qt/org.openrgb.OpenRGB.png similarity index 100% rename from qt/OpenRGB.png rename to qt/org.openrgb.OpenRGB.png diff --git a/qt/resources.qrc b/qt/resources.qrc index 65e1f48e..d3363808 100644 --- a/qt/resources.qrc +++ b/qt/resources.qrc @@ -1,6 +1,6 @@ - OpenRGB.png + org.openrgb.OpenRGB.png fonts/OpenRGB.ttf OpenRGBGreyscale.png diff --git a/scripts/AppImage.patch b/scripts/AppImage.patch index 412141f4..f2168e04 100644 --- a/scripts/AppImage.patch +++ b/scripts/AppImage.patch @@ -1,6 +1,6 @@ --- a/OpenRGB.pro 2022-05-02 15:26:15.375947000 +0200 +++ b/OpenRGB.pro 2022-05-02 15:29:01.997135000 +0200 -@@ -447,8 +447,6 @@ +@@ -449,8 +449,6 @@ # Linux-specific Configuration # #-----------------------------------------------------------------------------------------------# contains(QMAKE_PLATFORM, linux) { @@ -9,14 +9,15 @@ HEADERS -= $$CONTROLLER_H_WIN HEADERS += \ ---- a/qt/OpenRGB.desktop 2022-05-02 15:25:52.150332000 +0200 -+++ b/qt/OpenRGB.desktop 2022-05-02 15:28:27.749598000 +0200 -@@ -3,7 +3,7 @@ - Encoding=UTF-8 +--- a/qt/org.openrgb.OpenRGB.desktop ++++ b/qt/org.openrgb.OpenRGB.desktop +@@ -4,7 +4,7 @@ Version=1.5 Name=OpenRGB Comment=Control RGB lighting + Icon=org.openrgb.OpenRGB +-TryExec=openrgb -Exec=openrgb ++TryExec=OpenRGB +Exec=OpenRGB - Icon=OpenRGB Terminal=false Categories=Utility; diff --git a/scripts/build-appimage.sh b/scripts/build-appimage.sh index e60a6b1b..fa8df24b 100755 --- a/scripts/build-appimage.sh +++ b/scripts/build-appimage.sh @@ -74,7 +74,7 @@ make install INSTALL_ROOT=AppDir #-----------------------------------------------------------------------# export QML_SOURCES_PATHS="$REPO_ROOT"/src -linuxdeploy-"$ARCH".AppImage --appdir AppDir -e "$TARGET" -i "$REPO_ROOT"/qt/OpenRGB.png -d "$REPO_ROOT"/qt/OpenRGB.desktop +linuxdeploy-"$ARCH".AppImage --appdir AppDir -e "$TARGET" -i "$REPO_ROOT"/qt/org.openrgb.OpenRGB.png -d "$REPO_ROOT"/qt/org.openrgb.OpenRGB.desktop linuxdeploy-plugin-qt-"$ARCH".AppImage --appdir AppDir linuxdeploy-"$ARCH".AppImage --appdir AppDir --output appimage diff --git a/scripts/tools/linuxdeploy-i386.AppImage b/scripts/tools/linuxdeploy-i386.AppImage deleted file mode 100644 index edba3347..00000000 Binary files a/scripts/tools/linuxdeploy-i386.AppImage and /dev/null differ diff --git a/scripts/tools/linuxdeploy-plugin-qt-i386.AppImage b/scripts/tools/linuxdeploy-plugin-qt-i386.AppImage deleted file mode 100644 index 02f59d99..00000000 Binary files a/scripts/tools/linuxdeploy-plugin-qt-i386.AppImage and /dev/null differ diff --git a/scripts/tools/linuxdeploy-plugin-qt-x86_64.AppImage b/scripts/tools/linuxdeploy-plugin-qt-x86_64.AppImage deleted file mode 100644 index 03fab0ff..00000000 Binary files a/scripts/tools/linuxdeploy-plugin-qt-x86_64.AppImage and /dev/null differ diff --git a/scripts/tools/linuxdeploy-x86_64.AppImage b/scripts/tools/linuxdeploy-x86_64.AppImage deleted file mode 100644 index 761726d3..00000000 Binary files a/scripts/tools/linuxdeploy-x86_64.AppImage and /dev/null differ