History log of /haiku/data/system/boot/SetupEnvironment
Revision Date Author Comments
# ea989da7 29-Feb-2024 Oscar Lesta <oscar.lesta@gmail.com>

SetupEnvironment: export XDG_STATE_HOME env var.

Fixes: #18257.

Change-Id: Id7f81b4be3b63f383963f0d752e6ffeda41c3945
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7506
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>


# 3af80113 11-Dec-2022 Oscar Lesta <oscar.lesta@gmail.com>

env vars: move XDG Base Dirs variable exports to SetupEnvironment

This makes sure that apps get access to these variables regardless if
they are started from a shell or from GUI (double-click from Tracker,
desklink, etc).

Fixes #18130.

Change-Id: I82e2884e460fad7d6ec16e7b624c5cd2fcf807df
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5897
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>


# 8aae4f21 21-May-2021 Adrien Destugues <pulkomandy@pulkomandy.tk>

SetupEnvironment: set USER and GROUP variables

Fixes #7682.

Change-Id: I85ea7b41b838edaeb9c92d280e9420bd70b30fd1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3958
Reviewed-by: Rene Gollent <rene@gollent.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# bddcee2a 21-Aug-2018 Augustin Cavalier <waddlesplash@gmail.com>

data: Fix locale setup in SetupEnvironment and remove it from etc/profile.

These changes were made to etc/profile by PulkoMandy last year, but he missed
making the change in SetupEnvironment. etc/profile calls SetupEnvironment,
so we can consolidate all this there.

Also clean up some syntax.


# a3e794ae 29-Jul-2016 Augustin Cavalier <waddlesplash@gmail.com>

be_apps/Deskbar: Remove.

The only file in here was Deskbar.h, which just included the "real"
Deskbar.h. Considering nothing in-tree cares about this, and only
a small number of applications at HaikuArchives do, and that Haiku already
broke BeOS source compatibility in lots of other ways, let's just remove
this deprecated cruft.


# 2889e51c 01-Apr-2015 Axel Dörfler <axeld@pinc-software.de>

SetupEnvironment: removed old audio legacy cruft.

* Haiku never supported this.


# f73f5d4c 29-Sep-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Initial changes to remove /boot/common

* find_directory() and hard-coded paths use /boot/system instead of
/boot/common.
* The build system creates the writable directories in /boot/system
instead of /boot/common.
* The build system no longer installs any packages in /boot/common.


# a532c573 04-Jun-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Remove /boot/{apps,preferences} symlinks

And adjust all remained occurrence in the tree accordingly (->
/boot/common/{apps,preferences}).


# a085e81e 11-May-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Move ~/config/boot to ~/config/settings/


# 44f60330 25-Apr-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

SetupEnvironment: Remove BELIBRARIES

It is no longer needed with the current gcc 2 package.


# 083234da 21-Apr-2013 Oliver Tappe <zooey@hirschkaefer.de>

Drop legacy scripts 'cc' and 'c++'

* no longer put compiler wrappers onto image
* removed corresponding environment variables


# 86b3c7a4 21-Apr-2013 Oliver Tappe <zooey@hirschkaefer.de>

Drop symlink common/develop/tools/current

* drop the symlink itself (system development tools are now symlinked
from /boot/common/bin directly)
* remove that symlink from PATH


# 602d9c96 16-Aug-2012 Alex Smith <alex@alex-smith.me.uk>

Added some of the development optional packages.

This adds some of the development packages for x86_64. All of the
DevelopmentBase packages (gcc, make, jam, bison, flex, m4, mkdepend)
have been built and uploaded.


# c4389ee8 23-Feb-2012 Oliver Tappe <zooey@hirschkaefer.de>

Add setting of LC_* env-vars to SetupEnvironment.

* setting those environment variables in SetupEnvironment makes them
available to applications started during system boot (like Deskbar
and Tracker)


# 3dfd9cb9 16-Jun-2011 Oliver Tappe <zooey@hirschkaefer.de>

Flat commit of all changes from package-management branch in svn


# 940d7808 08-May-2011 Scott McCreary <scottmc2@gmail.com>

