]> git.sur5r.net Git - i3/i3/blobdiff - i3-dmenu-desktop
Use the DPI setting within the i3-config-wizard and i3-nagbar (#2585)
[i3/i3] / i3-dmenu-desktop
index a0549ead7dbb81c37991cc748f782ef2eace0f33..3b81cb20ce008097b9f3dbd412f1fd08a6ea2c87 100755 (executable)
@@ -25,7 +25,11 @@ binmode STDERR, ':utf8';
 # reads in a whole file
 sub slurp {
     my ($filename) = @_;
-    open(my $fh, '<', $filename) or die "$!";
+    my $fh;
+    if (!open($fh, '<', $filename)) {
+        warn "Could not open $filename: $!";
+        return undef;
+    }
     local $/;
     my $result;
     eval {