mirror of
https://github.com/brmlab/BLIT.git
synced 2025-06-08 03:44:00 +02:00
initial BLIT commit
This commit is contained in:
parent
7c2356fe80
commit
5130a2ab11
24 changed files with 900 additions and 0 deletions
10
wifi-probes/dbus-find-session.sh
Executable file
10
wifi-probes/dbus-find-session.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
USER_DBUS_PROCESS_NAME="gconfd-2"
|
||||
export NOTIFY_SEND_BIN="/usr/bin/notify-send"
|
||||
|
||||
# get pid of user dbus process
|
||||
DBUS_PID="$(ps ax | grep $USER_DBUS_PROCESS_NAME | grep -v grep | awk '{ print $1 }')"
|
||||
|
||||
# get DBUS_SESSION_BUS_ADDRESS variable
|
||||
export DBUS_SESSION="$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$DBUS_PID/environ | sed -e s/DBUS_SESSION_BUS_ADDRESS=//)"
|
Loading…
Add table
Add a link
Reference in a new issue