-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add gtklock-userinfo-module and cleanup gtklock
Now its possible to display user name when system is locked using gtklock-userinfo-module. Also we need to enable accounts-daemon service which is needed to retrieve user details. Some cleanup done for gtklock code which are no longer required. Signed-off-by: Vunny Sodhi <[email protected]>
- Loading branch information
1 parent
027f92a
commit 01bb7e3
Showing
8 changed files
with
279 additions
and
9 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
overlays/custom-packages/gtklock-userinfo-module/0001-update.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
From aa4b5832185d2dd9e7f88826fd9d03e3d5ea1ad6 Mon Sep 17 00:00:00 2001 | ||
From: Jovan Lanik <[email protected]> | ||
Date: Sun, 3 Nov 2024 10:48:42 +0100 | ||
Subject: [PATCH] update | ||
|
||
--- | ||
source.c | 5 ----- | ||
1 file changed, 5 deletions(-) | ||
|
||
diff --git a/source.c b/source.c | ||
index 8a12fbb..a908b5e 100644 | ||
--- a/source.c | ||
+++ b/source.c | ||
@@ -157,11 +157,6 @@ static void setup_userinfo(struct Window *ctx) { | ||
gtk_widget_show_all(USERINFO(ctx)->user_revealer); | ||
} | ||
|
||
-void g_module_unload(GModule *m) { | ||
- g_object_unref(act_user); | ||
- g_object_unref(act_manager); | ||
-} | ||
- | ||
void on_activation(struct GtkLock *gtklock, int id) { | ||
self_id = id; | ||
|
||
-- | ||
2.40.1 | ||
|
11 changes: 11 additions & 0 deletions
11
overlays/custom-packages/gtklock-userinfo-module/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Copyright 2022-2024 TII (SSRC) and the Ghaf contributors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# TODO: Remove patch, once there new release for gtklock-userinfo-module | ||
# | ||
{ prev }: | ||
prev.gtklock-userinfo-module.overrideAttrs { | ||
patches = [ | ||
./0001-update.patch | ||
]; | ||
} |