Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #263800

Re: Modify user PATH in GNOME in Debian 12

From gene heskett <gheskett@shentel.net>
Newsgroups linux.debian.user
Subject Re: Modify user PATH in GNOME in Debian 12
Date 2023-11-23 21:10 +0100
Message-ID <HDobo-7CBV-3@gated-at.bofh.it> (permalink)
References <HDeOJ-7u22-1@gated-at.bofh.it> <HDfrr-7uz8-3@gated-at.bofh.it> <HDiIG-7ylF-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 11/23/23 09:18, Greg Wooledge wrote:
> On Thu, Nov 23, 2023 at 05:43:18AM -0500, gene heskett wrote:
>> I'm user 1000 and have had the expected results by putting a modified path
>> in my .profile but it is not automatic, I have to . .profile for every
>> terminal I start. I have 2 non-stock dirs in my /home/me path, bin and
>> AppImages, and I put them ahead of the rest of the default path. Now if
>> someone would tell me how to make that automatic I'd be delighted.
> 
> There's nothing that will work in *all* setups.  You have to do what
> works for *your* setup.
> 
> Last I heard, you use a third-party desktop environment (Trinity or
> something like that), and from your context above it looks like you use a
> GUI Display Manager to login.  I also believe you're using an X session
> (not Wayland) and I'm guessing that your DE is normal, not GNOME-like,
> in its terminal spawning.
> 
> For this setup, I'd go with the ~/.xsessionrc file.  Create the
> file /home/gene/.xsessionrc and put this in it:
> 
>      PATH=$HOME/bin:$HOME/AppImages:$PATH
>      GENETEST=hello
>      export PATH GENETEST
> 
> Then on your next login, see whether you have the correct PATH, and
> whether you have the GENETEST variable in your environment (this is just a
> debugging aid, to be sure the file was used).  If all works as expected,
> you can get rid of the GENETEST variable later.  It shouldn't hurt
> anything, just uses a few extra bytes of memory, so it's a low priority.
> 
> If you don't get the GENETEST variable in any program's environment,
> then your OS isn't Debian enough (or your DE clears it out, or your
> terminals are spawned in a GNOME-like manner...), and you'll have to
> find a different solution.
> 
Got it, thanks Greg

> .

Cheers, Gene Heskett.
-- 
"There are four boxes to be used in defense of liberty:
  soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
  - Louis D. Brandeis

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Modify user PATH in GNOME in Debian 12 Bernhard Walle <bernhard.walle@posteo.eu> - 2023-11-23 11:10 +0100
  Re: Modify user PATH in GNOME in Debian 12 gene heskett <gheskett@shentel.net> - 2023-11-23 11:50 +0100
    Re: Modify user PATH in GNOME in Debian 12 Greg Wooledge <greg@wooledge.org> - 2023-11-23 15:20 +0100
      Re: Modify user PATH in GNOME in Debian 12 Max Nikulin <manikulin@gmail.com> - 2023-11-23 16:40 +0100
      Re: Modify user PATH in GNOME in Debian 12 gene heskett <gheskett@shentel.net> - 2023-11-23 21:10 +0100
  Re: Modify user PATH in GNOME in Debian 12 Greg Wooledge <greg@wooledge.org> - 2023-11-23 15:10 +0100
    Re: Modify user PATH in GNOME in Debian 12 Max Nikulin <manikulin@gmail.com> - 2023-11-23 17:00 +0100
      Re: Modify user PATH in GNOME in Debian 12 Greg Wooledge <greg@wooledge.org> - 2023-11-23 18:30 +0100
        Re: Modify user PATH in GNOME in Debian 12 Max Nikulin <manikulin@gmail.com> - 2023-11-24 18:00 +0100
          Re: Modify user PATH in GNOME in Debian 12 Greg Wooledge <greg@wooledge.org> - 2023-11-24 18:20 +0100
            Re: Modify user PATH in GNOME in Debian 12 Max Nikulin <manikulin@gmail.com> - 2023-11-25 04:30 +0100
              Re: Modify user PATH in GNOME in Debian 12 Greg Wooledge <greg@wooledge.org> - 2023-11-25 05:00 +0100
                Re: Modify user PATH in GNOME in Debian 12 Max Nikulin <manikulin@gmail.com> - 2023-11-25 10:50 +0100

csiph-web