Skip to content

Commit 9091818

Browse files
committed
xapp-appimage-thumbnailer: Use XApp.get_tmp_dir()
1 parent 5ef1192 commit 9091818

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

files/usr/bin/xapp-appimage-thumbnailer

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import sys
66
import tempfile
77
from elftools.elf.elffile import ELFFile
88

9+
gi.require_version("XApp", "1.0")
10+
from gi.repository import XApp
11+
912
import XappThumbnailers
1013
t = XappThumbnailers.Thumbnailer()
1114

@@ -42,7 +45,7 @@ while True:
4245
icon_path = icon_path[2:]
4346

4447
# Extract the icon
45-
with tempfile.TemporaryDirectory() as tmpdir:
48+
with tempfile.TemporaryDirectory(dir=XApp.get_tmp_dir()) as tmpdir:
4649
outdir = os.path.join(tmpdir, 'out')
4750
cmd = [
4851
'unsquashfs',

0 commit comments

Comments
 (0)