Skip to contentSkip to conversation

kernel-shark: Fix Capture if directory contains space

PATCH New Yordan Karadzhov 1 participant 1 message Jun 3, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel-shark: Fix Capture if directory contains space

Desktop directory could be two words separated by a space, for example "Work place". The Capture widget then tries to write into file named "Work".

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=217459

---
 bin/kshark-su-record | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bin/kshark-su-record +1 -1
index 70d781d..f3d971a 100755
@@ -2,4 +2,4 @@
 
 xhost +si:localuser:root &>/dev/null
 
-pkexec kshark-record -o ${PWD}/trace.dat
+pkexec kshark-record -o "${PWD}/trace.dat"
Signature · 1 line
2.40.1