From 60da73fabbb1214fe053a7d13ebff71f729519f3 Mon Sep 17 00:00:00 2001 From: Andinus Date: Wed, 17 Jun 2020 21:23:49 +0530 Subject: Move unveil call further down --- crux.pl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crux.pl b/crux.pl index 0950b68..50d72c6 100755 --- a/crux.pl +++ b/crux.pl @@ -108,12 +108,6 @@ foreach my $path ( sort keys %unveil ) { or die "Unable to unveil: $!\n"; } -# Unveil $PATH. -foreach my $path ( split(/:/, $ENV{PATH}) ) { - unveil( $path, "rx" ) - or die "Unable to unveil: $!\n"; -} - my $response = UnsplashSource::get( %options ); if ( $options{debug} ) { @@ -125,6 +119,12 @@ if ( $options{debug} ) { die "Unexpected response\n" unless $response->{status} == 302; +# Unveil $PATH. +foreach my $path ( split(/:/, $ENV{PATH}) ) { + unveil( $path, "rx" ) + or die "Unable to unveil: $!\n"; +} + run3 ["feh", "--bg-fill", "$response->{headers}{location}"]; # Block further unveil calls. -- cgit 1.4.1-2-gfad0