From 0fc204871827cdb8efa10d8e515c52a493752c97 Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Tue, 4 Jun 2013 14:07:21 +0300 Subject: [PATCH] added audio file associations --- .../svjatoslav/instantlauncher/FileAssociationManager.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/eu/svjatoslav/instantlauncher/FileAssociationManager.java b/src/main/java/eu/svjatoslav/instantlauncher/FileAssociationManager.java index df40676..bb08388 100755 --- a/src/main/java/eu/svjatoslav/instantlauncher/FileAssociationManager.java +++ b/src/main/java/eu/svjatoslav/instantlauncher/FileAssociationManager.java @@ -16,6 +16,8 @@ public class FileAssociationManager { private static final String FILE_INDICATOR = ""; + private static final String MUSIC_PLAYER = "clementine"; + public static HashMap extensionToApplication = new HashMap(); public static boolean openFile(final File file) { @@ -76,6 +78,11 @@ public class FileAssociationManager { extensionToApplication.put("flv", new String[] { "vlc", FILE_INDICATOR }); extensionToApplication.put("wmv", new String[] { "vlc", FILE_INDICATOR }); + extensionToApplication.put("flac", new String[] { MUSIC_PLAYER, FILE_INDICATOR }); + extensionToApplication.put("mp3", new String[] { MUSIC_PLAYER, FILE_INDICATOR }); + extensionToApplication.put("ogg", new String[] { MUSIC_PLAYER, FILE_INDICATOR }); + extensionToApplication.put("wav", new String[] { MUSIC_PLAYER, FILE_INDICATOR }); + extensionToApplication.put("ods", new String[] { SPREADSHEET_EDITOR, FILE_INDICATOR }); extensionToApplication.put("xls", new String[] { SPREADSHEET_EDITOR, FILE_INDICATOR }); extensionToApplication.put("xlsx", new String[] { SPREADSHEET_EDITOR, FILE_INDICATOR }); -- 2.20.1