Skip to content

Commit 86d2c3a

Browse files
committed
chore(logging): added logging for each components launch
1 parent 7acac69 commit 86d2c3a

19 files changed

+115
-11
lines changed

cemu/component_launcher.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@ RD_MODULES="/app/retrodeck/components"
66
source "apprun-hooks/linuxdeploy-plugin-checkrt.sh"
77
source "apprun-hooks/linuxdeploy-plugin-gtk.sh"
88

9+
log i "RetroDECK is now launching $COMPONENT_NAME"
10+
log d "Loaded app run hooks in apprun-hooks/linuxdeploy-plugin-checkrt.sh"
11+
log d "Loaded app run hooks in apprun-hooks/linuxdeploy-plugin-gtk.sh"
12+
913
exec "$RD_MODULES/$COMPONENT_NAME/bin/Cemu" "$@"

dolphin/component_launcher.sh

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,34 @@
11
#!/bin/bash
22

3+
source /app/libexec/logger.sh
4+
35
COMPONENT_NAME="dolphin"
46
RD_MODULES="/app/retrodeck/components"
57
SHARED_LIBS="/app/retrodeck/components/shared-libs/qt-6.8/lib"
68

7-
case "${XDG_CURRENT_DESKTOP}" in
8-
*GNOME*|*gnome*|*XFCE*)
9-
export QT_QPA_PLATFORMTHEME=gtk2
10-
;;
11-
esac
12-
139
# Set LD_LIBRARY_PATH
1410
export LD_LIBRARY_PATH="$RD_MODULES/$COMPONENT_NAME/lib:$SHARED_LIBS:${LD_LIBRARY_PATH}"
1511

1612
# Set plugin paths
1713
export QT_PLUGIN_PATH="$SHARED_LIBS/plugins:${QT_PLUGIN_PATH}"
1814
export QT_QPA_PLATFORM_PLUGIN_PATH="$SHARED_LIBS/plugins/platforms"
1915

16+
log i "RetroDECK is now launching $COMPONENT_NAME"
17+
log d "Library path is: $LD_LIBRARY_PATH"
18+
log d "QT plugin path is: $QT_PLUGIN_PATH"
19+
log d "QT QPA PLATFORM plugin path is: $QT_QPA_PLATFORM_PLUGIN_PATH"
20+
21+
case "${XDG_CURRENT_DESKTOP}" in
22+
*GNOME*|*gnome*|*XFCE*)
23+
export QT_QPA_PLATFORMTHEME=gtk2
24+
log d "QT_QPA_PLATFORMTHEME is set to: $QT_QPA_PLATFORMTHEME"
25+
;;
26+
esac
27+
2028
# Workaround for Wayland on Pop!_OS Cosmic (force X11 backend)
2129
if [ "$XDG_SESSION_TYPE" = "wayland" ]; then
2230
export QT_QPA_PLATFORM=xcb
31+
log d "QT_QPA_PLATFORM is set to: $QT_QPA_PLATFORM"
2332
fi
2433

2534
# Launch Dolphin

duckstation/component_launcher.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
#!/bin/bash
22

3+
source /app/libexec/logger.sh
4+
35
COMPONENT_NAME="duckstation"
46
RD_MODULES="/app/retrodeck/components"
57

68
source "apprun-hooks/linuxdeploy-plugin-qt-hook.sh"
79

10+
log i "RetroDECK is now launching $COMPONENT_NAME"
11+
log d "Loaded app run hooks in apprun-hooks/linuxdeploy-plugin-qt-hook.sh"
12+
813
exec "$RD_MODULES/$COMPONENT_NAME/bin/duckstation-qt" "$@"

es-de/component_launcher.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
#!/bin/bash
22

3+
source /app/libexec/logger.sh
4+
35
COMPONENT_NAME="es-de"
46
RD_MODULES="/app/retrodeck/components"
57
SHARED_LIBS="/app/retrodeck/components/shared-libs/qt-6.7/lib"
68

79
LD_LIBRARY_PATH="$RD_MODULES/$COMPONENT_NAME/lib:$SHARED_LIBS:${LD_LIBRARY_PATH}"
810
export QT_PLUGIN_PATH="$SHARED_LIBS/plugins:${QT_PLUGIN_PATH}"
911

12+
log i "RetroDECK is now launching $COMPONENT_NAME"
13+
log d "Library path is: $LD_LIBRARY_PATH"
14+
log d "QT plugin path is: $QT_PLUGIN_PATH"
15+
1016
exec "$RD_MODULES/$COMPONENT_NAME/bin/es-de" "$@"

gzdoom/component_launcher.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
source /app/libexec/logger.sh
4+
35
COMPONENT_NAME="gzdoom"
46
RD_MODULES="/app/retrodeck/components"
57

