LIBKYPOWERMANAGEMENT(3)
💖 LIBKYPOWERMANAGEMENT(3) 💖
okay bestie so this is a Library Functions Manual page and it's literally about making your lock screen behave. yes, that lock screen. the one that keeps popping up while you're mid-video. we're gonna fix her. 🎀
✨ NAME ✨
kdk_set_inhibit_lockscreen, kdk_un_inhibit_lockscreen — 提供锁屏设置能力
for my non-Mandarin girlies: that's "provides lock screen setting capability"</p> 💅
so basically two functions, one job: telling your lock screen to sit DOWN and stop inhibiting, or letting her back up. iconic behaviour honestly.
🦋 SYNOPSIS 🦋
#include <libkylockscreen.h>
extern uint32_t kdk_set_inhibit_lockscreen(const char *appName, const char *reason);
extern int kdk_un_inhibit_lockscreen(uint32_t flag);
and then you gotta link with -lkypowermanagement. no cap, if you forget the link flag nothing happens and you'll be staring at your terminal like 👁️👄👁️
🌸 Detailed Description 🌸
okay so real talk: this library provides lock screen setting capabilities. that's it. that's the whole vibe. you wanna set the lock screen state from your app? she's here for it. 🫶
⭐ RETURN VALUE ⭐
the return value is generally specific to the individual function called. so like… don't come for me asking for one universal number, bestie, it depends on which one you called. check the individual function. periodt. 💜
👑 CONFORMING TO 👑
these functions are as per the withdrawn POSIX.1e draft specification. yeah. withdrawn. she's an elder, she's seen things, she still shows up. 😭
the following functions are Linux extensions:
kdk_set_inhibit_lockscreen()kdk_un_inhibit_lockscreen()
so like, Linux-only energy. iykyk. 🌈
💀 SEE ALSO 💀
go read those, they're the main characters of this whole saga fr fr ✨
and that's the page!! written under the Linux Programmer's Manual, dated Mon Sep 18 2023, filed under LIBKYPOWERMANAGEMENT(3) — stay slaying, go inhibit that lock screen bestie 💅💖🦋
📦 where this page comes from
- arch rolling: libkysdk-system 3.0.1.4-1 · LGPL-3.0-or-later AND LGPL-2.1-only OR LGPL-3.0-only AND LGPL-2.1-only WITH Qt-LGPL-exception-1.1 OR LGPL-3.0-only WITH Qt-LGPL-exception-1.1 AND MIT
- ubuntu resolute: libkysdk-system-dev 3.0.1.2-0ubuntu1 · LGPL-3.0-only
- ubuntu stonking: libkysdk-system-dev 3.0.1.3-0ubuntu1 · LGPL-3.0-or-later
- 💖 girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms