mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-10-24 13:48:51 +08:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5b60695a52 |
@@ -1,6 +1,9 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
# Keep readelf and ldd output stable for the runtime dependency checks below.
|
||||||
|
export LC_ALL=C
|
||||||
|
|
||||||
if [[ $# -lt 3 || $# -gt 4 ]]; then
|
if [[ $# -lt 3 || $# -gt 4 ]]; then
|
||||||
echo "Usage: $0 <debian-arch> <xmake-arch> <version> [extra-recommendation]" >&2
|
echo "Usage: $0 <debian-arch> <xmake-arch> <version> [extra-recommendation]" >&2
|
||||||
exit 2
|
exit 2
|
||||||
@@ -169,11 +172,12 @@ EOF
|
|||||||
|
|
||||||
cat > "$DESKTOP_DIR/$PKG_NAME.desktop" <<EOF
|
cat > "$DESKTOP_DIR/$PKG_NAME.desktop" <<EOF
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Version=$DEB_VERSION
|
Version=1.0
|
||||||
Name=$APP_NAME
|
Name=$APP_NAME
|
||||||
Comment=$DESCRIPTION
|
Comment=$DESCRIPTION
|
||||||
Exec=/usr/bin/$PKG_NAME
|
Exec=/usr/bin/$PKG_NAME
|
||||||
Icon=$PKG_NAME
|
Icon=$PKG_NAME
|
||||||
|
StartupWMClass=$PKG_NAME
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
Categories=Utility;
|
Categories=Utility;
|
||||||
|
|||||||
@@ -1111,6 +1111,9 @@ void GuiApplication::InitializeUi() {
|
|||||||
wayland_display_guard.emplace("WAYLAND_DISPLAY");
|
wayland_display_guard.emplace("WAYLAND_DISPLAY");
|
||||||
wayland_socket_guard.emplace("WAYLAND_SOCKET");
|
wayland_socket_guard.emplace("WAYLAND_SOCKET");
|
||||||
}
|
}
|
||||||
|
// Match crossdesk.desktop even when the Debian launcher runs crossdesk-bin.
|
||||||
|
// Set this before creating any windows so X11 and Wayland share the same id.
|
||||||
|
slint::set_xdg_app_id("crossdesk");
|
||||||
#endif
|
#endif
|
||||||
ui_ = std::make_unique<SlintUi>();
|
ui_ = std::make_unique<SlintUi>();
|
||||||
ui_->video_presenter =
|
ui_->video_presenter =
|
||||||
|
|||||||
@@ -186,6 +186,7 @@ component ConnectionDialogButton inherits Rectangle {
|
|||||||
|
|
||||||
export component MainWindow inherits Window {
|
export component MainWindow inherits Window {
|
||||||
title: "CrossDesk";
|
title: "CrossDesk";
|
||||||
|
icon: @image-url("../../../resources/linux/crossdesk_256x256.png");
|
||||||
preferred-width: 640px;
|
preferred-width: 640px;
|
||||||
preferred-height: 450px + root.titlebar-height;
|
preferred-height: 450px + root.titlebar-height;
|
||||||
min-width: 640px;
|
min-width: 640px;
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ export struct ControllerEntry {
|
|||||||
|
|
||||||
export component ServerWindow inherits Window {
|
export component ServerWindow inherits Window {
|
||||||
title: "CrossDesk";
|
title: "CrossDesk";
|
||||||
|
icon: @image-url("../../../resources/linux/crossdesk_256x256.png");
|
||||||
preferred-width: root.language-index == 0 ? 250px : root.language-index == 1 ? 330px : 430px;
|
preferred-width: root.language-index == 0 ? 250px : root.language-index == 1 ? 330px : 430px;
|
||||||
preferred-height: 150px;
|
preferred-height: 150px;
|
||||||
min-width: root.language-index == 0 ? 250px : root.language-index == 1 ? 330px : 430px;
|
min-width: root.language-index == 0 ? 250px : root.language-index == 1 ? 330px : 430px;
|
||||||
|
|||||||
@@ -111,6 +111,7 @@ component ControlBarButton inherits Rectangle {
|
|||||||
|
|
||||||
export component StreamWindow inherits Window {
|
export component StreamWindow inherits Window {
|
||||||
title: "CrossDesk";
|
title: "CrossDesk";
|
||||||
|
icon: @image-url("../../../resources/linux/crossdesk_256x256.png");
|
||||||
preferred-width: 1280px;
|
preferred-width: 1280px;
|
||||||
preferred-height: 720px + (root.custom-titlebar ? 32px : 0px);
|
preferred-height: 720px + (root.custom-titlebar ? 32px : 0px);
|
||||||
min-width: 640px;
|
min-width: 640px;
|
||||||
|
|||||||
Reference in New Issue
Block a user