Update linux sunshine.desktop (#1768)

This commit is contained in:
detiam
2023-10-26 02:14:28 +08:00
committed by GitHub
parent 3212b036a1
commit ab3ff2d355
7 changed files with 40 additions and 12 deletions

View File

@@ -88,7 +88,12 @@ endif()
# desktop file # desktop file
# todo - validate desktop files with `desktop-file-validate` # todo - validate desktop files with `desktop-file-validate`
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/sunshine.desktop" DESTINATION "${CMAKE_INSTALL_PREFIX}/share/applications") install(FILES "${CMAKE_CURRENT_BINARY_DIR}/sunshine.desktop"
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/applications")
if(NOT ${SUNSHINE_BUILD_APPIMAGE})
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/sunshine_terminal.desktop"
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/applications")
endif()
if(${SUNSHINE_BUILD_FLATPAK}) if(${SUNSHINE_BUILD_FLATPAK})
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/sunshine_kms.desktop" install(FILES "${CMAKE_CURRENT_BINARY_DIR}/sunshine_kms.desktop"
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/applications") DESTINATION "${CMAKE_INSTALL_PREFIX}/share/applications")

View File

@@ -9,8 +9,10 @@ elseif (UNIX)
elseif(${SUNSHINE_BUILD_FLATPAK}) elseif(${SUNSHINE_BUILD_FLATPAK})
configure_file(packaging/linux/flatpak/sunshine.desktop sunshine.desktop @ONLY) configure_file(packaging/linux/flatpak/sunshine.desktop sunshine.desktop @ONLY)
configure_file(packaging/linux/flatpak/sunshine_kms.desktop sunshine_kms.desktop @ONLY) configure_file(packaging/linux/flatpak/sunshine_kms.desktop sunshine_kms.desktop @ONLY)
configure_file(packaging/linux/sunshine_terminal.desktop sunshine_terminal.desktop @ONLY)
else() else()
configure_file(packaging/linux/sunshine.desktop sunshine.desktop @ONLY) configure_file(packaging/linux/sunshine.desktop sunshine.desktop @ONLY)
configure_file(packaging/linux/sunshine_terminal.desktop sunshine_terminal.desktop @ONLY)
endif() endif()
# configure metadata file # configure metadata file

View File

@@ -5,7 +5,8 @@ Exec=sunshine
Version=1.0 Version=1.0
Comment=@PROJECT_DESCRIPTION@ Comment=@PROJECT_DESCRIPTION@
Icon=sunshine Icon=sunshine
Categories=Utility; Keywords=gamestream;stream;moonlight;remote play;
Categories=AudioVideo;Network;RemoteAccess;
Terminal=true Terminal=true
X-AppImage-Name=sunshine X-AppImage-Name=sunshine
X-AppImage-Version=@PROJECT_VERSION@ X-AppImage-Version=@PROJECT_VERSION@

View File

@@ -5,5 +5,16 @@ Exec=flatpak run dev.lizardbyte.sunshine
Version=1.0 Version=1.0
Comment=@PROJECT_DESCRIPTION@ Comment=@PROJECT_DESCRIPTION@
Icon=sunshine Icon=sunshine
Categories=Utility; Keywords=gamestream;stream;moonlight;remote play;
Terminal=true Categories=AudioVideo;Network;RemoteAccess;
Actions=RunInTerminal;KMS;
[Desktop Action RunInTerminal]
Name=Run in Terminal
Icon=application-x-executable
Exec=gio launch @CMAKE_INSTALL_PREFIX@/share/applications/sunshine_terminal.desktop
[Desktop Action KMS]
Name=Run in Terminal (KMS)
Icon=application-x-executable
Exec=gio launch @CMAKE_INSTALL_PREFIX@/share/applications/sunshine_kms.desktop

View File

@@ -1,9 +1,6 @@
[Desktop Entry] [Desktop Entry]
Type=Application
Name=@PROJECT_NAME@ (KMS) Name=@PROJECT_NAME@ (KMS)
Exec=sudo -i PULSE_SERVER=unix:$(pactl info | awk '/Server String/{print$3}') flatpak run dev.lizardbyte.sunshine Exec=sudo -i PULSE_SERVER=unix:$(pactl info | awk '/Server String/{print$3}') flatpak run dev.lizardbyte.sunshine
Version=1.0
Comment=@PROJECT_DESCRIPTION@
Icon=sunshine
Categories=Utility;
Terminal=true Terminal=true
Type=Application
NoDisplay=true

View File

@@ -1,9 +1,15 @@
[Desktop Entry] [Desktop Entry]
Type=Application Type=Application
Name=@PROJECT_NAME@ Name=@PROJECT_NAME@
Exec=sunshine Exec=/usr/bin/env systemctl start --u sunshine
Version=1.0 Version=1.0
Comment=@PROJECT_DESCRIPTION@ Comment=@PROJECT_DESCRIPTION@
Icon=sunshine Icon=sunshine
Categories=Utility; Keywords=gamestream;stream;moonlight;remote play;
Terminal=true Categories=AudioVideo;Network;RemoteAccess;
Actions=RunInTerminal;
[Desktop Action RunInTerminal]
Name=Run in Terminal
Icon=application-x-executable
Exec=gio launch @CMAKE_INSTALL_PREFIX@/share/applications/sunshine_terminal.desktop

View File

@@ -0,0 +1,6 @@
[Desktop Entry]
Name=@PROJECT_NAME@
Exec=sunshine
Terminal=true
Type=Application
NoDisplay=true