Add screenshot folder in search preview in ubuntu 24.04
for that we have to create folder-name.desktop file and put it on ~/local/share/applications
or run below command
- change folder name
- change Exec xdg-open value of original folder full path
or run below command ( change
cat << 'EOF' > ~/.local/share/applications/screenshot.desktop[Desktop Entry]Version=1.0Type=ApplicationName=ScreenshotComment=Screenshot FolderIcon=folderExec=xdg-open /home/<username>/Pictures/ScreenshotsCategories=Development;Terminal=falseEOFand Tada; Now folder available when you type pressing start button.
Bonus tip
and if you want to pin a folder to dash then change Exec value additionally you can add icon and Categories; here I am adding Music folder in Dash
but it will be added only when you search and then dreg that search icon; as I am changing folder name also to mausiki
[Desktop Entry]Version=1.0Type=ApplicationName=MausikiComment=Quick access to Music collectionIcon=folder-musicExec=nautilus /home/<username>/MusicCategories=AudioVideo;Audio;Music;Terminal=false