Coder Social home page Coder Social logo

Comments (3)

martanne avatar martanne commented on August 24, 2024 1

According to the specification $XDG_RUNTIME_DIR would probably be the best fit if not for the following:

The lifetime of the directory MUST be bound to the user being logged in. It MUST be created when the user first logs in and if the user fully logs out the directory MUST be removed. If the user logs in more than once he should get pointed to the same directory, and it is mandatory that the directory continues to exist from his first login to his last logout on the system, and not removed in between. Files in the directory MUST not survive reboot or a full logout/login cycle.

Which begs the question how being logged in is defined in the systemd world ...

With the latest commits it should be possible to give it a try by adding the relevant lines to the start of the dirs array as in:

dirs[] = {
    { getenv("XDG_RUNTIME_DIR"), true },
    ...
}

Anyway I agree that it would probably be a good idea to change the default directory from $HOME to a temporary one which does not survive a reboot.

from abduco.

martanne avatar martanne commented on August 24, 2024 1

With the latest commits the used directories can be configured through config.def.h. Furthermore there exists a special environment variable called $ABDUCO_SOCKET_DIR hence adding something like export ABDUCO_SOCKET_DIR="$XDG_CACHE_HOME" to your shell/login/PAM whatever startup scripts should have the desired effect.

from abduco.

googl avatar googl commented on August 24, 2024

Wow! It's been so long already?! I have not been active. Thanks for the good work. Will try to provide feedback going forward.

from abduco.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.