<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Below my ~/.profile.</p>
<p>-------------------------------</p>
<p># Append our default paths<br>
#append_path '~/usr/bin'<br>
#append_path '~/usr/tools/Root_Actions'<br>
#append_path '~/usr/tools/PDF'<br>
<br>
# Force PATH to be environment<br>
#export PATH<br>
<br>
#export PATH="$PATH:$(du -L ~/usr/bin/ | cut -f2 | tr '\n' ':' |
sed 's/:*$//')"<br>
export PATH="$PATH:/home/andrea/usr/tools/Root_Actions<br>
</p>
<p>-------------------------------------</p>
<p>Help me to use the correct way.</p>
<p>P.S.</p>
<p>The commented line before the last one is what I have in .bashrc
where work properly, but just for the shell.</p>
<p><br>
</p>
<div class="moz-cite-prefix">Il 12/05/23 08:47, Konstantin Kharlamov
ha scritto:<br>
</div>
<blockquote type="cite"
cite="mid:9b7c3eb4f633f327f8b3b9c9393c0ab19aedff8d.camel@yandex.ru">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div>FTR, can you post what exactly have you written in your
~/.profile file?</div>
<div><br>
</div>
<div>On Fri, 2023-05-12 at 08:45 +0200, Zener wrote:</div>
<blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px
#729fcf solid;padding-left:1ex">
<div dir="auto">Yes... a full Path for the exec in the .desktop
works, but too complicate for maintenance.
<div dir="auto"><br>
</div>
<div dir="auto">Anyway now I'd like to see clear thought this
issue....</div>
</div>
<div><br>
</div>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Il gio 11 mag 2023, 23:26
Konstantin Kharlamov <<a href="mailto:hi-angel@yandex.ru"
moz-do-not-send="true" class="moz-txt-link-freetext">hi-angel@yandex.ru</a>>
ha scritto:<br>
</div>
<blockquote type="cite" style="margin:0 0 0 .8ex;
border-left:2px #729fcf solid;padding-left:1ex">
<div>
<div>In this case I'm not sure, perhaps anyone else has
something to say about that…</div>
<div><br>
</div>
<div>Though, can't you just write a full path inside your
.desktop file?</div>
<div><br>
</div>
<div>On Thu, 2023-05-11 at 22:05 +0200, Zener wrote:</div>
<blockquote type="cite" style="margin:0 0 0 .8ex;
border-left:2px #729fcf solid;padding-left:1ex">
<div dir="auto">
<div>It still doesn't work...again After reboot...</div>
<div dir="auto">Is wayland, Dolphin or what the
issue?!?<br>
<br>
<div class="gmail_quote" dir="auto">
<div dir="ltr" class="gmail_attr">Il gio 11 mag
2023, 21:47 Konstantin Kharlamov <<a
href="mailto:hi-angel@yandex.ru"
target="_blank" rel="noreferrer"
moz-do-not-send="true"
class="moz-txt-link-freetext">hi-angel@yandex.ru</a>>
ha scritto:<br>
</div>
<blockquote type="cite" style="margin:0 0 0 .8ex;
border-left:2px #729fcf solid;padding-left:1ex">
<div>
<div>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.</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>On Thu, 2023-05-11 at 20:57 +0200, Zener
wrote:</div>
<blockquote type="cite" style="margin:0 0 0
.8ex; border-left:2px #729fcf
solid;padding-left:1ex">
<div dir="auto">
<div>Ok... I've used ~/.profile (because
it's for a personal config) but It
doesn't work.<br>
What's a correct syntax?<br>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Il
gio 11 mag 2023, 20:52 Konstantin
Kharlamov <<a
href="mailto:hi-angel@yandex.ru"
rel="noreferrer noreferrer"
target="_blank"
moz-do-not-send="true"
class="moz-txt-link-freetext">hi-angel@yandex.ru</a>>
ha scritto:<br>
</div>
<blockquote type="cite"
style="margin:0 0 0 .8ex;
border-left:2px #729fcf
solid;padding-left:1ex">
<div>On Thu, 2023-05-11 at 20:28
+0200, Zener wrote:<br>
> Hi.<br>
> <br>
> I use Dolphin filemanager on
a gnome-session on wayland - Arch
Linux.<br>
> <br>
> I've set the correct PATH on
.bashrc, in fact from terminal my
exec <br>
> files work but not to from a
.desktop file in servicemenu of
Dolphin.<br>
> <br>
> How can i add the correct
PATH on Dolphin?<br>
> <br>
> Regards.<br>
> <br>
</div>
<div><br>
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).<br>
</div>
<div><br>
Use `/etc/profile` file instead,
the $PATH is usually set there.<br>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div><span></span></div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div><span></span></div>
</div>
</blockquote>
</div>
</blockquote>
<div><br>
</div>
<div><span></span></div>
</blockquote>
</body>
</html>