SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-05-26 19:08:28

pidsley
Window Mangler
Registered: 2012-05-23
Posts: 1,752

How To -- manage desktop icons with pcmanfm

First a few comments. I don't use desktop icons. I don't even really like desktop icons. But I do like solving problems, and this one comes up often enough that I thought I'd write down the steps. We already have a good wiki entry for adding desktop icons using xfdesktop, but I could not find a recent topic on using pcmanfm.

There are many ways to manage desktop icons; I mentioned the wiki entry on using xfdesktop. You can also just install Xfce, or LXDE, and be done with it -- both DEs have desktop icons and they do all the configuration work for you. But if you're dead set on doing it yourself with pcmanfm, read on.

I assume you already have pcmanfm installed. If you read the man page you will see that pcmanfm can manage the desktop and set wallpaper (why this should be the job of a file manager I don't really understand, but there it is). You tell pcmanfm to manage the desktop with this command:

pcmanfm --desktop

If you do this, you will see desktop icons, but you will see icons for all the folders and files in your /home folder. You will need to create a "desktop" folder and point pcmanfm at the folder by modifying ~/.config/user-dirs.dirs:

mkdir ~/desktop
nano ~/.config/user-dirs.dirs

(I use nano, but you can of course use a different editor) Now find this line in user-dirs.dirs:

XDG_DESKTOP_DIR="$HOME"

and change it to

XDG_DESKTOP_DIR="$HOME/desktop"

Save the file. Now pcmanfm will only display files and folders in your desktop folder.

You also need to change a few more things in a standard #! install. #! usually uses nitrogen to manage the desktop wallpaper, but because pcmanfm is now managing your desktop, you also have to use it to change the wallpaper. Back in the man page, you will see several wallpaper-related options. Edit the openbox autostart file (~/.config/openbox/autostart); remove all references to nitrogen, and add this code:

pcmanfm --desktop &
sleep 1s
pcmanfm --set-wallpaper=/home/user/images/wallpaper/nicepic.jpg

Now after you log out and log back in, you should have icons and a nice desktop. If you are using conky and it's not visible, make sure you have

own_window_type normal

in your .conkyrc.

If you want shortcuts for applications on your desktop, you need to copy .desktop files from /usr/share/applications into your desktop folder. This code puts a shortcut for Terminator on the desktop:

cp /usr/share/applications/terminator.desktop ~/desktop

You will probably still find your openbox menu available from a right click on the desktop. If it is not, you can get it back using the pcmanfm desktop menu, on the "Advanced" tab, select "Show menus provided by window managers when desktop is clicked"

You can change the wallpaper using "pcmanfm --set-wallpaper=" in a terminal or by using the pcmanfm desktop menu. If this menu is not available when you right-click the desktop, you can start it with

pcmanfm --desktop-pref

If you always want this menu from a right click, unselect the "Show menus provided by window managers..." on the Advanced tab of the menu.

2012_05_26_103749_1280x1024_scrot.jpg

Last edited by pidsley (2013-09-05 13:44:44)

Offline

Help fund CrunchBang, donate to the project!

#2 2012-05-26 19:29:12

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 10,163
Website

Re: How To -- manage desktop icons with pcmanfm

Very nice How To pidsley... cool

Added it to Quick References


VSIDO | SolusOS

Words That Build Or Destroy

Offline

#3 2012-05-26 20:13:02

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: How To -- manage desktop icons with pcmanfm

great work pidsley!
explain one thing to me: you just entered these forums seemingly out of nowhere and started helping people out (and doing a great job at it too). are you set on staying semi-mysterious, and not allow us the pleasure of giving you a proper welcome to the community? in other words: Y U NO MAKE INTRO-THREAD!? big_smile

Offline

#4 2012-06-07 12:56:25

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,620
Website

Re: How To -- manage desktop icons with pcmanfm

Pidsley, as promised I added the post to the wiki page: http://crunchbanglinux.org/wiki/howto/add_desktop_icons (even though John already linked to it, hehe)

Thanks for your contribution!

Offline

#5 2012-06-07 13:13:40

pidsley
Window Mangler
Registered: 2012-05-23
Posts: 1,752

Re: How To -- manage desktop icons with pcmanfm

^ Thanks.

Offline

#6 2013-09-05 09:14:27

brignet
New Member
Registered: 2013-09-05
Posts: 1

Re: How To -- manage desktop icons with pcmanfm

stepping into the "way back" machine.
when XP was a RC my boss at a small ISP told me i could install and use it only if i did not change to the 2000 style start menu.
I agreed and have never looked back.

I am losing the icons.

Offline

#7 2014-01-16 20:03:01

omnihil
Member
From: Hannover -Germany
Registered: 2014-01-16
Posts: 21

Re: How To -- manage desktop icons with pcmanfm

Great post! Dont use shortcuts by myself but a exemplary How-To, thanks!

Offline

#8 2014-08-04 18:28:12

radry
New Member
Registered: 2014-08-04
Posts: 1

Re: How To -- manage desktop icons with pcmanfm

I tried both pcmanfm and xfdesktop4 but they made the tint2 taskbar dissappear. Even worse, xfdesktop replaced the whole window style/theme. Bringing cronky to the foreground didn't work either.

Anyone care to update this guide so that it works with Waldorf?

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo