On Tue, Aug 20, 2019 at 11:24:55PM +0300, Andrei POPESCU wrote: > On Ma, 20 aug 19, 10:36:19, Greg Wooledge wrote: > > On Tue, Aug 20, 2019 at 02:27:40PM +0000, Vipul wrote: > > > Hi there, > > > > > > From few days, I'm trying find answer of a question "which program does > > > read ~/.profile if I login from graphical user interface (for ex: > > > GNOME)?". > > > > https://wiki.debian.org/Xsession > > https://wiki.debian.org/EnvironmentVariables > > > > These are, of course, incomplete. > > > > The short answer is: if you login through a Display Manager (a graphical > > login program), NOTHING reads ~/.profile. Ever. > > Some (most?) X terminal emulators have the option to start a login > shell, which would read ~/.profile.
Yeah, the old 1980s academia memes strike back. We come full circle. "I can't get GNOME to do anything I tell it, so I'll work around that by making GNOME make dbus make footerminalizer run my shell as a login shell, and that'll read my dot files that should've been read a dozen processes ago!" All the lessons that we learned, all the wisdom that we dispensed, all the FAQs we wrote, all the heartache and agony and repetition, all the sheer bloody WORK that we have put in for the last 20 years to try to teach people the right way to do things... ... has all gone up in smoke, because of fucking GNOME. You can't do things the right way now. You have to do them the wrong way. And now people will think that running login shells in every terminal session is the RIGHT way. And thus we start from scratch. Cue a thousand newbies asking why there's a .bashrc file and why it doesn't get read unless they source it from their profile, and why they can't just put everything in profile. Cue ten thousand people giving wrong answers, partly wrong answers, anecdotes, offtopic digressions.

