11

My dualboot-system (win7 / ubuntu 12.04) has a ntfs-formatted partition called "/share" for files I use both in win7 and ubuntu (e.g. pictures, music etc.).

I'd like to have a symbol of this drive in the launcher. But although the partition is mounted (Mount point: /media/share) and shown in the left side bar of a folder, there is no Icon in the launcher! How can I add this Icon to the launcher?

(CompizConfig Setting manager >> ubuntu unity plugin >> Experimental >> show devices always" will only show win-Partition, not the /share -partition)

bushi
  • 111
  • 1
  • 1
  • 3

4 Answers4

14

I have a hd named "backup" which I "accidentally" removed. ;)

I added the backup-hd-icon to the launcher by

  1. Clicked the dash
  2. Typed backup
  3. Dragged the icon to the launcher

Important is that you don't drag the folder, you want to search for the hd icon

axel112
  • 141
5

Create a .desktop file and place it in .local/share/applications/

As your device is mounted at /media/share, lets name the file as mediashare.desktop

The content of the file will be as follows:

[Desktop Entry]
Version=1.0
Type=Application
Name=Shared Media
Comment=Shared Media
Exec=nautilus /media/share
Icon=system-file-manager
X-Ubuntu-Gettext-Domain=mediashare

Once this is done, run the following in your terminal

gsettings get com.canonical.Unity.Launcher favorites

A list of icons on the launcher will be displayed like this:
['unity://running-apps', 'unity://expo-icon', 'unity://devices']

Now add the mediashare.desktop to it like this:
['unity://running-apps', 'unity://expo-icon', 'unity://devices', 'mediashare.desktop']

Now copy the above and run the following in the terminal

gsettings set com.canonical.Unity.Launcher favorites "['unity://running-apps', 'unity://expo-icon', 'unity://devices', 'mediashare.desktop']"

Mind the quotes.

Press Alt + F2, type unity and press Enter to refresh unity.

David Foerster
  • 36,264
  • 56
  • 94
  • 147
blvdeer
  • 482
  • That's not too hard, but I'm still surprised there's not an utility to make shortcuts about anything, like on Windows. – Quidam Jun 04 '20 at 16:18
3
  1. Open the "dash" (first option in the launcher bar).
  2. Type your drive name which you want to add in your launcher.
  3. Drag the drive icon to the launcher.
Fabby
  • 34,259
  • Comment to both editor and original poster: AskUbuntu has automatically numbered lists. Just use [space]number[dot][space] and then type your text. Even if the numbers are not in the correct order when typing, they will come out looking great! for more information: http://askubuntu.com/editing-help – Fabby Jan 03 '15 at 12:41
  • Simple and works like a charm – Nur Rony Jan 24 '15 at 08:38
  • 1
    This answer has the same contents like the one above by axel112! – Byte Commander Feb 09 '15 at 15:48
1

Click on ''Files'' in Launcher. from the left side menu bar click on the drive you want to launch. now the drive opens and contents are displayed. at the same time that drive is seen in the unity launcher. Right click on that drive and click on "Lock to launcher''. Done !!

Anwar
  • 11