summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/live.cfg9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/live.cfg b/config/live.cfg
index d117c23..8967799 100644
--- a/config/live.cfg
+++ b/config/live.cfg
@@ -179,6 +179,15 @@ my $_l = {
postInstall => join(';',
if_($live->{settings}{default_user}, "echo $live->{settings}{default_user} > /etc/draklive-install.d/user"),
"perl -pi -e 's,<DEFAULT_USER>,$live->{settings}{default_user},' /etc/draklive-install.d/sysconfig/finish-install",
+
+ if_($live->{settings}{desktop} eq 'xfce4' && $live->{settings}{default_user},
+ # add a desktop icon to run draklive-install
+ "mkdir -p /home/$live->{settings}{default_user}/Desktop",
+ "cp /usr/share/applications/mageia-draklive-install.desktop /home/$live->{settings}{default_user}/Desktop/",
+ # disable autobrowse by default (prevents unwanted file browsers popping up when running draklive-install)
+ "perl -0777 -pi -e 's/(.*autobrowse.*)\\n(.*enabled.*)true(.*)/\$1\\n\$2false\$3/' /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/thunar-volman.xml",
+ ),
+
#- fix user perms for copied files
if_($live->{settings}{default_user}, "chown -R " .
"$live->{settings}{default_user}.$live->{settings}{default_user}" .