@@ -9,4 +11,8 @@ export APPDIR="$RD_MODULES/$COMPONENT_NAME"
911
LD_LIBRARY_PATH="$RD_MODULES/$COMPONENT_NAME/lib:${LD_LIBRARY_PATH}"
1012
export DOOMWADDIR="$RD_MODULES/$COMPONENT_NAME/share/games/doom"
1113

14+
log i "RetroDECK is now launching $COMPONENT_NAME"
15+
log d "Library path is: $LD_LIBRARY_PATH"
16+
log d "DOOM WADs directory is: $DOOMWADDIR"
17+
1218
exec "$RD_MODULES/$COMPONENT_NAME/AppRun" --no-sandbox +fluid_patchset "$RD_MODULES/$COMPONENT_NAME/share/games/doom/soundfonts/gzdoom.sf2" "$@"

mame/component_launcher.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
#!/bin/bash
22

3+
source /app/libexec/logger.sh
4+
35
COMPONENT_NAME="mame"
46
RD_MODULES="/app/retrodeck/components"
57
SHARED_LIBS="/app/retrodeck/components/shared-libs/qt-6.8/lib"
68

79
LD_LIBRARY_PATH="$RD_MODULES/$COMPONENT_NAME/lib:$SHARED_LIBS:${LD_LIBRARY_PATH}"
810
export QT_PLUGIN_PATH="$SHARED_LIBS/plugins:${QT_PLUGIN_PATH}"
911

12+
log i "RetroDECK is now launching $COMPONENT_NAME"
13+
log d "Library path is: $LD_LIBRARY_PATH"
14+
log d "QT plugin path is: $QT_PLUGIN_PATH"
15+
1016
exec "$RD_MODULES/$COMPONENT_NAME/bin/mame" "$@"

melonds/component_launcher.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
11
#!/bin/bash
22

3+
source /app/libexec/logger.sh
4+
35
COMPONENT_NAME="melonds"
46
RD_MODULES="/app/retrodeck/components"
57
SHARED_LIBS="/app/retrodeck/components/shared-libs/qt-6.7/lib"
68

9+
LD_LIBRARY_PATH="$RD_MODULES/$COMPONENT_NAME/lib:$SHARED_LIBS:${LD_LIBRARY_PATH}"
10+
export QT_PLUGIN_PATH="$SHARED_LIBS/plugins:${QT_PLUGIN_PATH}"
11+
12+
log i "RetroDECK is now launching $COMPONENT_NAME"
13+
log d "Library path is: $LD_LIBRARY_PATH"
14+
log d "QT plugin path is: $QT_PLUGIN_PATH"
15+
716
case "${XDG_CURRENT_DESKTOP}" in
817
*GNOME*|*gnome*|*XFCE*)
918
export QT_QPA_PLATFORMTHEME=gtk2
1019
;;
1120
esac
1221

13-
LD_LIBRARY_PATH="$RD_MODULES/$COMPONENT_NAME/lib:$SHARED_LIBS:${LD_LIBRARY_PATH}"
14-
export QT_PLUGIN_PATH="$SHARED_LIBS/plugins:${QT_PLUGIN_PATH}"
22+
log d "QT_QPA_PLATFORMTHEME is set to: $QT_QPA_PLATFORMTHEME"
1523

1624
exec "$RD_MODULES/$COMPONENT_NAME/bin/melonDS" "$@"

pancakes/component_launcher.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
#!/bin/bash
22

3+
source /app/libexec/logger.sh
4+
35
COMPONENT_NAME="pancakes"
46
RD_MODULES="/app/retrodeck/components"
57

68
LD_LIBRARY_PATH="$RD_MODULES/$COMPONENT_NAME/lib:${LD_LIBRARY_PATH}"
79

10+
log i "RetroDECK is now launching $COMPONENT_NAME"
11+
log d "Library path is: $LD_LIBRARY_PATH"
12+
813
exec "$RD_MODULES/$COMPONENT_NAME/Ryujinx.sh" "$@"

pcsx2/component_launcher.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
#!/bin/bash
22

3+
source /app/libexec/logger.sh
4+
35
COMPONENT_NAME="pcsx2"
46
RD_MODULES="/app/retrodeck/components"
57

68
source "apprun-hooks/linuxdeploy-plugin-qt-hook.sh"
79
source "apprun-hooks/default-to-x11.sh"
810

11+
log i "RetroDECK is now launching $COMPONENT_NAME"
12+
log d "Loaded app run hooks in apprun-hooks/linuxdeploy-plugin-qt-hook.sh"
13+
log d "Loaded app run hooks in apprun-hooks/default-to-x11.sh"
14+
915
exec "$RD_MODULES/$COMPONENT_NAME/bin/pcsx2-qt" "$@"

portmaster/component_launcher.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
#!/bin/bash
22

3+
source /app/libexec/logger.sh
4+
35
exec "/var/data/PortMaster/PortMaster.sh" "$@"

0 commit comments

Comments
 (0)