[systemd-commits] 2 commits - Makefile.am src/systemadm.vala units/session
Lennart Poettering
lennart at kemper.freedesktop.org
Wed May 19 17:32:07 PDT 2010
Makefile.am | 3 +++
src/systemadm.vala | 7 ++++++-
units/session/default.target | 11 +++++++++++
3 files changed, 20 insertions(+), 1 deletion(-)
New commits:
commit 07ded1e8ba9c47f02d2590f1a8e8aedbfe4a5bff
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu May 20 02:31:57 2010 +0200
systemadm: make fragment path a clickable link
diff --git a/src/systemadm.vala b/src/systemadm.vala
index bd0062a..3f1cf9e 100644
--- a/src/systemadm.vala
+++ b/src/systemadm.vala
@@ -217,6 +217,8 @@ public class MainWindow : Window {
unit_dependency_label.set_selectable(false);
unit_dependency_label.activate_link += on_activate_link;
+ unit_fragment_path_label.set_track_visited_links(false);
+
Table unit_table = new Table(8, 6, false);
unit_table.set_row_spacings(6);
unit_table.set_border_width(0);
@@ -500,7 +502,10 @@ public class MainWindow : Window {
unit_load_state_label.set_text_or_na(unit.load_state);
unit_active_state_label.set_text_or_na(unit.active_state);
unit_sub_state_label.set_text_or_na(unit.sub_state);
- unit_fragment_path_label.set_text_or_na(unit.fragment_path);
+ if (unit.fragment_path != null)
+ unit_fragment_path_label.set_markup_or_na("<a href=\"file://" + unit.fragment_path +"\">" + unit.fragment_path + "</a>" );
+ else
+ unit_fragment_path_label.set_markup_or_na(null);
uint64 t = unit.active_enter_timestamp;
if (t > 0) {
commit 0d26c91071adb33a3c25f075dcbacb85e1469d53
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu May 20 02:30:49 2010 +0200
unit: ship default.service for sessions by default
diff --git a/Makefile.am b/Makefile.am
index 8f0fdaa..6d860ec 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -102,6 +102,9 @@ systemunit_DATA = \
units/systemd-logger.service \
units/syslog.target
+dist_sessionunit_DATA = \
+ units/session/default.target
+
sessionunit_DATA = \
units/session/remote-fs.target
diff --git a/units/session/default.target b/units/session/default.target
new file mode 100644
index 0000000..deb310c
--- /dev/null
+++ b/units/session/default.target
@@ -0,0 +1,11 @@
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# See systemd.special(7) for details
+
+[Unit]
+Description=Default
More information about the systemd-commits
mailing list