diff --git a/src/components/pages/Manage/Flameshot.tsx b/src/components/pages/Manage/Flameshot.tsx index 79c678e96..d9d8ee08c 100644 --- a/src/components/pages/Manage/Flameshot.tsx +++ b/src/components/pages/Manage/Flameshot.tsx @@ -75,7 +75,7 @@ export default function Flameshot({ user, open, setOpen }) { let shell; if (values.type === 'upload-file') { shell = `#!/bin/bash${values.wlCompositorNotSupported ? '\nexport XDG_CURRENT_DESKTOP=sway\n' : ''} -flameshot gui -r > /tmp/ss.png; +flameshot gui -r > /tmp/ss.png;if [ ! -s /tmp/ss.png ]; then\n exit 1\nfi ${curl.join(' ')}${values.noJSON ? '' : " | jq -r '.files[0]'"} | tr -d '\\n' | ${ values.wlCompatibility ? 'wl-copy' : 'xsel -ib' };