You are not logged in.

#1 2020-07-02 23:58:28

winrg
Member
Registered: 2020-06-28
Posts: 4

script is in path but wont show up in dmenu

i have a scripts folder in my home directory. id like to be able to run things in it from dmenu. the folder is in the path and the scripts are exectuable. despite this, they do not show up in dmenu. how do i make them appear?

Offline

#2 2020-07-02 23:59:31

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,518
Website

Re: script is in path but wont show up in dmenu

How are you launching dmenu?  Dmenu itself is just a menu, presumably you mean dmenu_run, right?  How is that launched?  I suspect your direcory is added to the PATH in a different environment than the parent process of dmenu_run.

Last edited by Trilby (2020-07-03 00:00:15)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2020-07-03 00:00:21

winrg
Member
Registered: 2020-06-28
Posts: 4

Re: script is in path but wont show up in dmenu

i am using i3, which launches it using dmenu_run

Offline

#4 2020-07-03 00:01:35

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,518
Website

Re: script is in path but wont show up in dmenu

And how do you start i3, and where/when do you add your scripts folder to PATH?  Please post your actual profiles/xinitrc/shellrc/configs that are relevant for these questions.

Last edited by Trilby (2020-07-03 00:01:48)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2020-07-03 00:04:19

winrg
Member
Registered: 2020-06-28
Posts: 4

Re: script is in path but wont show up in dmenu

im starting i3 using cdm. i have the path set in my .bashrc, would that not apply to other programs than bash?

Offline

#6 2020-07-03 00:16:52

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,518
Website

Re: script is in path but wont show up in dmenu

No it would not.  Environment variables are not global variables.  CDM is launched before bashrc is read, so i3, and dmenu_run in turn, inherit the environment from CDM.  Your bashrc modifies the PATH variable after this.

I suspect you'd have to define it in cdmrc also - but cdm has never made much sense to me.  What does CDM do for you that just autostaring X from your profile wouldn't?

Last edited by Trilby (2020-07-03 00:19:01)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2020-07-03 01:29:48

winrg
Member
Registered: 2020-06-28
Posts: 4

Re: script is in path but wont show up in dmenu

i am terribly new to this and honestly just used it because it was at the top of the list on the wiki. what do you mean by autostarting? as in: from a script or is there a config option or what

Last edited by winrg (2020-07-03 01:30:44)

Offline

#8 2020-07-03 01:33:44

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,518
Website

Re: script is in path but wont show up in dmenu

https://wiki.archlinux.org/index.php/Xi … X_at_login

The primary purpose of display managers is to break things.  If are using just a WM like i3, and you don't have specific reasons to use a DM, don't.  And if you do have a reason to use a DM, you may want to look to the more typical ones.  You picked a very unusual niche console display manager ... just because it was the first in an alphabetical list.

Last edited by Trilby (2020-07-03 01:35:58)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2020-07-03 13:28:00

cirrus
Member
From: Glasgow Scotland
Registered: 2012-08-24
Posts: 341
Website

Re: script is in path but wont show up in dmenu

Trilby wrote:

https://wiki.archlinux.org/index.php/Xi … X_at_login

The primary purpose of display managers is to break things.


Quote Of the Day

Offline

Board footer

Powered by FluxBB