Executing a program from terminal (noob question)

Dear people,

I used to start a program, rednotebook by executing “rednotebook” in terminal.
However, since yesterday’s update, this does not work anymore.

Now it only starts if I execute “/usr/bin/rednotebook” in terminal.

How do I change this back to only entering rednotebook in terminal?
Symlinks maybe?
Thank you in advance

You can try and add /usr/bin to your $PATH environment variable which is not there right now for some reason. So instead of /usr/bin/rednotebook you can do:

export PATH="$PATH:/usr/bin"
rednotebook

To make this permanent you can set your $PATH permanently by editing your ~/.profile file. See:

1 Like

Can you show whereis rednotebook on console ?

$ whereis rednotebook
rednotebook: /usr/bin/rednotebook /usr/local/bin/rednotebook

This seems to be the solution, but for some reason it did not work for me.

What is the output when you just run rednotebook?

1 Like

I don’t exactly know why, but when I execute rednotebook it now works again! Thank you

lol it stopped working again, I think it has something to do with firejail

$ rednotebook
Reading profile /etc/firejail/rednotebook.profile
Reading profile /etc/firejail/allow-python3.inc
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-exec.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-shell.inc
Reading profile /etc/firejail/whitelist-common.inc
Reading profile /etc/firejail/whitelist-runuser-common.inc
Reading profile /etc/firejail/whitelist-usr-share-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Parent pid 2089986, child pid 2090005
25 programs installed in 70.47 ms
Warning: skipping alternatives for private /etc
Warning: skipping pango for private /etc
Private /etc installed in 36.68 ms
Private /usr/etc installed in 0.02 ms
Warning: cleaning all supplementary groups
Warning: cleaning all supplementary groups
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Blacklist violations are logged to syslog
Warning: cleaning all supplementary groups
Child process initialized in 626.40 ms
Cannot start application: No such file or directory

Parent is shutting down, bye…

so I disable firejail:

$ sudo firecfg --clean

$ rednotebook
bash: /usr/local/bin/rednotebook: No such file or directory

However if I disable firejail and open a new shell, it does work again when I just enter “rednotebook”

Oh, that might explain the launcher in /usr/local/bin.
https://wiki.archlinux.org/title/Firejail#Using_Firejail_by_default