Skip to content

Commit b732c66

Browse files
authored
linux: add desktop entry file (#204)
2 parents 802c2e0 + f574261 commit b732c66

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

linux/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,5 @@ install(TARGETS librepods
7575
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
7676
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
7777
)
78+
install(FILES assets/me.kavishdevar.librepods.desktop
79+
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications")
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[Desktop Entry]
2+
Version=1.0
3+
Type=Application
4+
Name=LibrePods
5+
Comment=AirPods libreated from Apple's ecosystem
6+
Exec=librepods
7+
Icon=librepods
8+
Terminal=false
9+
Categories=Audio;AudioVideo;Utility;Qt;

linux/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -951,6 +951,7 @@ int main(int argc, char *argv[]) {
951951
LOG_DEBUG("Socket error: " << socket.errorString());
952952
}
953953
}
954+
app.setDesktopFileName("me.kavishdevar.librepods");
954955
app.setQuitOnLastWindowClosed(false);
955956

956957
bool debugMode = false;

0 commit comments

Comments
 (0)