You are not logged in.

#1 2023-10-04 15:53:29

Manix
Member
Registered: 2021-04-17
Posts: 81

[SOLVED]zsh: permission denied: app

I build applications via repositories, but it's impossible to launch them via zsh.
(beginner in the field of compilation)
context :
build ncspot in ~/.local/bin/ncspot
- path ~/.local/bin is in .zshrc
- folder tree is user-defined (drwxr-xr-x)
- the ncspot binary is executable (-rwxr-xr-x) and in the user's name.
- If I place myself in the current ncspot folder and launch via ./ncspot, it works.

is this normal?
should i build in sudo? or copy the binary to /usr/bin?

Last edited by Manix (2023-10-04 18:32:11)


I don't love rosbeef

Offline

#2 2023-10-04 16:01:07

dogknowsnx
Guest

Re: [SOLVED]zsh: permission denied: app

How exactly did you add the path? Did you source '.zshrc' afterwards?

EDIT: Anyway: https://wiki.archlinux.org/title/Zsh#Configuring_$PATH

Last edited by dogknowsnx (2023-10-04 16:22:08)

#3 2023-10-04 16:44:17

Manix
Member
Registered: 2021-04-17
Posts: 81

Re: [SOLVED]zsh: permission denied: app

How exactly did you add the path? Did you source '.zshrc' afterwards?

EDIT: Anyway: https://wiki.archlinux.org/title/Zsh#Configuring_$PATH

I export the path ~/.local/bin as in the zsh wiki, except that I've added it to the .zprofile with a shebang.
It works for me:

 ❯ printenv | grep "PATH"
PATH=/home/nico/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin
GOPATH=/home/nico/.local/share/go

I don't love rosbeef

Offline

#4 2023-10-04 17:30:24

dogknowsnx
Guest

Re: [SOLVED]zsh: permission denied: app

If this is solved, please edit the title as such, otherwise

ls -la ~/.local/bin
which ncspot

?

#5 2023-10-04 17:51:26

Manix
Member
Registered: 2021-04-17
Posts: 81

Re: [SOLVED]zsh: permission denied: app

not yet solved smile

 ❯ ls -la .local/bin
total 24K
drwxr-xr-x 1 nico nico 154 Oct  4 16:44 ./
drwxr-xr-x 1 nico nico  26 Apr  1  2023 ../
drwxr-xr-x 1 nico nico 188 Oct  2 14:49 cascade/
drwxr-xr-x 1 nico nico 466 Oct  4 16:44 dircolors/
drwxr-xr-x 1 nico nico  40 Sep 19 14:16 Discord/
drwxr-xr-x 1 nico nico 204 Sep 18 09:42 ncspot/
drwxr-xr-x 1 nico nico  30 Oct  4 09:06 Telegram/
-rwxr-xr-x 1 nico nico 542 Apr 15 15:03 monitoring*
-rwxr-xr-x 1 nico nico 336 May 16 17:25 power*
-rwxr-xr-x 1 nico nico 663 Apr 15 10:39 quick_notes*
-rwxr-xr-x 1 nico nico 247 Apr 16 09:24 temp*
-rwxr-xr-x 1 nico nico 422 Apr 15 10:47 updates*
-rwxr-xr-x 1 nico nico 464 Sep 18 09:48 zik*
 ❯ which ncspot                       
ncspot not found

I don't love rosbeef

Offline

#6 2023-10-04 18:00:52

dogknowsnx
Guest

Re: [SOLVED]zsh: permission denied: app

For the majority of those apps there should be PKGBUILDs already, so you can install them with pacman...
As for $PATH, the executable/binary needs to be in a directory that's in $PATH...

EDIT: 'telegram-desktop' is already in the 'extra' repo - same for 'discord'... even 'ncspot'...
EDIT#2: Removed the AUR from the equation

Last edited by dogknowsnx (2023-10-04 18:25:41)

#7 2023-10-04 18:31:46

Manix
Member
Registered: 2021-04-17
Posts: 81

Re: [SOLVED]zsh: permission denied: app

executables must be specifically in the path, not in the tree :) I understand better.
a simple simlink solved the problem thanks!

EDIT: 'telegram-desktop' is already in the 'extra' repo - same for 'discord'... even 'ncspot'...
EDIT#2: Removed the AUR from the equation

EDIT:
telegram and discord are .appimage (with their .desktop) sometimes need build with certain options.
in the case of ncspot, it's the album covers.
we can modify the PKGBUILD to enable this feature, but do it every time grrrrrr :)

Last edited by Manix (2023-10-05 07:20:50)


I don't love rosbeef

Offline

Board footer

Powered by FluxBB