Wayland,Synaptic continue without administrative privileges

Everything about X, Gnome, KDE, ... and everything running on it

Re: Wayland,Synaptic continue without administrative privile

Postby Dai_trying » 2019-11-23 07:28

Just a note that this would not be called from a personal bin folder without a reboot (or maybe log out/in) as system does not check this folders existence (and add it to $PATH) in real time, only at startup
Dai_trying
 
Posts: 834
Joined: 2016-01-07 12:25

Re: Wayland,Synaptic continue without administrative privile

Postby Head_on_a_Stick » 2019-11-23 12:13

Dai_trying wrote:Just a note that this would not be called from a personal bin folder without a reboot (or maybe log out/in) as system does not check this folders existence (and add it to $PATH) in real time, only at startup

Just logging out & back in again should do it, ~/.profile adds ~/bin to PATH automatically if it exists.
Don't break DebianHow to report bugs

SharpBang GNU/Linux® — a pre-configured Openbox/Tint2 desktop running on Debian stable
User avatar
Head_on_a_Stick
 
Posts: 10695
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Wayland,Synaptic continue without administrative privile

Postby Dai_trying » 2019-11-23 13:00

Head_on_a_Stick wrote:Just logging out & back in again should do it, ~/.profile adds ~/bin to PATH automatically if it exists.


Yes, my point exactly :)
Dai_trying
 
Posts: 834
Joined: 2016-01-07 12:25

Re: Wayland,Synaptic continue without administrative privile

Postby manelinux » 2019-11-23 14:41

it's not necessary to logout or reboot,
first of all, in my laptop, the personal folder bin was recognized without any special action, the bash completion, in my case, recognize the bin personal folder
this is a part of user file .profile at home
------
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
-------
in other case, just add the bin folder to the PATH and run:

source .profile

bye.
manelinux
 
Posts: 4
Joined: 2019-11-22 22:02

Re: Wayland,Synaptic continue without administrative privile

Postby Head_on_a_Stick » 2019-11-23 14:46

manelinux wrote:it's not necessary to logout or reboot,
first of all, in my laptop, the personal folder bin was recognized without any special action, the bash completion, in my case, recognize the bin personal folder

Yes, that's because you already had ~/bin

manelinux wrote:in other case, just add the bin folder to the PATH and run:

source .profile

That won't work for all shells:
Code: Select all
E485:~$ source ~/.profile
loksh: source: not found
E485:~127$

Better to suggest the POSIX version:
Code: Select all
. ~/.profile

But even then you would have to run that command for every new shell that was opened so it would be better to log out & back in again.
Don't break DebianHow to report bugs

SharpBang GNU/Linux® — a pre-configured Openbox/Tint2 desktop running on Debian stable
User avatar
Head_on_a_Stick
 
Posts: 10695
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Wayland,Synaptic continue without administrative privile

Postby manelinux » 2019-11-23 15:04

i dont know why your have not source command friend.
The source command can be used to load any functions file into the current shell script or a command prompt without logout before.
Used to refresh the current shell environment, the source command can also be used in order to import functions into other bash scripts or to run scripts into the current shell environment.

try it.
make a new directory called whatever, put there the file, add this directory to path and run source.
i'm not inventing nothing.

and in this case, we are only adding a folder to the path env var. nothing special.

bye
manelinux
 
Posts: 4
Joined: 2019-11-22 22:02

Re: Wayland,Synaptic continue without administrative privile

Postby Head_on_a_Stick » 2019-11-23 15:30

manelinux wrote:i dont know why your have not source command friend.

It's a bashism and so is not supported by all shells. The POSIX equivalent of source is . (dot) and that is supported by all shells.
Don't break DebianHow to report bugs

SharpBang GNU/Linux® — a pre-configured Openbox/Tint2 desktop running on Debian stable
User avatar
Head_on_a_Stick
 
Posts: 10695
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Wayland,Synaptic continue without administrative privile

Postby manelinux » 2019-11-23 15:46

Yeah! nice note!

i see, loksh is a port of OpenBSD, that's recommended for a resource-constrained systems
Nice to know friend, Thx.

bye
manelinux
 
Posts: 4
Joined: 2019-11-22 22:02

Previous

Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable