Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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)

share|improve this question
add comment

2 Answers

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

share|improve this answer
add comment

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 set 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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.