summaryrefslogtreecommitdiff
path: root/sliceweasel.lib.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sliceweasel.lib.sh')
-rwxr-xr-xsliceweasel.lib.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/sliceweasel.lib.sh b/sliceweasel.lib.sh
index 28091a0..d9a93c5 100755
--- a/sliceweasel.lib.sh
+++ b/sliceweasel.lib.sh
@@ -134,6 +134,13 @@ get_uid()
134 ) 134 )
135} 135}
136 136
137get_firefox_cgroup_procs()
138{
139 uid=$(get_uid)
140 [ "$uid" ] || return
141 echo /sys/fs/cgroup/user.slice/user-$uid.slice/user@$uid.service/app.slice/firefox.service/cgroup.procs
142}
143
137get_current_group() 144get_current_group()
138{ 145{
139 read g < /proc/$$/cgroup 146 read g < /proc/$$/cgroup