brightness icon indicating copy to clipboard operation
brightness copied to clipboard

Any way to prevent using `sudo`?

Open ronnaf opened this issue 6 years ago • 5 comments

Is there any way to prevent using sudo every time I run this thing? It can be very harmful.

ronnaf avatar Oct 02 '17 15:10 ronnaf

You mean with the CLI? You should never install global packages with sudo to begin with. https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md

After that, you shouldn't be forced to use sudo when using the cli.

SamVerschueren avatar Oct 02 '17 15:10 SamVerschueren

I think sudo is required to be able to run it on Linux regardless. There's an open PR which addresses this https://github.com/kevva/brightness/pull/11.

kevva avatar Oct 03 '17 20:10 kevva

Did anybody meet with the problem when installing the packages?

npm WARN enoent ENOENT: no such file or directory, open '/home/achao/package.json' npm WARN achao No description npm WARN achao No repository field. npm WARN achao No README data npm WARN achao No license field.

#ubuntu 18.04.1 LTS

huskyachao avatar Nov 12 '18 03:11 huskyachao

Sudo is not required on Linux if you add xorg-xbacklight as a dependency. See an example here https://github.com/i3bar/core/blob/db7cc783283020a45dac3e805fa6c6eb8f2fc6ee/example/utils.js#L87

aminnairi avatar Aug 16 '19 07:08 aminnairi

I'm facing similar issue 18 .

BVSPHari avatar Feb 09 '21 14:02 BVSPHari