Cannot delete the link to the home folder on the desktop
Cannot delete the link to the home folder on the desktop
Hi guys, Salix LXDE here. When I try to delete the link to the home folder on the desktop I get this message: no such file or directory. WAT DO?
Re: Cannot delete the link to the home folder on the desktop
I don't think you can do that. You either let pcmanfm manage your desktop and have it there or not let pcmanfm manage your desktop and have no icons on the desktop at all.
Re: Cannot delete the link to the home folder on the desktop
OK
thanks anyway

- Tim CowChip
- Posts: 304
- Joined: 27. May 2011, 03:35
- Location: Cascade Locks, OR
Re: Cannot delete the link to the home folder on the desktop
Try this:
in your ~/.config/openbox/autostart.sh
Code: Select all
pcmanfm --desktop-off &
Re: Cannot delete the link to the home folder on the desktop
In the /.config/openbox folder I've got only lxde-rc.xml!
I've put an autostart file in /home/daniele/.config/lxsession/LXDE folder for Sypheed and Zim: is it the same to paste your line there?
I've put an autostart file in /home/daniele/.config/lxsession/LXDE folder for Sypheed and Zim: is it the same to paste your line there?
- Tim CowChip
- Posts: 304
- Joined: 27. May 2011, 03:35
- Location: Cascade Locks, OR
Re: Cannot delete the link to the home folder on the desktop
I'm not sure if that would work. No harm in trying it, though. It should be
for the LXDE autostart file.
I got this info from a script that is in my CTKArch install.
You could place this script in /home/daniele/.scripts/deskicons.sh then copy
into your /home/daniele/.config/openbox/menu.xml file.
First you would need to
rc.xml is the main configuration file. menu.xml defines the content of the right-click menu.
Its a good idea to install obconf and obmenu to easily edit these.
The desktop icons are a good way to launch frequently used apps if you're just running openbox. There isn't any panel with menu or launchers like with LXDE. You can create other *.desktop files like
and place them in your /home/daniele/Desktop folder
Code: Select all
@pcmanfm --desktop-off
for the LXDE autostart file.
I got this info from a script that is in my CTKArch install.
Code: Select all
#!/bin/sh
# Released under the WTFPL, without any warranty of any kind.
case "$1" in
seticons)
[ -z "$(grep -Eo "^pcmanfm --desktop" ~/.config/openbox/autostart.sh)" ] &&
(sed -i 's/#pcmanfm --desktop/pcmanfm --desktop/' ~/.config/openbox/autostart.sh
pcmanfm --desktop &)
;;
setnoicons)
[ -n "$(grep -Eo "^pcmanfm --desktop" ~/.config/openbox/autostart.sh)" ] &&
(sed -i 's/^pcmanfm --desktop/#pcmanfm --desktop/g' ~/.config/openbox/autostart.sh
pcmanfm --desktop-off &)
;;
*)
echo 'This script accepts the following arguments: seticons, setnoicons'
;;
esac
Code: Select all
<menu id="deskicons" label="Desktop icons">
<item id="enabledeskicons" label="Enable desktop icons">
<action name="Execute">
<execute>
~/.scripts/deskicons.sh seticons
</execute>
</action>
</item>
First you would need to
Code: Select all
cp /etc/xdg/openbox/{rc.xml,menu.xml,autostart} /home/daniele/.config/openbox
Its a good idea to install obconf and obmenu to easily edit these.
The desktop icons are a good way to launch frequently used apps if you're just running openbox. There isn't any panel with menu or launchers like with LXDE. You can create other *.desktop files like
Code: Select all
[Desktop Entry]
Type=Application
Icon=firefox
Name=Firefox
Exec=firefox
StartupNotify=true
Terminal=false
Re: Cannot delete the link to the home folder on the desktop
[quote="Tim CowChip"]I'm not sure if that would work. No harm in trying it, though. It should be
for the LXDE autostart file.
It does not work
also there is no /home/daniele/.scripts/ folder
Code: Select all
@pcmanfm --desktop-off
for the LXDE autostart file.
It does not work

also there is no /home/daniele/.scripts/ folder
Re: Cannot delete the link to the home folder on the desktop
That should only just disable all desktop icons anyway. Which you can already do by selecting the respective option when you right click on the desktop and select properties.
- Tim CowChip
- Posts: 304
- Joined: 27. May 2011, 03:35
- Location: Cascade Locks, OR
Re: Cannot delete the link to the home folder on the desktop
Open a terminal in your /home/daniel folder
while you've got a terminal open
then if you don't want desktop icons at all
add
to your /home/daniel/.config/openbox/autostart file
or if you think you might like desktop icons
you can add a firefox.desktop file
to your /home/daniel/Desktop folder
then if you want to be able to turn your desktop icons on and off
copy
into /home/daniel/.scripts folder naming it deskicons.sh
and edit /home/daniel/.config/openbox/menu.xml (preferably with obmenu) to run the script with
Then you can turn your desktop icons on or off.
Code: Select all
mkdir .scripts
Code: Select all
cp /etc/xdg/openbox/{rc.xml,menu.xml,autostart} /home/daniele/.config/openbox
add
Code: Select all
pcmanfm --desktop-off &
or if you think you might like desktop icons
you can add a firefox.desktop file
Code: Select all
[Desktop Entry]
Type=Application
Icon=firefox
Name=Firefox
Exec=firefox
StartupNotify=true
Terminal=false
then if you want to be able to turn your desktop icons on and off
copy
Code: Select all
#!/bin/sh
# Released under the WTFPL, without any warranty of any kind.
case "$1" in
seticons)
[ -z "$(grep -Eo "^pcmanfm --desktop" ~/.config/openbox/autostart.sh)" ] &&
(sed -i 's/#pcmanfm --desktop/pcmanfm --desktop/' ~/.config/openbox/autostart.sh
pcmanfm --desktop &)
;;
setnoicons)
[ -n "$(grep -Eo "^pcmanfm --desktop" ~/.config/openbox/autostart.sh)" ] &&
(sed -i 's/^pcmanfm --desktop/#pcmanfm --desktop/g' ~/.config/openbox/autostart.sh
pcmanfm --desktop-off &)
;;
*)
echo 'This script accepts the following arguments: seticons, setnoicons'
;;
esac
and edit /home/daniel/.config/openbox/menu.xml (preferably with obmenu) to run the script with
Code: Select all
<menu id="deskicons" label="Desktop icons">
<item id="enabledeskicons" label="Enable desktop icons">
<action name="Execute">
<execute>
~/.scripts/deskicons.sh seticons
</execute>
</action>
</item>