View Single Post
travla's Avatar
Posts: 397 | Thanked: 241 times | Joined on Mar 2010 @ Melbourne, Australia
#6
If you want to take it one step further, you can create a .desktop file in
Code:
/usr/share/applications/hildon
with the following contents:

Code:
[Desktop Entry]
Encoding=UTF-8
Version=0.1
Name=Mount NAS
Type=Application
Comment=Mount command used to map CIFS volume (requires Power Kernel)
Terminal=true
Exec=/usr/bin/osso-xterm "sudo mount -t cifs //YourNASName/YourShare /media/YourSharesNameonN900 -o username=,ip=NASIPAddress,direct"
Icon=nameoficon
X-Window-Icon=
X-Osso-Type=application/x-executable/usr/share/applications/hildon
The bits that you need to fill in are in Bold Red; then add an icon file per nameoficon above, located in /opt/usr/share/icons/hicolor/scalable/hildon/. I use PNG files, but JPEG is fine too, and it should have square dimensions (e.g. 64 x 64).

This will give you an icon in your menu that you can add to your desktop or launch from the menu. You will need to launch it each time you reboot if you want access to your NAS. It adds your share as a Top Level drive in file manager.

Hope this helps, Maemo may not be 100% Open Source, but you at least get freedom to do this sort of stuff.
 

The Following 2 Users Say Thank You to travla For This Useful Post: