Skip to content

Commit d950d16

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 6cdb861 + bcf634e commit d950d16

File tree

5 files changed

+17
-0
lines changed

5 files changed

+17
-0
lines changed

package/batocera/core/batocera-resolution/scripts/screenshot/batocera-screenshot.wayland-sway

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

3+
. /etc/profile.d/xdg.sh
4+
. /etc/profile.d/wayland.sh
5+
36
FILE=$1
47
if [ -z ${FILE} ]; then
58
FILE="/userdata/screenshots/screenshot-$(date +%Y.%m.%d-%Hh%M.%S).png"

package/batocera/core/batocera-scripts/batocera-scripts.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ define BATOCERA_SCRIPTS_INSTALL_TARGET_CMDS
8484
install -m 0755 $(BATOCERA_SCRIPTS_CP_PATH)/scripts/bluetooth/batocera-bluetooth $(TARGET_DIR)/usr/bin/
8585
install -m 0755 $(BATOCERA_SCRIPTS_CP_PATH)/scripts/bluetooth/batocera-bluetooth-agent $(TARGET_DIR)/usr/bin/
8686
install -m 0755 $(BATOCERA_SCRIPTS_CP_PATH)/scripts/bluetooth/bluezutils.py $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/ # any variable ?
87+
install -m 0755 $(BATOCERA_SCRIPTS_PATH)/scripts/getLocalWaylandDisplay $(TARGET_DIR)/usr/bin/
8788
install -m 0755 $(BATOCERA_SCRIPTS_CP_PATH)/scripts/getLocalXDisplay $(TARGET_DIR)/usr/bin/
8889
ln -sf /usr/bin/batocera-xtract $(TARGET_DIR)/usr/bin/file-roller
8990
endef
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
find /run -name "wayland-*.lock" 2>/dev/null | head -1 | sed -e s+"^.*/\([^/]*\)\.lock$"+"\1"+
4+
exit ${PIPESTATUS[0]}

package/batocera/core/batocera-system/batocera-system.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ define BATOCERA_SYSTEM_INSTALL_TARGET_CMDS
120120
cp $(BR2_EXTERNAL_BATOCERA_PATH)/package/batocera/core/batocera-system/xdg.sh $(TARGET_DIR)/etc/profile.d/xdg.sh
121121
cp $(BR2_EXTERNAL_BATOCERA_PATH)/package/batocera/core/batocera-system/dbus.sh $(TARGET_DIR)/etc/profile.d/dbus.sh
122122

123+
# not really needed for xorg
124+
cp $(BR2_EXTERNAL_BATOCERA_PATH)/package/batocera/core/batocera-system/wayland.sh \
125+
$(TARGET_DIR)/etc/profile.d/wayland.sh
126+
123127
# list of modules that doesnt like suspend
124128
mkdir -p $(TARGET_DIR)/etc/pm/config.d
125129
echo 'SUSPEND_MODULES="rtw88_8822ce snd_pci_acp5x"' > $(TARGET_DIR)/etc/pm/config.d/config
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
3+
# SWAYSOCK=<XDG_RUNTIME_DIR>/sway-ipc.<uid>.sock
4+
export SWAYSOCK=${XDG_RUNTIME_DIR}/sway-ipc.0.sock
5+
export WAYLAND_DISPLAY=$(getLocalWaylandDisplay)

0 commit comments

Comments
 (0)