diff options
-rw-r--r-- | modules/inittab/main.xml | 9 | ||||
-rw-r--r-- | src/frontend/main.py | 5 |
2 files changed, 13 insertions, 1 deletions
diff --git a/modules/inittab/main.xml b/modules/inittab/main.xml new file mode 100644 index 0000000..c54fa12 --- /dev/null +++ b/modules/inittab/main.xml @@ -0,0 +1,9 @@ +<VentooModule> + <root mult="1"> + <ventoo_dynamic mult="*"> + <runlevels mult="1"/> + <action mult="1"/> + <process mult="1"/> + </ventoo_dynamic> + </root> +</VentooModule>
\ No newline at end of file diff --git a/src/frontend/main.py b/src/frontend/main.py index 141bf59..de37b24 100644 --- a/src/frontend/main.py +++ b/src/frontend/main.py @@ -91,7 +91,10 @@ class MainWindow(gtk.Window): thisIter = model.get_iter_from_string(path) enabled = model.get_value(thisIter, 0) aug_root = a.get("/augeas/root") - augPath = osp.join('files', osp.relpath(self.currentConfigFilePath, aug_root), self.edit_tv.get_label_path(thisIter)) + if not aug_root == '/': + augPath = osp.join('files', osp.relpath(self.currentConfigFilePath, aug_root), self.edit_tv.get_label_path(thisIter)) + else: + augPath = osp.join('files', augeas_utils.stripBothSlashes(self.currentConfigFilePath), self.edit_tv.get_label_path(thisIter)) if enabled: #this row was just added, update augeas tree. indexes = path.split(':') beforeIndex = int(indexes[len(indexes)-1])-1 |