DTSESSIONRESTOREPATH(3)
πΈ NAME πΈ
okay so bestie, this is DtSessionRestorePath β the library call that gets you a pathname for the application's state information file. That's the whole name section, and she ate. π
β¨
β¨ SYNOPSIS β¨
copy this exactly, character for character, no autocorrect:
#include &<Dt/Session.h>
Boolean DtSessionRestorePath(
Widget widget,
char **restorePath,
char *restoreFile);
π DESCRIPTION π
The DtSessionRestorePath function returns a pathname to an application's state information. Iconic, honestly. π
Here's the arg breakdown, because we love a clear vibe check:
widgetβ the application's top level widget. She's the main character widget, periodt. πrestorePathβ the address of the character string to receive the pathname of the application's state information file. It's giving out-parameter energy πrestoreFileβ the filename of the file containing the application state information. This is the filename specified with the-sessionoption at application invocation. iykyk πΈ
π RETURN VALUE π
Upon successful completion, the DtSessionRestorePath function returns True; otherwise, it returns False. That's the vibe check: True for slay, False for not-slay. π
π¦ APPLICATION USAGE π¦
- The application must support the
-sessioncommand-line option. No cap, it's required. β¨ - The application must use
XtFree(3)to free data returned in*restorePath. Do not forget, bestie β free your data, protect your peace. π«Ά
π₯ SEE ALSO π₯
Dt/Session.h-DtSession(5),DtSessionSavePath(3);XtFree(3). π
that's the DtSessionRestorePath(library call) page, bestie β library call, no cap, and that's the sign-off ππ«Ά
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms