You are not logged in.

#1 2008-06-08 11:27:03

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

PCManFM managing the desktop.

I just decided to allow PCManFM to manage the desktop to see if I actually would use desktop shotrcuts given the chance. However, it created a shortcut to ~ owned by root called "My Documents" on the desktop. How would I go about removing that?

Offline

#2 2008-06-08 12:56:43

aRcHaTe
Member
Registered: 2006-10-24
Posts: 646

Re: PCManFM managing the desktop.

sudo rm -R My Documents


Its a sick world we live in....

Offline

#3 2008-06-08 13:01:53

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: PCManFM managing the desktop.

I would have done that if I knew where it was.

$ sudo updatedb && locate My\ Documents
Password: 
$

Offline

#4 2008-06-08 16:49:36

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: PCManFM managing the desktop.

It's a pcmanfm icon, it's not a real link. Everything else is just the contents of ~/Desktop folder. I don't know how/if it can be removed.

Offline

#5 2008-06-08 18:09:22

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: PCManFM managing the desktop.

I've switched back to Feh for now. If I can't control down to the very last icon what is on that desktop, I don't want any icons! tongue

Last edited by Barrucadu (2008-06-08 18:09:39)

Offline

#6 2008-06-10 21:40:50

shazeal
Member
From: New Zealand
Registered: 2007-06-05
Posts: 341

Re: PCManFM managing the desktop.

I am using PCManFM to manage my wallpaper as I am using compiz as a standalone and the compiz wallpaper manager has all sorts of problems. I just hacked out the code that creates the My Documents link in the source code an recompiled it tongue

I dont know if this will work with the 0.4.1.1 version from the Arch repository as I am using the Fuse version, but code should be similar if you have to do it by hand. What it really needs its the options switched so you enable desktop wallpaper, and then icons if you want them, not the otherway around like it is now. I might actually make a real patch for it once my exams are over.

--- orig/src/desktop/desktop-window.c    2008-05-12 06:19:47.000000000 +1200
+++ pcmanfm-0.4.4.2/src/desktop/desktop-window.c    2008-06-10 22:17:23.176055106 +1200
@@ -1102,21 +1102,21 @@ void on_file_listed( VFSDir* dir, gboole
     self->items = g_list_sort_with_data( items, get_sort_func(self), self );
 
     /* Make an item for Home dir */
-    fi = vfs_file_info_new();
-    fi->disp_name = g_strdup( _("My Documents") );
-    fi->mime_type = vfs_mime_type_get_from_type( XDG_MIME_TYPE_DIRECTORY );
-    fi->name = g_strdup( g_get_home_dir() );
-    fi->mode |= S_IFDIR;
-    fi->flags |= VFS_FILE_INFO_VIRTUAL; /* this is a virtual file which doesn't exist on the file system */
-    fi->big_thumbnail = gtk_icon_theme_load_icon(gtk_icon_theme_get_default(), "gnome-fs-home", self->icon_size, 0, NULL );
-    if( ! fi->big_thumbnail )
-        fi->big_thumbnail = gtk_icon_theme_load_icon(gtk_icon_theme_get_default(), "folder-home", self->icon_size, 0, NULL );
+//    fi = vfs_file_info_new();
+//    fi->disp_name = g_strdup( _("My Documents") );
+//    fi->mime_type = vfs_mime_type_get_from_type( XDG_MIME_TYPE_DIRECTORY );
+//    fi->name = g_strdup( g_get_home_dir() );
+//    fi->mode |= S_IFDIR;
+//    fi->flags |= VFS_FILE_INFO_VIRTUAL; /* this is a virtual file which doesn't exist on the file system */
+//    fi->big_thumbnail = gtk_icon_theme_load_icon(gtk_icon_theme_get_default(), "gnome-fs-home", self->icon_size, 0, NULL );
+//    if( ! fi->big_thumbnail )
+//        fi->big_thumbnail = gtk_icon_theme_load_icon(gtk_icon_theme_get_default(), "folder-home", self->icon_size, 0, NULL );
 
-    item = g_slice_new0( DesktopItem );
-    item->fi = fi;
+//    item = g_slice_new0( DesktopItem );
+//    item->fi = fi;
     /* item->icon = vfs_file_info_get_big_thumbnail( fi ); */
 
-    self->items = g_list_prepend( self->items, item );
+//    self->items = g_list_prepend( self->items, item );
 
     layout_items( self );
 }

Offline

Board footer

Powered by FluxBB