I get permission denied
when not using sudo and with sudo i get
/usr/bin/nekoray: line 3: /root/.local/opt/nekoray/launcher: No such file or directory
I had to change /usr/bin/nekoray permissions to 755
Git Clone URL: | https://aur.archlinux.org/nekoray.git (read-only, click to copy) |
---|---|
Package Base: | nekoray |
Description: | Qt based cross-platform GUI proxy configuration manager (backend: v2ray / sing-box) |
Upstream URL: | https://github.com/MatsuriDayo/nekoray |
Keywords: | gui v2ray |
Licenses: | GPL 3.0 |
Conflicts: | nekoray |
Provides: | nekoray |
Submitter: | m47h4r |
Maintainer: | ali.molaei |
Last Packager: | ali.molaei |
Votes: | 5 |
Popularity: | 2.20 |
First Submitted: | 2022-10-29 15:47 (UTC) |
Last Updated: | 2023-02-04 15:48 (UTC) |
I get permission denied
when not using sudo and with sudo i get
/usr/bin/nekoray: line 3: /root/.local/opt/nekoray/launcher: No such file or directory
I had to change /usr/bin/nekoray permissions to 755
This package should have the -bin
suffix as it uses a binary release and does not build from source. It should also not install to the home directory of the user creating that package. This user might not exist on the system where the package is installed. The package should come with an install script similar to tor-browser if it has to be installed in ~/.local/opt
/ in the user directory to function properly.
The desktop file is being incorrectly placed in .local/share/applications
, rather than /usr/share/applications/
, this results in it only existing for one user, instead of the whole system.
I kept getting this error:
chown: invalid group: ‘<myusername>:<myusername>’
So in PKGBUILD I changed the corresponding line to the following and it worked.
chown -R "$USER":users "nekoray"
Due to some limitations see here, I wasn't able to compile via source, so this downloads and populates a pre-compiled zip file (this is temporary, hence lack of -bin
in name). And since the application operates in its main directory, I had to install it in the user's home directory (otherwise, root permissions were needed to run the app). This is my first PKGBUILD, so let me know if something could be handled better/more efficiently. Enjoy freedom :)
Pinned Comments
m47h4r commented on 2022-10-29 15:58 (UTC) (edited on 2022-10-29 17:08 (UTC) by m47h4r)
Due to some limitations see here, I wasn't able to compile via source, so this downloads and populates a pre-compiled zip file (this is temporary, hence lack of
-bin
in name). And since the application operates in its main directory, I had to install it in the user's home directory (otherwise, root permissions were needed to run the app). This is my first PKGBUILD, so let me know if something could be handled better/more efficiently. Enjoy freedom :)