How to share Baloo index in a network.

2023-03-12 Thread Zener

Hi.

I've got some computer in a network, each one with its files and baloo 
daemon active.


Can I share each baloo index along with each computer?

Thanks.



How to set PATH for Dolphin servicemenu

2023-05-11 Thread Zener

Hi.

I use Dolphin filemanager on a gnome-session on wayland - Arch Linux.

I've set the correct PATH on .bashrc, in fact from terminal my exec 
files work but not to from a .desktop file in servicemenu of Dolphin.


How can i add the correct PATH on Dolphin?

Regards.



Re: How to set PATH for Dolphin servicemenu

2023-05-11 Thread Zener
It still doesn't work...again After reboot...
Is wayland, Dolphin or what the issue?!?

Il gio 11 mag 2023, 21:47 Konstantin Kharlamov  ha
scritto:

> Please, use "reply all" in the mail client so that discussion gets
> duplicated on the list and someone else may come up with ideas and what not.
>
> So, it's, interesting: actually, I just realized that both
> /etc/environment and /etc/profile as well as ~/.profile are all read by
> shells. I never thought about that.
>
> So, if you modified your ~/.profile file, I would presume it should work
> (I never tried though, just judging by what I just read on the topic),
> however I think you need to restart DE (that is, log out and log back in)
> for these changes to start working. That is because your DE would need to
> get launched with these env. variables, and then it would launch ".desktop"
> file apps using the environment it got.
>
> On Thu, 2023-05-11 at 20:57 +0200, Zener wrote:
>
> Ok... I've used ~/.profile (because it's for a personal config) but It
> doesn't work.
> What's a correct syntax?
>
> Il gio 11 mag 2023, 20:52 Konstantin Kharlamov  ha
> scritto:
>
> On Thu, 2023-05-11 at 20:28 +0200, Zener wrote:
> > Hi.
> >
> > I use Dolphin filemanager on a gnome-session on wayland - Arch Linux.
> >
> > I've set the correct PATH on .bashrc, in fact from terminal my exec
> > files work but not to from a .desktop file in servicemenu of Dolphin.
> >
> > How can i add the correct PATH on Dolphin?
> >
> > Regards.
> >
>
> Right, because `.bashrc` is only read by bash. When you launch an app from
> a desktop file, there's no bash involved (unless of course the Exec= call
> inside .desktop file calls bash explicitly).
>
> Use `/etc/profile` file instead, the $PATH is usually set there.
>
>
>


Re: How to set PATH for Dolphin servicemenu

2023-05-11 Thread Zener
Yes... a full Path for the exec in the .desktop works, but too complicate
for maintenance.

Anyway now I'd like to see clear thought this issue

Il gio 11 mag 2023, 23:26 Konstantin Kharlamov  ha
scritto:

> In this case I'm not sure, perhaps anyone else has something to say about
> that…
>
> Though, can't you just write a full path inside your .desktop file?
>
> On Thu, 2023-05-11 at 22:05 +0200, Zener wrote:
>
> It still doesn't work...again After reboot...
> Is wayland, Dolphin or what the issue?!?
>
> Il gio 11 mag 2023, 21:47 Konstantin Kharlamov  ha
> scritto:
>
> Please, use "reply all" in the mail client so that discussion gets
> duplicated on the list and someone else may come up with ideas and what not.
>
> So, it's, interesting: actually, I just realized that both
> /etc/environment and /etc/profile as well as ~/.profile are all read by
> shells. I never thought about that.
>
> So, if you modified your ~/.profile file, I would presume it should work
> (I never tried though, just judging by what I just read on the topic),
> however I think you need to restart DE (that is, log out and log back in)
> for these changes to start working. That is because your DE would need to
> get launched with these env. variables, and then it would launch ".desktop"
> file apps using the environment it got.
>
> On Thu, 2023-05-11 at 20:57 +0200, Zener wrote:
>
> Ok... I've used ~/.profile (because it's for a personal config) but It
> doesn't work.
> What's a correct syntax?
>
> Il gio 11 mag 2023, 20:52 Konstantin Kharlamov  ha
> scritto:
>
> On Thu, 2023-05-11 at 20:28 +0200, Zener wrote:
> > Hi.
> >
> > I use Dolphin filemanager on a gnome-session on wayland - Arch Linux.
> >
> > I've set the correct PATH on .bashrc, in fact from terminal my exec
> > files work but not to from a .desktop file in servicemenu of Dolphin.
> >
> > How can i add the correct PATH on Dolphin?
> >
> > Regards.
> >
>
> Right, because `.bashrc` is only read by bash. When you launch an app from
> a desktop file, there's no bash involved (unless of course the Exec= call
> inside .desktop file calls bash explicitly).
>
> Use `/etc/profile` file instead, the $PATH is usually set there.
>
>
>
>