Added setting of LC_CTYPE to SetupEnviroment, this fixes #7412


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41385 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e4a4fcc9 11-May-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Moved definitions of the USER and GROUP environmental variables from
SetupEnvironment to /etc/profile and use the "id" command. No need to set
SHELL, since the shell sets it anyway. Fixes #5966.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36788 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7f8ffb25 07-Feb-2010 Michael Lotz <mmlr@mlotz.ch>

Also add /boot/common/add-ons to ADDON_PATH. I don't know why this wasn't done
in r23974, but seeing that it was added to the runtime_loader default paths as
well I take it this was an oversight.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35427 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 75f15221 18-Sep-2009 Oliver Tappe <zooey@hirschkaefer.de>

* reintegrated gsoc-locale-kit branch into trunk - there's more
work to do, but it's about time to give this code more exposure.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33176 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 16d5c24e 07-Jul-2009 Oliver Tappe <zooey@hirschkaefer.de>

* merged 32bit-wchar_t branches of buildtools and haiku back into
the respective trunk

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31443 a95241bf-73f2-0310-859d-f6bbb57e9c96


# de490447 26-May-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

* Use the new Add{Files,Symlink}ToHaikuHybridImage rules in HaikuImage and
OptionalPackages. This makes the content definition part in
AlternativeGCCArchive superfluous.
* Moved the cc and c++ wrapper scripts from src/bin to data/bin.
* Added build variable HAIKU_ADD_OPTIONAL_PACKAGES to add optional packages
-- the list can be separated by slashes to allow easier passing through
the shell.
* When invoking the sub-jam that builds the alternative GCC archive, we force
it to ignore the UserBuildConfigs and we enable the optional packages
enabled in the main jam.
* Reorganized /boot/develop:
- There's now an "abi" subdirectory containing a <arch>/<gcc>/ subdirectory
for each installed ABI-incompatible gcc version and a "current" symlink
pointed to the currently selected one.
- All ABI-dependent directories under /boot/develop/ (lib/x86, headers/cpp,
tools/gnupro) symlink into /boot/develop/abi/current.
- Changed BELIBRARIES to contain
/boot/develop/abi/current/library-paths/common instead of /boot/common/lib.
The former is a symlink to either /boot/common/lib or
/boot/common/lib/<gccVersion>. There's also a respective "home" symlink.
- Repackaged the optional binutils+gcc 2/4 packages accordingly. Also fixed
the obsolete /boot/beos/system/lib/libstdc++.so symlink in the gcc 4
package.
- The new structure allows to switch between compilers by changing the
/boot/develop/abi/current symlink. Added script setgcc to do that.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30875 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 317bd7dd 03-Apr-2009 Axel Dörfler <axeld@pinc-software.de>

