You are not logged in.
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
sudo rm -R My Documents
Its a sick world we live in....
Offline
I would have done that if I knew where it was.
$ sudo updatedb && locate My\ Documents
Password:
$
Offline
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
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!
Last edited by Barrucadu (2008-06-08 18:09:39)
Offline
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
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