Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
i3-dmenu-desktop does nothing.
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
siknasa9
n00b
n00b


Joined: 09 Dec 2011
Posts: 62

PostPosted: Thu Oct 30, 2014 4:27 pm    Post subject: i3-dmenu-desktop does nothing. Reply with quote

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
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Thu Oct 30, 2014 6:55 pm    Post subject: Reply with quote

you may check on a clean home directory, therefore create a new user and test it there
Back to top
View user's profile Send private message
siknasa9
n00b
n00b


Joined: 09 Dec 2011
Posts: 62

PostPosted: Fri Oct 31, 2014 12:19 am    Post subject: Reply with quote

Yeah... it worked. Will check my configs in .i3. Thanks.
_________________
Autobots... roll out!!
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Sat Nov 01, 2014 5:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Sat Nov 01, 2014 7:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum