aboutsummaryrefslogtreecommitdiffstats
path: root/common/os/os.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Move application directory handling to corePierre Ossman2025-02-251-162/+0
| | | | | These are general plumbing, so they fit in nicely with the new core library.
* Use nullptr in all C++ codePierre Ossman2024-06-241-12/+12
| | | | | It's more readable than 0, and a bit safer than NULL, so let's try to follow modern norms.
* Create common recursive mkdir()Pierre Ossman2024-05-301-0/+34
| | | | | | | Avoid duplicating this complexity in too many places. At the same time make the interface more identical to regular mkdir(), for familiarity.
* Implement XDG Base Directory paths, deprecate ~/.vnc902024-04-261-26/+28
|
* Begin work on XDGBDS compliance and overrideable configs902024-03-151-6/+30
|
* Remove trailing slash from getvnchomedir()Pierre Ossman2023-02-041-3/+3
| | | | | It should return a path to the directory itself, just like its sister function getuserhomedir().
* Namespace directory functionsPierre Ossman2023-02-041-2/+2
| | | | All library functions should be in a proper namespace.
* Return static char buffer from some methodsPierre Ossman2023-02-041-33/+28
| | | | | | | | | This mimics how some system functions (like inet_ntop()) work, and avoids complexity around ownership of the returned string buffer. The downside is that the string must be consumed directly as it will be overwritten on the next call, but that is not an issue with the current usage.
* Replace tabs with spacesPierre Ossman2023-02-041-45/+45
| | | | Use the same indentation we use in all other files.
* Get rid of TCHAR magicPierre Ossman2023-02-041-3/+3
| | | | | We never use Windows' "UNICODE" mode anyway, so let's get rid of this complexity.
* Adjust default directory for configuration file save and loadJohannes2021-09-211-4/+25
|
* Clean up default value for X509 parametersPierre Ossman2021-06-131-11/+0
| | | | | Let's avoid making this too complex and force every user to know about magical functions.
* [Development] os: introduce new function called "fileexists"Adam Tkac2011-02-071-0/+10
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4255 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Rename function "gethomedir" to "getvnchomedir" and rewrite it inAdam Tkac2011-02-071-6/+5
| | | | | | | | | platform-intependent manner. Thanks to Guillaume Destuynder. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4252 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Implement gethomedir() function on Windows.Adam Tkac2010-11-251-8/+29
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4208 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] Don't compile gethomedir function on WIN32Adam Tkac2010-10-291-0/+3
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4178 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Introduce gethomedir() function to retrieve home directory path.Adam Tkac2010-10-291-0/+64
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4176 3789f03b-4d11-0410-bbf8-ca57d06f2519