Skip to content

Commit 8d875a2

Browse files
committed
Trying fix slow boot
1 parent 136bc43 commit 8d875a2

3 files changed

Lines changed: 6 additions & 10 deletions

File tree

biglinux-livecd/usr/lib/systemd/system/biglinux-language-suggestion.service

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ Description=Detect the likely BigLinux live-session language
33
Documentation=https://github.com/biglinux/biglinux-livecd
44
ConditionPathExists=/livefs-pkgs.txt
55
After=local-fs.target NetworkManager.service systemd-networkd.service
6-
Before=display-manager.service
76

87
[Service]
98
Type=oneshot

biglinux-livecd/usr/share/biglinux/livecd/ui/language_view.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -571,9 +571,6 @@ def _on_factory_setup(self, factory, list_item):
571571
root_box.set_cursor(Gdk.Cursor.new_from_name("pointer", None))
572572
except Exception:
573573
pass
574-
motion_controller = Gtk.EventControllerMotion.new()
575-
motion_controller.connect("motion", self._on_mouse_motion_item, list_item)
576-
root_box.add_controller(motion_controller)
577574

578575
@staticmethod
579576
def _build_language_labels() -> tuple[Gtk.Label, Gtk.Label]:
@@ -592,12 +589,6 @@ def _build_language_labels() -> tuple[Gtk.Label, Gtk.Label]:
592589
orig_name_label.add_css_class("caption")
593590
return name_label, orig_name_label
594591

595-
def _on_mouse_motion_item(self, controller, x, _y, list_item):
596-
position = list_item.get_position()
597-
if position != Gtk.INVALID_LIST_POSITION:
598-
if self.selection_model.get_selected() != position:
599-
self.selection_model.set_selected(position)
600-
601592
def _on_factory_bind(self, factory, list_item):
602593
item = list_item.get_item()
603594
root_box = list_item.get_child()

tests/test_systemd_units.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ def test_language_suggestion_unit_is_valid_for_staged_payload(
6868
"/usr/lib/biglinux-livecd/language_suggestion_probe.py",
6969
"usr/lib/biglinux-livecd/language_suggestion_probe.py",
7070
)
71+
unit = (
72+
PACKAGE
73+
/ "usr/lib/systemd/system/biglinux-language-suggestion.service"
74+
).read_text(encoding="utf-8")
75+
assert "Before=display-manager.service" not in unit
76+
7177
wanted_unit = (
7278
PACKAGE
7379
/ "usr/lib/systemd/system/graphical.target.wants/biglinux-language-suggestion.service"

0 commit comments

Comments
 (0)