Skip to content

Commit 026aac3

Browse files
committed
build: add icon and desktop file
1 parent d7079b7 commit 026aac3

File tree

5 files changed

+22
-0
lines changed

5 files changed

+22
-0
lines changed

CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,14 @@ install(CODE "
146146
${CMAKE_INSTALL_FULL_BINDIR}/quickshell \$ENV{DESTDIR}${CMAKE_INSTALL_FULL_BINDIR}/qs
147147
)
148148
")
149+
150+
install(
151+
FILES ${CMAKE_SOURCE_DIR}/assets/org.quickshell.desktop
152+
DESTINATION ${CMAKE_INSTALL_DATADIR}/applications
153+
)
154+
155+
install(
156+
FILES ${CMAKE_SOURCE_DIR}/assets/quickshell.svg
157+
DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps
158+
RENAME org.quickshell.svg
159+
)

assets/org.quickshell.desktop

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[Desktop Entry]
2+
Version=1.5
3+
Type=Application
4+
NoDisplay=true
5+
6+
Name=Quickshell
7+
Icon=org.quickshell

assets/quickshell.svg

Lines changed: 1 addition & 0 deletions
Loading

src/crash/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ void qsCheckCrash(int argc, char** argv) {
177177
);
178178

179179
auto app = QApplication(argc, argv);
180+
QApplication::setDesktopFileName("org.quickshell");
180181

181182
auto crashDir = QsPaths::crashDir(info.instance.instanceId);
182183

src/launch/launch.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ int launch(const LaunchArgs& args, char** argv, QCoreApplication* coreApplicatio
219219
app = new QGuiApplication(qArgC, argv);
220220
}
221221

222+
QGuiApplication::setDesktopFileName("org.quickshell");
223+
222224
if (args.debugPort != -1) {
223225
QQmlDebuggingEnabler::enableDebugging(true);
224226
auto wait = args.waitForDebug ? QQmlDebuggingEnabler::WaitForClient

0 commit comments

Comments
 (0)