View previous topic :: View next topic |
Author |
Message |
siknasa9 n00b
Joined: 09 Dec 2011 Posts: 62
|
Posted: Thu Oct 30, 2014 4:27 pm Post subject: i3-dmenu-desktop does nothing. |
|
|
Not sure what happened because I haven't changed any permissions, but when I run my keyboard shortcut for dmenu, I get nothing. When I run it from the terminal, I get
Code: | Permission Denied at /usr/bin/i3-dmenu-desktop line 28. |
Looking at line 28, I realize I have no idea how to read perl. So, here's the first 40 lines of the script for, hopefully, one of you more informed Gentooites to decipher what I might do next. Thanks.
Code: | #!/usr/bin/env perl
# vim:ts=4:sw=4:expandtab
#
# © 2012-2014 Michael Stapelberg
#
# No dependencies except for perl ≥ v5.10
use strict;
use warnings qw(FATAL utf8);
use Data::Dumper;
use IPC::Open2;
use POSIX qw(locale_h);
use File::Find;
use File::Basename qw(basename);
use File::Temp qw(tempfile);
use Getopt::Long;
use Pod::Usage;
use v5.10;
use utf8;
use open ':encoding(UTF-8)';
binmode STDOUT, ':utf8';
binmode STDERR, ':utf8';
# reads in a whole file
sub slurp {
my ($filename) = @_;
open(my $fh, '<', $filename) or die "$!";
local $/;
my $result;
eval {
$result = <$fh>;
};
if ($@) {
warn "Could not read $filename: $@";
return undef;
} else {
return $result;
}
} |
_________________ Autobots... roll out!! |
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Thu Oct 30, 2014 6:55 pm Post subject: |
|
|
you may check on a clean home directory, therefore create a new user and test it there |
|
Back to top |
|
|
siknasa9 n00b
Joined: 09 Dec 2011 Posts: 62
|
Posted: Fri Oct 31, 2014 12:19 am Post subject: |
|
|
Yeah... it worked. Will check my configs in .i3. Thanks. _________________ Autobots... roll out!! |
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Sat Nov 01, 2014 5:46 pm Post subject: |
|
|
i use i3wm for quite a while, i posted in another thread my config. you may reuse it or adapt it.
i managed to add some functionality which is missing in the default config. |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Sat Nov 01, 2014 7:31 pm Post subject: |
|
|
It's dying on the open(), which doesn't say much other than a file somewhere needs a chmod u+r. We'd need to know what's calling that sub and what the filename is exactly.
If you don't mind messing with portage-managed files, throw a "use autodie qw(open);" anywhere in that pile of stuff at the top, and it'll give you a much more useful error message (with the filename included). |
|
Back to top |
|
|
|