Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
97d93ab7
Commit
97d93ab7
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Some dbus settings to enable mesh notifications
parent
98afac9c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freedombone-image-customise
+6
-0
6 additions, 0 deletions
src/freedombone-image-customise
src/zeronetavahi
+6
-1
6 additions, 1 deletion
src/zeronetavahi
with
12 additions
and
1 deletion
src/freedombone-image-customise
+
6
−
0
View file @
97d93ab7
...
...
@@ -586,6 +586,10 @@ function mesh_client_startup_applications {
echo
'dconf write /org/mate/caja/desktop/volumes-visible false'
>>
$START_DESKTOP
echo
'dconf write /org/mate/desktop/media-handling/automount-open false'
>>
$START_DESKTOP
echo
'dconf write /org/mate/desktop/screensaver/lock-enabled false'
>>
$START_DESKTOP
echo
"touch /home/
$MY_USERNAME
/.dbus/Xdbus"
>>
$START_DESKTOP
echo
"chmod 600 /home/
$MY_USERNAME
/.dbus/Xdbus"
>>
$START_DESKTOP
echo
"env | grep DBUS_SESSION_BUS_ADDRESS > /home/
$MY_USERNAME
/.dbus/Xdbus"
>>
$START_DESKTOP
echo
"echo 'export DBUS_SESSION_BUS_ADDRESS' >> /home/
$MY_USERNAME
/.dbus/Xdbus"
>>
$START_DESKTOP
chmod
+x
$START_DESKTOP
START_DESKTOP2
=
$rootdir
/home/
$MY_USERNAME
/.config/autostart/mesh-start.desktop
...
...
@@ -646,6 +650,8 @@ function configure_user_interface {
# to provide notifications
chroot
"
$rootdir
"
apt-get
-y
install
libnotify-bin
# some dbus stuff to enable notifications
if
[[
$VARIANT
!=
"usb"
]]
;
then
# log in automatically
chroot
"
$rootdir
"
apt-get
-y
install
nodm xinit
...
...
This diff is collapsed.
Click to expand it.
src/zeronetavahi
+
6
−
1
View file @
97d93ab7
...
...
@@ -132,7 +132,12 @@ function detect_new_tox_users {
#
get
the
nick
of
the
user
toxuser=
"$(echo "
$
line
"
|
awk
-F
'
'
'{
print
$1}')"
export
DISPLAY=
:0.0
&&
export
XAUTHORITY=
/home/$MESH_USERNAME/.Xauthority
&&
sudo
-u
MESH_USERNAME
/
usr
/
bin
/
notify-send
$"$
toxuser
"
$"
has
joined
the
mesh
"
--icon=
dialog-information
if
[
-r
"/
home
/$
MESH_USERNAME
/.
dbus
/
Xdbus
"
];
then
.
"/
home
/$
MESH_USERNAME
/.
dbus
/
Xdbus
"
fi
export
DISPLAY=
:0.0
export
XAUTHORITY=
/home/$MESH_USERNAME/.Xauthority
sudo
-u
MESH_USERNAME
/
usr
/
bin
/
notify-send
$"$
toxuser
"
$"
has
joined
the
mesh
"
--icon=
dialog-information
break
fi
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment