diff mbox series

kernel-shark: Fix Capture if directory contains space

Message ID 20230603083632.597760-1-y.karadz@gmail.com (mailing list archive)
State Accepted
Commit e2dc994a60e539e2db3ea9dd58fb11bf18255051
Headers show
Series kernel-shark: Fix Capture if directory contains space | expand

Commit Message

Yordan Karadzhov June 3, 2023, 8:36 a.m. UTC
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".

Suggested-by: Vitaly Chikunov <vt@altlinux.org>
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=217459
Signed-off-by: Yordan Karadzhov <y.karadz@gmail.com>
---
 bin/kshark-su-record | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/bin/kshark-su-record b/bin/kshark-su-record
index 70d781d..f3d971a 100755
--- a/bin/kshark-su-record
+++ b/bin/kshark-su-record
@@ -2,4 +2,4 @@ 
 
 xhost +si:localuser:root &>/dev/null
 
-pkexec kshark-record -o ${PWD}/trace.dat
+pkexec kshark-record -o "${PWD}/trace.dat"