* Changed directory structure as suggested on the mailing list.
* Made the TimeZoneView less error prone, and also actually use Haiku code (the
previous check didn't work since it used #if, not #ifdef).
* Also took the liberty to rename our boot loader to haiku_loader, since I had
to update the nasm binary anyway. Updated the assembly sources to nasm 2.0.
* I haven't found where the synth location in the MIDI code is specified,
though.
* Also, NetBootArchive, and FloppyBootImage haven't been updated yet. Will do
so next.
* Some optional packages still put their license to beos/etc/licenses. I didn't
update them yet, as we'll probably do so anyway at some point. Also, I think
we might want to introduce a common/data/licenses instead for those.
* If you encounter any problems, please tell!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29876 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8822df61 10-Nov-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

* All platforms will use gcc and there's no reason not to put it in the
same place.
* Added /boot/common/lib to BELIBRARIES.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28594 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2dd86b93 17-Feb-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

axeld + bonefish:
Adjusted PATH, LIBRARY_PATH, and the paths built into the runtime loader
to included the /boot/common tree.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23974 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 93c20889 13-Jun-2007 Axel Dörfler <axeld@pinc-software.de>

* Removed all user paths from the default runtime_loader paths.
* $PATH is now set differently when booted in safe mode (just like LIBRARY_PATH,
and ADDON_PATH already were).
* This closes ticket #1103.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21406 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 35932b4d 07-Jul-2005 Axel Dörfler <axeld@pinc-software.de>

Small fix.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13545 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 79de7f4d 11-Apr-2005 Michael Lotz <mmlr@mlotz.ch>

Added a static Netscript that is launched from the Bootscript. Everything commented out currently, more like a temporary tutorial on how to setup everything.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12291 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bc1994c4 24-Nov-2004 Axel Dörfler <axeld@pinc-software.de>

Our uname currently returns "Intel" as machine - changed SetupEnvironment
to take that into account.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10223 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1583190b 03-Nov-2004 Axel Dörfler <axeld@pinc-software.de>

Added initial version of some scripts for the boot process.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9776 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2889e51c4e1e1b8647645de65fd06aada6e47db1 01-Apr-2015 Axel Dörfler <axeld@pinc-software.de>

SetupEnvironment: removed old audio legacy cruft.

* Haiku never supported this.


# f73f5d4c42a01ece688cbb57b5d332cc0f68b2c6 29-Sep-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Initial changes to remove /boot/common

* find_directory() and hard-coded paths use /boot/system instead of
/boot/common.
* The build system creates the writable directories in /boot/system
instead of /boot/common.
* The build system no longer installs any packages in /boot/common.


# a532c573089b05f272107ed5620734671420891e 04-Jun-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Remove /boot/{apps,preferences} symlinks

And adjust all remained occurrence in the tree accordingly (->
/boot/common/{apps,preferences}).


# a085e81e62d7a860f809b4fb7c7bf5654c396985 11-May-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Move ~/config/boot to ~/config/settings/


# 44f60330e1abc910883e463b3331c4d952807a59 25-Apr-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

SetupEnvironment: Remove BELIBRARIES

It is no longer needed with the current gcc 2 package.


# 083234daa2c6473bc11c03a46e8a8a5d73ca9000 21-Apr-2013 Oliver Tappe <zooey@hirschkaefer.de>

Drop legacy scripts 'cc' and 'c++'

* no longer put compiler wrappers onto image
* removed corresponding environment variables


# 86b3c7a4168ea52eb05587f83b6985b1ee9249af 21-Apr-2013 Oliver Tappe <zooey@hirschkaefer.de>

Drop symlink common/develop/tools/current

* drop the symlink itself (system development tools are now symlinked
from /boot/common/bin directly)
* remove that symlink from PATH


# 602d9c96a5d92957e248f164ea47b365dfd32f91 16-Aug-2012 Alex Smith <alex@alex-smith.me.uk>

Added some of the development optional packages.

This adds some of the development packages for x86_64. All of the
DevelopmentBase packages (gcc, make, jam, bison, flex, m4, mkdepend)
have been built and uploaded.


# c4389ee8b2bf2b66443b6f89ae3dab3e5daf2473 23-Feb-2012 Oliver Tappe <zooey@hirschkaefer.de>

Add setting of LC_* env-vars to SetupEnvironment.

* setting those environment variables in SetupEnvironment makes them
available to applications started during system boot (like Deskbar
and Tracker)


# 3dfd9cb95ce45f59160d50975210bc55e3fc0709 16-Jun-2011 Oliver Tappe <zooey@hirschkaefer.de>

Flat commit of all changes from package-management branch in svn


# 940d7808e5679968ca8642a437a93e1799a36cd5 08-May-2011 Scott McCreary <scottmc2@gmail.com>

Added setting of LC_CTYPE to SetupEnviroment, this fixes #7412


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41385 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e4a4fcc9fb66a5be960b05f8de21e1f8e5b018c2 11-May-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Moved definitions of the USER and GROUP environmental variables from
SetupEnvironment to /etc/profile and use the "id" command. No need to set
SHELL, since the shell sets it anyway. Fixes #5966.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36788 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7f8ffb252fcdc6017ee95c65c623bb49f1bbb7dd 07-Feb-2010 Michael Lotz <mmlr@mlotz.ch>

Also add /boot/common/add-ons to ADDON_PATH. I don't know why this wasn't done
in r23974, but seeing that it was added to the runtime_loader default paths as
well I take it this was an oversight.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35427 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 75f152215517c2af1a93938f46d3156503329a5e 18-Sep-2009 Oliver Tappe <zooey@hirschkaefer.de>

* reintegrated gsoc-locale-kit branch into trunk - there's more
work to do, but it's about time to give this code more exposure.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33176 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 16d5c24e533eb14b7b8a99ee9f3ec9ba66335b1e 07-Jul-2009 Oliver Tappe <zooey@hirschkaefer.de>

* merged 32bit-wchar_t branches of buildtools and haiku back into
the respective trunk

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31443 a95241bf-73f2-0310-859d-f6bbb57e9c96


# de49044796ab712993c2ed8716d23095fd768b24 26-May-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

* Use the new Add{Files,Symlink}ToHaikuHybridImage rules in HaikuImage and
OptionalPackages. This makes the content definition part in
AlternativeGCCArchive superfluous.
* Moved the cc and c++ wrapper scripts from src/bin to data/bin.
* Added build variable HAIKU_ADD_OPTIONAL_PACKAGES to add optional packages
-- the list can be separated by slashes to allow easier passing through
the shell.
* When invoking the sub-jam that builds the alternative GCC archive, we force
it to ignore the UserBuildConfigs and we enable the optional packages
enabled in the main jam.
* Reorganized /boot/develop:
- There's now an "abi" subdirectory containing a <arch>/<gcc>/ subdirectory
for each installed ABI-incompatible gcc version and a "current" symlink
pointed to the currently selected one.
- All ABI-dependent directories under /boot/develop/ (lib/x86, headers/cpp,
tools/gnupro) symlink into /boot/develop/abi/current.
- Changed BELIBRARIES to contain
/boot/develop/abi/current/library-paths/common instead of /boot/common/lib.
The former is a symlink to either /boot/common/lib or
/boot/common/lib/<gccVersion>. There's also a respective "home" symlink.
- Repackaged the optional binutils+gcc 2/4 packages accordingly. Also fixed
the obsolete /boot/beos/system/lib/libstdc++.so symlink in the gcc 4
package.
- The new structure allows to switch between compilers by changing the
/boot/develop/abi/current symlink. Added script setgcc to do that.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30875 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 317bd7dda3eb26d4d24ba5b0a831461119f70d34 03-Apr-2009 Axel Dörfler <axeld@pinc-software.de>

* Changed directory structure as suggested on the mailing list.
* Made the TimeZoneView less error prone, and also actually use Haiku code (the
previous check didn't work since it used #if, not #ifdef).
* Also took the liberty to rename our boot loader to haiku_loader, since I had
to update the nasm binary anyway. Updated the assembly sources to nasm 2.0.
* I haven't found where the synth location in the MIDI code is specified,
though.
* Also, NetBootArchive, and FloppyBootImage haven't been updated yet. Will do
so next.
* Some optional packages still put their license to beos/etc/licenses. I didn't
update them yet, as we'll probably do so anyway at some point. Also, I think
we might want to introduce a common/data/licenses instead for those.
* If you encounter any problems, please tell!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29876 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8822df61f3114e21fafeb7f50c78370ceeca9169 10-Nov-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

* All platforms will use gcc and there's no reason not to put it in the
same place.
* Added /boot/common/lib to BELIBRARIES.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28594 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2dd86b93a61433b57cd80e26f84daa416247af23 17-Feb-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

axeld + bonefish:
Adjusted PATH, LIBRARY_PATH, and the paths built into the runtime loader
to included the /boot/common tree.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23974 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 93c2088983342ad31a6fc2f51c56bb73772aaa92 13-Jun-2007 Axel Dörfler <axeld@pinc-software.de>

* Removed all user paths from the default runtime_loader paths.
* $PATH is now set differently when booted in safe mode (just like LIBRARY_PATH,
and ADDON_PATH already were).
* This closes ticket #1103.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21406 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 35932b4d4e92706692723814b6b28db204b66706 07-Jul-2005 Axel Dörfler <axeld@pinc-software.de>

Small fix.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13545 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 79de7f4dcba4323cc2a5620b61765684750d1ac4 11-Apr-2005 Michael Lotz <mmlr@mlotz.ch>

Added a static Netscript that is launched from the Bootscript. Everything commented out currently, more like a temporary tutorial on how to setup everything.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12291 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bc1994c4fb4cc63a077fa74e40da168353c9de9c 24-Nov-2004 Axel Dörfler <axeld@pinc-software.de>

Our uname currently returns "Intel" as machine - changed SetupEnvironment
to take that into account.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10223 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1583190bd89da68fd1d0475b7c31dff734f4ee92 03-Nov-2004 Axel Dörfler <axeld@pinc-software.de>

Added initial version of some scripts for the boot process.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9776 a95241bf-73f2-0310-859d-f6bbb57e9c96