I have .desktop files for my Home and Trash folders but I would like to create them also for the Documents, Downloads, and Dropbox folders. How would I create these additional .desktop files to show the appropriate icons?
Hi - are you looking to get those folders to show up in the “Places” section of Dolphin, in the sidebar? If so, you might need to right-click on the folder you want to show up, and choose “Add to Places” from the right-click menu.
Or, are you looking to get an icon for those folders to show up on your desktop itself (like on top of your wallpaper, behind any open windows)? If so, then IMO the easiest way is to drag the folder from Dolphin to the desktop itself, then when you’re asked which action to take, choose “Add Icon”.
Hope that helps,
Yes, I’m talking about this, but I want to do it using .desktop files so I can drag the icons around the desktop as I please. These are what I use for the Home and Trash folders:
home.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Home
GenericName=Personal Files
URL[$e]=$HOME
Icon=user-home
Type=Link
trash.desktop
[Desktop Entry]
Name=Trash
Comment=Contains deleted files
Icon=user-trash-full
EmptyIcon=user-trash
Type=Link
URL=trash:/
OnlyShowIn=KDE;
The way I initially mentioned is shown on the left here, and creates a .desktop file in ~/.local/share/plasma_icons/
You can, instead, choose “Link Here” when you drag to the desktop, and you’ll get an icon that you can move without using Edit Mode, based on a file created in the actual ~/Desktop
folder. You could also copy, rename and edit the URL in those .desktop files you showed in your post and make them by hand if you wish.