[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bash invocation, was Re: 60-serial.rules, broken



On 6/9/23 10:22, tomas@tuxteam.de wrote:
On Fri, Jun 09, 2023 at 09:47:56AM -0400, gene heskett wrote:
On 6/9/23 09:33, Greg Wooledge wrote:
On Fri, Jun 09, 2023 at 09:25:25AM -0400, gene heskett wrote:
On 6/9/23 07:33, Greg Wooledge wrote:
Finally, remember that .xsession is run by /bin/sh, not by your login
shell.  So, if you've got bash syntax in .profile (or anything it dots
in, such as .bashrc), then you cannot safely dot it in from .xsession.

.
Apparently this last is true. I put it as next to last line in
/etc/X11/Xsession and killed everything I had running but did let me exec a
new xfce4 terminal, which did not get the fix so fixed it back to original
but still had to reboot.

I would NOT advise modifying the files in /etc/X11, especially if you
aren't 100% sure what you're doing.  There are lot of subtle and delicate
moving parts in there.

Whatever you end up doing to get your PATH set properly at login should
happen only in your $HOME directory.

Start with .xsessionrc (the Debian hack) and see if that works.  Put a
PATH modification in there, and also put something like

export GENETEST=hello

in a $HOME/.xsessionrc had no effect on a new xfce4 terminal.

Make sure /etc/X11/Xsession.options has a non-commented out

   allow-user-xsession
it was un-commented and still is.

I think on my box it wasn't the default.

Cheers

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
Genes Web page <http://geneslinuxbox.net:6309/>


Reply to: