Skip to content

Commit

Permalink
0.2.6 - wayland application icon
Browse files Browse the repository at this point in the history
Added an application icon on wayland
it was an easy fix, knowning what the issue was:

XDG-SHELL standard does not allow per window icon,
instead it looks for the icon defined in the .desktop file
  • Loading branch information
portaloffreedom committed Nov 21, 2022
1 parent 21b68e3 commit e908675
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.16)

project(pipecontrol VERSION 0.2.5 LANGUAGES CXX)
project(pipecontrol VERSION 0.2.6 LANGUAGES CXX)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

Expand Down
4 changes: 3 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ int main(int argc, char *argv[])

QGuiApplication::setApplicationVersion(PIPECONTROL_VERSION);
QGuiApplication::setQuitOnLastWindowClosed(true);
QGuiApplication::setWindowIcon(QIcon(QStringLiteral(INSTALL_PREFIX"/share/icons/pipecontrol.svg")));
QGuiApplication::setWindowIcon(QIcon(QStringLiteral(INSTALL_PREFIX"/share/icons/hicolor/scalable/apps/pipecontrol.svg")));
// This is necessary for the Application Icon on wayland (xdg-shell standard)
QGuiApplication::setDesktopFileName("PipeControl.desktop");

QTranslator translator;
const QStringList uiLanguages = QLocale::system().uiLanguages();
Expand Down

0 comments on commit e908675

Please sign in to comment.