Xfce Forum

Sub domains
 

You are not logged in.

#1 2013-09-05 10:19:31

dooffas
Member
Registered: 2013-09-02
Posts: 7

[Solved] Desktop Icon configuration location

I am trying to disable the default desktop icons:

Home
Filesystem
Wastebasket
Removable Devices

I am aware this is possible through: Settings Manger > Desktop > Icons
However, for my situation I require this to be done through the command line, as this is an unattended setup run after the OS is installed.

Could someone point me in the direction of the desktop configuration file(s) where these icons are defined?

Platform: Fedora 19 (X86_64)
XFCE Version: 4.10

Thanks in advance!

Offline

#2 2013-09-05 11:05:11

gnome_refugee
Member
Registered: 2010-01-15
Posts: 161

Re: [Solved] Desktop Icon configuration location

Hi, dooffas.

In 4.8 it's

.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml

where you can find

<property name="file-icons" type="empty">
      <property name="show-trash" type="bool" value="[true/false]"/>
      <property name="show-filesystem" type="bool" value="[true/false]"/>
      <property name="show-home" type="bool" value="[true/false]"/>
      <property name="show-removable" type="bool" value="[true/false]"/>
    </property>

HTH

Offline

#3 2013-09-05 12:51:39

MountainDewManiac
Member
From: USA police-state welfare-state
Registered: 2013-03-24
Posts: 286

Re: [Solved] Desktop Icon configuration location

gnome_refugee wrote:

Hi, dooffas.

In 4.8 it's

I just checked and the same file is present in Xfce 4.10, so that should work fine for the OP's setup.

Regards,
MDM

Offline

#4 2013-09-05 12:58:13

dooffas
Member
Registered: 2013-09-02
Posts: 7

Re: [Solved] Desktop Icon configuration location

Thanks guys, exactly what I have been looking for. Thought I had looked there, must have overlooked that file.

Edited in my script using sed

sed -i 's#show-trash" type="bool" value="true"#show-trash" type="bool" value="false"#' xfce4-desktop.xml
sed -i 's#show-filesystem" type="bool" value="true"#show-filesystem" type="bool" value="false"#' xfce4-desktop.xml
sed -i 's#show-home" type="bool" value="true"#show-home" type="bool" value="false"#' xfce4-desktop.xml
sed -i 's#show-removable" type="bool" value="true"#show-removable" type="bool" value="false"#' xfce4-desktop.xml

Thanks again
Dooffas

Offline

#5 2013-09-05 15:55:00

dooffas
Member
Registered: 2013-09-02
Posts: 7

Re: [Solved] Desktop Icon configuration location

For completeness, if anyone else stumbles upon this thread.
The xfce4-desktop.xml file is not created until desktop setting are changed in the 'settings manager'.
I have now simply edited one of these files and it is copied over during the setup.

Offline

Board footer

Powered by FluxBB