Files
termux-packages/x11-packages/cinnamon/0002-fix-tmp-paths.patch
termux-pacman-bot ccef6e70a0 bump(x11/cinnamon): 6.6.0
- Fixes https://github.com/termux/termux-packages/issues/27598

- There are a lot of changes

- Now depends on `ibus`, otherwise crashes

- Requires modifications to `keyboardManager.js` and `userWidget.js` to prevent crashes on launch

- Replace some patches with `termux_step_post_get_source()` bulkpatch

- Drop some patches thought to be unnecessary
2025-12-13 03:28:05 +00:00

20 lines
1.0 KiB
Diff

diff --git a/files/usr/share/cinnamon/cinnamon-settings/modules/cs_user.py b/files/usr/share/cinnamon/cinnamon-settings/modules/cs_user.py
index 3a99188..033a007 100755
--- a/files/usr/share/cinnamon/cinnamon-settings/modules/cs_user.py
+++ b/files/usr/share/cinnamon/cinnamon-settings/modules/cs_user.py
@@ -138,12 +138,12 @@ class Module:
def _on_face_photo_menuitem_activated(self, menuitem):
# streamer takes -t photos, uses /dev/video0
- if 0 != subprocess.call(["streamer", "-j90", "-t8", "-s800x600", "-o", "/tmp/temp-account-pic00.jpeg"]):
+ if 0 != subprocess.call(["streamer", "-j90", "-t8", "-s800x600", "-o", "@TERMUX_PREFIX@/tmp/temp-account-pic00.jpeg"]):
print("Error: Webcam not available")
return
# Use the 8th frame (the webcam takes a few frames to "lighten up")
- path = "/tmp/temp-account-pic07.jpeg"
+ path = "@TERMUX_PREFIX@/tmp/temp-account-pic07.jpeg"
# Crop the image to thumbnail size
image = Image.open(path)