fix: linux scripts

This commit is contained in:
diced
2025-01-08 01:05:02 -08:00
parent b70293182d
commit 49fb0434bd
2 changed files with 9 additions and 2 deletions

View File

@@ -264,7 +264,7 @@ export default function GeneratorButton({
description={
<>
If using a compositor such as{' '}
<Anchor component={Link} href='https://github.com/hyprwm/hyprland'>
<Anchor size='xs' component={Link} href='https://github.com/hyprwm/hyprland'>
Hyprland
</Anchor>
, this option will set the <Code>XDG_CURRENT_DESKTOP=sway</Code> to workaround
@@ -295,6 +295,13 @@ export default function GeneratorButton({
</>
)}
{isUnixLike && (
<Text c='dimmed' size='sm'>
If you are having trouble getting Flameshot to work on Wayland, consult the{' '}
<Anchor href='https://zipline.diced.sh/docs/guides/wayland'>Wayland guide</Anchor>.
</Text>
)}
<Button
onClick={() =>
generators[name as keyof typeof generators](tokenData!.token!, generatorType as any, options)

View File

@@ -10,7 +10,7 @@ export function shell(token: string, type: 'file' | 'url', options: GeneratorOpt
];
if (type === 'file') {
curl.push('-F', 'file=@/tmp/screenshot.png');
curl.push('-F', 'file=@$1');
curl.push('-H', "'content-type: multipart/form-data'");
} else {
curl.push('-H', "'content-type: application/json'");