You are not logged in.

#1 2019-05-24 10:45:36

LauritsT
Member
Registered: 2019-05-24
Posts: 3

Custom scripts folder [SOLVED]

Hello!

I wanted to create custom scripts folder. I want to be able to run those scripts using dmenu. Although I added the the path to the $PATH variable in my .bashrc (export PATH="$PATH:/home/user/scripts/"), the scripts won't show up in dmenu. Still, I can run them in terminal just like I can run whatever other scripts that are in /usr/bin. When adding the scripts to /usr/bin, they show up also on dmenu.

Tried already deleting dmenu cache and restarting it as suggested in the archwiki. Gave also all permissions and still it won't show up. Any idea what am I doing wrong? Is some more info needed?

Last edited by LauritsT (2019-05-24 12:22:33)

Offline

#2 2019-05-24 10:48:58

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 6,716

Re: Custom scripts folder [SOLVED]

Your .bashrc is only sourced by bash and afaik even only by interactive shells. Add your PATH adjustment to a more widely relevant file: https://wiki.archlinux.org/index.php/En … s#Per_user

Online

#3 2019-05-24 11:30:34

schard
Member
From: Hannover
Registered: 2016-05-06
Posts: 355
Website

Re: Custom scripts folder [SOLVED]

...or move those scripts to /usr/local/bin.

Offline

#4 2019-05-24 12:16:49

LauritsT
Member
Registered: 2019-05-24
Posts: 3

Re: Custom scripts folder [SOLVED]

V1del wrote:

Your .bashrc is only sourced by bash and afaik even only by interactive shells. Add your PATH adjustment to a more widely relevant file: https://wiki.archlinux.org/index.php/En … s#Per_user


Thanks alot! When I first read it, I got the inkling that I should just put it to ~/.profile. Now reading again, I finally got it. Also, one mistake I did, was, that I didn't have "-" sign in the ~/.config/environment.d/*.conf file. My filename was 60path.conf, when it should have been 60-path.conf.

Now the scripts show up in the dmenu. Solved!

Last edited by LauritsT (2019-05-24 12:22:15)

Offline

#5 2019-05-24 12:21:44

LauritsT
Member
Registered: 2019-05-24
Posts: 3

Re: Custom scripts folder [SOLVED]

schard wrote:

...or move those scripts to /usr/local/bin.

I tested moving them to /usr/local/bin , but that was first only to test if there is something wrong with the script or with the location the script is in. I didn't want to move them there,because I want to keep the my own custom scripts separate from the other scripts. Thanks anyways!

Offline

Board footer

Powered by FluxBB