From af4e91215f5c2f5c4822c2b49fee3dc3748e3549 Mon Sep 17 00:00:00 2001 From: Julien Lavergne Date: Tue, 23 Feb 2010 21:48:48 +0100 Subject: [PATCH] usr/bin/start* : Ensure configuration files for libfm and pcmanfm2. --- debian/changelog | 1 + etc/xdg/lubuntu/libfm/libfm.conf | 13 +++++++++++++ usr/bin/startlubuntu | 12 ++++++++++++ usr/bin/startlubuntu-netbook | 12 ++++++++++++ usr/share/lubuntu/pcmanfm/pcmanfm.conf | 0 5 files changed, 38 insertions(+) create mode 100644 etc/xdg/lubuntu/libfm/libfm.conf create mode 100644 usr/share/lubuntu/pcmanfm/pcmanfm.conf diff --git a/debian/changelog b/debian/changelog index 9fc055e..5e6312d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,7 @@ lubuntu-default-settings (0.6) UNRELEASED; urgency=low * debian/control: Depends on the re-written pcmanfm (>= 0.9.0) * autostart: Use new pcmanfm --desktop command to start pcmanfm with desktop management. + * usr/bin/start* : Ensure configuration files for libfm and pcmanfm2. -- Julien Lavergne Fri, 19 Feb 2010 22:28:28 +0100 diff --git a/etc/xdg/lubuntu/libfm/libfm.conf b/etc/xdg/lubuntu/libfm/libfm.conf new file mode 100644 index 0000000..5d3cd0a --- /dev/null +++ b/etc/xdg/lubuntu/libfm/libfm.conf @@ -0,0 +1,13 @@ +[config] +single_click=1 +use_trash=1 +confirm_del=1 +thumbnail_local=1 +thumbnail_max=2048 + +[ui] +big_icon_size=48 +small_icon_size=24 +thumbnail_size=128 +pane_icon_size=24 +show_thumbnail=1 diff --git a/usr/bin/startlubuntu b/usr/bin/startlubuntu index 98cae6c..a4bb704 100644 --- a/usr/bin/startlubuntu +++ b/usr/bin/startlubuntu @@ -29,6 +29,18 @@ if [ ! -f "$PCMANFM_CONF_DIR/main.lubuntu" ]; then cp /usr/share/lubuntu/pcmanfm/main.lubuntu "$PCMANFM_CONF_DIR/main.lubuntu" fi +if [ ! -f "$PCMANFM_CONF_DIR/pcmanfm.conf" ]; then + mkdir -p "$PCMANFM_CONF_DIR" + cp /usr/share/lubuntu/pcmanfm/main.lubuntu "$PCMANFM_CONF_DIR/pcmanfm.conf" +fi + +# Ensure the existance of pcmanfm config file +LIBFM_CONF_DIR="$XDG_CONFIG_HOME/libfm" +if [ ! -f "$LIBFM_CONF_DIR/libfm.conf" ]; then + mkdir -p "$LIBFM_CONF_DIR" + cp /etc/xdg/lubuntu/libfm/libfm.conf "$LIBFM_CONF_DIR/libfm.conf" +fi + # Ensure the existance of openbox config file OPENBOX_CONF_DIR="$XDG_CONFIG_HOME/openbox" if [ ! -f "$OPENBOX_CONF_DIR/lubuntu-rc.xml" ]; then diff --git a/usr/bin/startlubuntu-netbook b/usr/bin/startlubuntu-netbook index 5d99b4b..17531e9 100644 --- a/usr/bin/startlubuntu-netbook +++ b/usr/bin/startlubuntu-netbook @@ -29,6 +29,18 @@ if [ ! -f "$PCMANFM_CONF_DIR/main.lubuntu" ]; then cp /usr/share/lubuntu/pcmanfm/main.lubuntu "$PCMANFM_CONF_DIR/main.lubuntu" fi +if [ ! -f "$PCMANFM_CONF_DIR/pcmanfm.conf" ]; then + mkdir -p "$PCMANFM_CONF_DIR" + cp /usr/share/lubuntu/pcmanfm/main.lubuntu "$PCMANFM_CONF_DIR/pcmanfm.conf" +fi + +# Ensure the existance of pcmanfm config file +LIBFM_CONF_DIR="$XDG_CONFIG_HOME/libfm" +if [ ! -f "$LIBFM_CONF_DIR/libfm.conf" ]; then + mkdir -p "$LIBFM_CONF_DIR" + cp /etc/xdg/lubuntu/libfm/libfm.conf "$LIBFM_CONF_DIR/libfm.conf" +fi + # Ensure the existance of openbox config file OPENBOX_CONF_DIR="$XDG_CONFIG_HOME/openbox" if [ ! -f "$OPENBOX_CONF_DIR/lubuntu-rc.xml" ]; then diff --git a/usr/share/lubuntu/pcmanfm/pcmanfm.conf b/usr/share/lubuntu/pcmanfm/pcmanfm.conf new file mode 100644 index 0000000..e69de29