Re: How to set PATH for Dolphin servicemenu

2023-05-12 Thread Zener
Anyway... Is not possibile to define a parameter $PATH directly in the .
desktop file?

e.g. :
PATH=`~/bin
exec=$PATH/command

I tried as above but that syntax doesn't work.

Il gio 11 mag 2023, 23:26 Konstantin Kharlamov  ha
scritto:

> In this case I'm not sure, perhaps anyone else has something to say about
> that…
>
> Though, can't you just write a full path inside your .desktop file?
>
> On Thu, 2023-05-11 at 22:05 +0200, Zener wrote:
>
> It still doesn't work...again After reboot...
> Is wayland, Dolphin or what the issue?!?
>
> Il gio 11 mag 2023, 21:47 Konstantin Kharlamov  ha
> scritto:
>
> Please, use "reply all" in the mail client so that discussion gets
> duplicated on the list and someone else may come up with ideas and what not.
>
> So, it's, interesting: actually, I just realized that both
> /etc/environment and /etc/profile as well as ~/.profile are all read by
> shells. I never thought about that.
>
> So, if you modified your ~/.profile file, I would presume it should work
> (I never tried though, just judging by what I just read on the topic),
> however I think you need to restart DE (that is, log out and log back in)
> for these changes to start working. That is because your DE would need to
> get launched with these env. variables, and then it would launch ".desktop"
> file apps using the environment it got.
>
> On Thu, 2023-05-11 at 20:57 +0200, Zener wrote:
>
> Ok... I've used ~/.profile (because it's for a personal config) but It
> doesn't work.
> What's a correct syntax?
>
> Il gio 11 mag 2023, 20:52 Konstantin Kharlamov  ha
> scritto:
>
> On Thu, 2023-05-11 at 20:28 +0200, Zener wrote:
> > Hi.
> >
> > I use Dolphin filemanager on a gnome-session on wayland - Arch Linux.
> >
> > I've set the correct PATH on .bashrc, in fact from terminal my exec
> > files work but not to from a .desktop file in servicemenu of Dolphin.
> >
> > How can i add the correct PATH on Dolphin?
> >
> > Regards.
> >
>
> Right, because `.bashrc` is only read by bash. When you launch an app from
> a desktop file, there's no bash involved (unless of course the Exec= call
> inside .desktop file calls bash explicitly).
>
> Use `/etc/profile` file instead, the $PATH is usually set there.
>
>
>
>


Re: How to set PATH for Dolphin servicemenu

2023-05-12 Thread Zener

Below my ~/.profile.

---

# Append our default paths
#append_path '~/usr/bin'
#append_path '~/usr/tools/Root_Actions'
#append_path '~/usr/tools/PDF'

# Force PATH to be environment
#export PATH

#export PATH="$PATH:$(du -L ~/usr/bin/ | cut -f2 | tr '\n' ':' | sed 
's/:*$//')"

export PATH="$PATH:/home/andrea/usr/tools/Root_Actions

-

Help me to use the correct way.

P.S.

The commented line before the last one is what I have in .bashrc where 
work properly, but just for the shell.



Il 12/05/23 08:47, Konstantin Kharlamov ha scritto:

FTR, can you post what exactly have you written in your ~/.profile file?

On Fri, 2023-05-12 at 08:45 +0200, Zener wrote:
Yes... a full Path for the exec in the .desktop works, but too 
complicate for maintenance.


Anyway now I'd like to see clear thought this issue

Il gio 11 mag 2023, 23:26 Konstantin Kharlamov  
ha scritto:
In this case I'm not sure, perhaps anyone else has something to say 
about that…


Though, can't you just write a full path inside your .desktop file?

On Thu, 2023-05-11 at 22:05 +0200, Zener wrote:

It still doesn't work...again After reboot...
Is wayland, Dolphin or what the issue?!?

Il gio 11 mag 2023, 21:47 Konstantin Kharlamov  
ha scritto:
Please, use "reply all" in the mail client so that discussion gets 
duplicated on the list and someone else may come up with ideas and 
what not.


So, it's, interesting: actually, I just realized that both 
/etc/environment and /etc/profile as well as ~/.profile are all 
read by shells. I never thought about that.


So, if you modified your ~/.profile file, I would presume it 
should work (I never tried though, just judging by what I just 
read on the topic), however I think you need to restart DE (that 
is, log out and log back in) for these changes to start working. 
That is because your DE would need to get launched with these env. 
variables, and then it would launch ".desktop" file apps using the 
environment it got.


On Thu, 2023-05-11 at 20:57 +0200, Zener wrote:
Ok... I've used ~/.profile (because it's for a personal config) 
but It doesn't work.

What's a correct syntax?

Il gio 11 mag 2023, 20:52 Konstantin Kharlamov 
 ha scritto:

On Thu, 2023-05-11 at 20:28 +0200, Zener wrote:
> Hi.
>
> I use Dolphin filemanager on a gnome-session on wayland - Arch 
Linux.

>
> I've set the correct PATH on .bashrc, in fact from terminal my 
exec
> files work but not to from a .desktop file in servicemenu of 
Dolphin.

>
> How can i add the correct PATH on Dolphin?
>
> Regards.
>

Right, because `.bashrc` is only read by bash. When you launch 
an app from a desktop file, there's no bash involved (unless of 
course the Exec= call inside .desktop file calls bash explicitly).


Use `/etc/profile` file instead, the $PATH is usually set there.






How to set a recursevly PATH under wayland.

2023-05-12 Thread Zener

  
  
Hi.
I'd like a recursevly path for exec in .desktop files under
  wayland.
As wiki https://wiki.archlinux.org/title/Environment_variables#Wayland_environment,
  i can add personal path in ~/.config/environment.d/envvars.conf.
So, adding in that file PATH=$PATH:/home/myhome/my/PATH
it works for that directory, but I need as PATH
  all subdirectory too.
In .bashrc, for example, I solved just for the shell adding as
  below.
export
  PATH="$PATH:$(du -L ~/usr/bin/ | cut -f2 | tr '\n' ':' | sed
  's/:*$//')"
  
  Can I use something somilar for the wayland enviroment?
Thanks.
  
  



Re: How to set a recursevly PATH under wayland.

2023-05-12 Thread Zener
I cannot understand
I asked for Path in wayland enviroment which don't read those file for the
Shell...


Il ven 12 mag 2023, 15:27 Reindl Harald  ha scritto:

>
>
> Am 12.05.23 um 15:15 schrieb Zener:
> > I'd like a recursevly path for exec in .desktop files under wayland.
> >
> > As wiki
> >
> https://wiki.archlinux.org/title/Environment_variables#Wayland_environment,
> i can add personal path in ~/.config/environment.d/envvars.conf.
> >
> > So, adding in that file PATH=$PATH:/home/myhome/my/PATH it works for
> > that directory, but I need as PATH all subdirectory too.
> >
> > In .bashrc, for example, I solved just for the shell adding as below.
> >
> > export PATH="$PATH:$(du -L ~/usr/bin/ | cut -f2 | tr '\n' ':' | sed
> > 's/:*$//')"
> >
> > Can I use something somilar for the wayland enviroment?
>
> https://linuxize.com/post/bashrc-vs-bash-profile/
>
> but why for gods sake would someone want such microsoft-behavior which
> is the root cause for tons of security issues?
>