~invidian/shutter/perl-5.30

« back to all changes in this revision

Viewing changes to bin/shutter

  • Committer: Michael Kogan
  • Date: 2018-03-25 14:21:33 UTC
  • Revision ID: michael_kogan-20180325142133-zif8yemcqk1o6juk
Fix LP #1354563 (xdg-open fails for paths containing non-ASCII characters)

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
#define constants
107
107
#--------------------------------------
108
108
use constant MAX_ERROR       => 5;
109
 
use constant SHUTTER_REV     => 'Rev.1291';
 
109
use constant SHUTTER_REV     => 'Rev.1292';
110
110
use constant SHUTTER_NAME    => 'Shutter';
111
111
use constant SHUTTER_VERSION => '0.94';
112
112
#--------------------------------------
6043
6043
 
6044
6044
        #open folders in filebrowser
6045
6045
        foreach my $ckey (@show_in_folder_array) {
6046
 
            $shf->xdg_open( undef, $session_screens{$ckey}->{'folder'} );
 
6046
            utf8::encode( my $folder_name_utf8 = $session_screens{$ckey}->{'folder'} );
 
6047
            $shf->xdg_open( undef, $folder_name_utf8 );
6047
6048
        }
6048
6049
 
6049
6050
        return TRUE;