Skip to content

Commit

Permalink
Merge pull request #14 from neochapay/master
Browse files Browse the repository at this point in the history
[config] Allow user nemo to connect with connman and dsme
  • Loading branch information
locusf authored Jun 24, 2019
2 parents 9c737bf + 8d2ddb1 commit b7a073b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
10 changes: 10 additions & 0 deletions conf/glacier-user.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<policy user="nemo">
<allow send_destination="net.connman"/>
<allow send_destination="com.nokia.dsme" send_interface="com.nokia.dsme.request" send_member="req_shutdown"/>
<allow send_destination="com.nokia.dsme" send_interface="com.nokia.dsme.request" send_member="req_reboot"/>
<allow send_destination="com.nokia.dsme" send_interface="com.nokia.dsme.request" send_member="req_powerup"/>
</policy>
</busconfig>
9 changes: 6 additions & 3 deletions rpm/nemo-mobile-session.spec
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Conflicts: nemo-mobile-session-wayland
%setup -q -n %{name}-%{version}

%install

mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d
mkdir -p %{buildroot}/lib/systemd/system/graphical.target.wants/
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/
mkdir -p %{buildroot}/var/lib/environment/nemo
Expand All @@ -75,6 +75,9 @@ install -m 0644 conf/50-nemo-mobile-render2d.conf %{buildroot}/var/lib/environme
install -m 0644 conf/01-input.rules %{buildroot}/lib/udev/rules.d/
install -m 0644 conf/01-fbdev.rules %{buildroot}/lib/udev/rules.d/

#dbus rules
install -m 0644 conf/glacier-user.conf %{buildroot}/etc/dbus-1/system.d/

# bin
install -D -m 0744 bin/set-boot-state %{buildroot}%{_libdir}/startup/set-boot-state
install -D -m 0755 bin/start-user-session %{buildroot}%{_libdir}/startup/start-user-session
Expand Down Expand Up @@ -128,8 +131,8 @@ fi
%{_libdir}/startup/start-user-session
%{_libdir}/startup/set-boot-state
%{_libdir}/startup/init-done
%{_sysconfdir}/systemd/system/runlevel4.target

%{_sysconfdir}/systemd/system/runlevel4.target
%{_sysconfdir}/dbus-1/system.d/glacier-user.conf

%files wayland
%defattr(-,root,root,-)
Expand Down

0 comments on commit b7a073b

Please sign in to comment.