diff options
author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2017-01-27 21:39:57 +0000 |
---|---|---|
committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2017-01-27 21:39:57 +0000 |
commit | dc4de5741ad3b5c2edfd1d21af25424197aac71c (patch) | |
tree | 096c6682111cd292d3cdda938e512866b75d07b3 /config | |
parent | 4ba5679204ed2f1f878559d625c3d71ce71b4bd0 (diff) | |
download | draklive-config-dc4de5741ad3b5c2edfd1d21af25424197aac71c.tar draklive-config-dc4de5741ad3b5c2edfd1d21af25424197aac71c.tar.gz draklive-config-dc4de5741ad3b5c2edfd1d21af25424197aac71c.tar.bz2 draklive-config-dc4de5741ad3b5c2edfd1d21af25424197aac71c.tar.xz draklive-config-dc4de5741ad3b5c2edfd1d21af25424197aac71c.zip |
live.cfg: enhancements for running draklive-install from Xfce desktop.
- add icon on desktop to run the installer
- disable autobrowse by default (prevents unwanted window popups)
Diffstat (limited to 'config')
-rw-r--r-- | config/live.cfg | 9 |
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}" . |