| 1 |
# To create linux icons and file associations |
| 2 |
|
| 3 |
1) Create mime type and install |
| 4 |
|
| 5 |
http://www.freedesktop.org/wiki/Specifications/AddingMIMETutor/ |
| 6 |
|
| 7 |
# xdg-mime install --mode system org-altusmetrum-mimetypes.xml |
| 8 |
# update-mime-database /usr/local/share/mime |
| 9 |
|
| 10 |
On debian, |
| 11 |
|
| 12 |
2) Create icons and install |
| 13 |
|
| 14 |
For mime type application/vnd.altusmetrum.telemetry |
| 15 |
icon name application-vnd.altusmetrum.telemetry.svg |
| 16 |
|
| 17 |
All mime icons go in |
| 18 |
|
| 19 |
/usr/share/icons/hicolor/scalable/mimetypes |
| 20 |
|
| 21 |
Update the icon database |
| 22 |
|
| 23 |
# update-icon-caches /usr/share/icons/hicolor |
| 24 |
|
| 25 |
3) Create .desktop file and install |
| 26 |
|
| 27 |
# xdg-desktop-menu install --mode system altusmetrum-altosui.desktop |
| 28 |
|
| 29 |
# update-desktop-database |