Skip to content
This repository has been archived by the owner on Jan 14, 2020. It is now read-only.

Adapt to systemd and reconfigure a working display manager. #14

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

MartinLinSup
Copy link

No description provided.

After removal we need to make sure that at least any WM is configured.
After removal we need to make sure that at least any WM is configured.
postrm: Remvove nodm from runlevel.

postrm: Restart DM after removeal.

postrm: Stop nodm bevore restarting new default dm.

postrm: Stop nodm first.
Suppress Lintian error on removal of nodm from runlevel.
@@ -11,6 +12,16 @@ case "$1" in
db_purge
fi
rm -f /usr/sbin/kiosk-browser
# In a perfect world, this should also care for lightdm xdm wdm slim lxdm gdm etc...
WMS=`dpkg-query -W -f='Package: ${Package}\nProvides: ${Provides}\n' | grep -B 1 -E "^Provides: .*x-display-manager" | grep Package | cut -d" " -f2`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use $() instead. Instead of this search logic, why not simply remember the previous setting in /etc/X11/default-display-manager.pre-kiosk-browserand simply restore it upon removal?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The user could have removed a DM which was configured at install-time. Remembering this would not lead to a working DM.

Will change `` to $()

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the user breaks it he will fix it. I really don't like this lookup into
tha package database for this purpose. I also think that this is less
likely scenario and that at the most a user will just remove kiosk-browser
and be happy to go back to the previous configuration.

On 13 October 2015 at 14:03, MartinLinSup [email protected] wrote:

In DEBIAN/postrm
#14 (comment)
:

@@ -11,6 +12,16 @@ case "$1" in
db_purge
fi
rm -f /usr/sbin/kiosk-browser

  • In a perfect world, this should also care for lightdm xdm wdm slim lxdm gdm etc...

  • WMS=dpkg-query -W -f='Package: ${Package}\nProvides: ${Provides}\n' | grep -B 1 -E "^Provides: .*x-display-manager" | grep Package | cut -d" " -f2

The user could have removed a DM which was configured at installtime.
Remebering this would not lead to a working DM.

Will change `` to $()


Reply to this email directly or view it on GitHub
https://github.com/ImmobilienScout24/kiosk-browser/pull/14/files#r41857053
.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants