mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:27:35 +00:00
Services: Use new global variables at /sys/kernel/ directory
This commit is contained in:
parent
b579d9518c
commit
35c98a031a
11 changed files with 13 additions and 13 deletions
|
@ -90,7 +90,7 @@ void KeymapSwitcher::next_keymap()
|
|||
|
||||
String KeymapSwitcher::get_current_keymap() const
|
||||
{
|
||||
auto proc_keymap = Core::File::construct("/proc/keymap");
|
||||
auto proc_keymap = Core::File::construct("/sys/kernel/keymap");
|
||||
if (!proc_keymap->open(Core::OpenMode::ReadOnly))
|
||||
VERIFY_NOT_REACHED();
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ ErrorOr<int> serenity_main(Main::Arguments)
|
|||
TRY(Core::System::unveil("/dev/gpu/", "rw"));
|
||||
TRY(Core::System::unveil("/dev/input/", "rw"));
|
||||
TRY(Core::System::unveil("/bin/keymap", "x"));
|
||||
TRY(Core::System::unveil("/proc/keymap", "r"));
|
||||
TRY(Core::System::unveil("/sys/kernel/keymap", "r"));
|
||||
|
||||
struct sigaction act = {};
|
||||
act.sa_flags = SA_NOCLDWAIT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue