Cannot delete the link to the home folder on the desktop

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
Dani745
Posts: 17
Joined: 6. Sep 2011, 18:35
Location: Milky Way

Cannot delete the link to the home folder on the desktop

Post by Dani745 »

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?
User avatar
gapan
Salix Wizard
Posts: 6365
Joined: 6. Jun 2009, 17:40

Re: Cannot delete the link to the home folder on the desktop

Post by gapan »

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.
Image
Image
User avatar
Dani745
Posts: 17
Joined: 6. Sep 2011, 18:35
Location: Milky Way

Re: Cannot delete the link to the home folder on the desktop

Post by Dani745 »

OK :( thanks anyway
User avatar
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

Post by Tim CowChip »

Try this:

Code: Select all

pcmanfm --desktop-off &
in your ~/.config/openbox/autostart.sh
ImageImage
User avatar
Dani745
Posts: 17
Joined: 6. Sep 2011, 18:35
Location: Milky Way

Re: Cannot delete the link to the home folder on the desktop

Post by Dani745 »

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?
User avatar
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

Post by Tim CowChip »

I'm not sure if that would work. No harm in trying it, though. It should be

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

You could place this script in /home/daniele/.scripts/deskicons.sh then copy

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>
into your /home/daniele/.config/openbox/menu.xml file.
First you would need to

Code: Select all

cp /etc/xdg/openbox/{rc.xml,menu.xml,autostart} /home/daniele/.config/openbox
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

Code: Select all

[Desktop Entry]
Type=Application
Icon=firefox
Name=Firefox
Exec=firefox
StartupNotify=true
Terminal=false
and place them in your /home/daniele/Desktop folder
ImageImage
User avatar
Dani745
Posts: 17
Joined: 6. Sep 2011, 18:35
Location: Milky Way

Re: Cannot delete the link to the home folder on the desktop

Post by Dani745 »

[quote="Tim CowChip"]I'm not sure if that would work. No harm in trying it, though. It should be

Code: Select all

@pcmanfm --desktop-off

for the LXDE autostart file.

It does not work :|


also there is no /home/daniele/.scripts/ folder
User avatar
gapan
Salix Wizard
Posts: 6365
Joined: 6. Jun 2009, 17:40

Re: Cannot delete the link to the home folder on the desktop

Post by gapan »

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.
Image
Image
User avatar
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

Post by Tim CowChip »

Open a terminal in your /home/daniel folder

Code: Select all

mkdir .scripts
while you've got a terminal open

Code: Select all

cp /etc/xdg/openbox/{rc.xml,menu.xml,autostart} /home/daniele/.config/openbox
then if you don't want desktop icons at all
add

Code: Select all

pcmanfm --desktop-off &
to your /home/daniel/.config/openbox/autostart file

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
to your /home/daniel/Desktop folder

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
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

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>
Then you can turn your desktop icons on or off.
ImageImage
User avatar
Dani745
Posts: 17
Joined: 6. Sep 2011, 18:35
Location: Milky Way

Re: Cannot delete the link to the home folder on the desktop

Post by Dani745 »

OK thanks!! :D
Post Reply