June 18, 2019, 02:50:10 PM

Author Topic: path %userprofile% for Linux and MacOS?  (Read 364 times)

Offline fielder

  • Jr. Member
  • **
  • Posts: 72
path %userprofile% for Linux and MacOS?
« on: December 26, 2018, 05:03:19 PM »
in Windows usually i use these "virtual" path provided by microsoft to identify the User folder...
how i can do this on Linux and MacOS? i've to use the bah.volumes?

Offline dawlane

  • Jr. Member
  • **
  • Posts: 84
Re: path %userprofile% for Linux and MacOS?
« Reply #1 on: December 26, 2018, 05:31:26 PM »
Linux/OSX use path systems variables are $HOME. Additional user environment variables are usually store in a hidden file called .bash_profile or just .profile.
To see other variable type in a command console: printenv

Offline fielder

  • Jr. Member
  • **
  • Posts: 72
Re: path %userprofile% for Linux and MacOS?
« Reply #2 on: December 28, 2018, 08:32:21 PM »
Linux/OSX use path systems variables are $HOME. Additional user environment variables are usually store in a hidden file called .bash_profile or just .profile.
To see other variable type in a command console: printenv
Thanks Dawlane

Offline TomToad

  • Sr. Member
  • ****
  • Posts: 383
Re: path %userprofile% for Linux and MacOS?
« Reply #3 on: December 30, 2018, 09:10:36 PM »
Use bah.volumes from Brucey's modules. It uses cross platform functions to get the user directory, app directory, document directory,etc...
------------------------------------------------
8 rabbits equals 1 rabbyte.

Offline fielder

  • Jr. Member
  • **
  • Posts: 72
Re: path %userprofile% for Linux and MacOS?
« Reply #4 on: January 02, 2019, 10:31:30 AM »
Use bah.volumes from Brucey's modules. It uses cross platform functions to get the user directory, app directory, document directory,etc...
i finally used the bah.volume it's working fine :)