~radiocane/bollux

c05ea67fe450579b32df586496cd0f1eea01b156 — White_Rabbit 5 months ago 30620e0 main
Super stupid xdg_open on downloads
1 files changed, 5 insertions(+), 1 deletions(-)

M bollux
M bollux => bollux +5 -1
@@ 994,7 994,7 @@ gopher_response() { # gopher_response URL
}

# FILE #########################################################################
# Pretty smart, huh?
# Pretty dumb, huh?
#
################################################################################
file_request() { # file_request URL


@@ 1654,11 1654,15 @@ download() {
	final_name="$BOLLUX_DOWNDIR/${BOLLUX_URL##*/}"
	if [[ -f "$final_name" ]]; then
		log x "Saved '$temp_name'."
		xdg-open $temp_name
	elif mv "$temp_name" "$final_name"; then
		log x "Saved '$final_name'."
		xdg-open $final_name
	else
		log error "Error saving '$final_name': downloaded to '$temp_name'."
		xdg-open $temp_name
	fi
	run handle_keypress 50  # go back
}

# HISTORY #####################################################################