Skip to content

Commit 39009ee

Browse files
authored
ask to select a file when ran without arguments (#3)
1 parent f370f27 commit 39009ee

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

AppDir/bin/select-file.src.hook

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/false
2+
3+
if [ -z "$1" ]; then
4+
f=$(zenity --text 'Select file to open' --file-selection \
5+
--file-filter='Images (jpg, png, svg, gif) | *.jpg *.JPG *.png *.PNG *svg *SVG *.gif *.GIF'
6+
)
7+
set -- --filename "$f"
8+
fi

get-dependencies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ echo "---------------------------------------------------------------"
1313
get-debloated-pkgs --add-common --prefer-nano
1414

1515
# Comment this out if you need an AUR package
16-
#make-aur-package PACKAGENAME
16+
make-aur-package zenity-rs-bin
1717

1818
# If the application needs to be manually built that has to be done down here
1919

make-appimage.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export ICON=/usr/share/icons/hicolor/scalable/apps/satty.svg
1212
export DESKTOP=/usr/share/applications/satty.desktop
1313

1414
# Deploy dependencies
15-
quick-sharun /usr/bin/satty
15+
quick-sharun /usr/bin/satty /usr/bin/zenity
1616

1717
# Additional changes can be done in between here
1818

0 commit comments

Comments
 (0)