Files
haiku-beta6/src/bin/urlwrapper.rdef
T
François Revol af73a9fb93 Add reading of .url files from win, redirects to default browser.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22162 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-09-04 01:26:42 +00:00

60 lines
1.7 KiB
Plaintext

#include "urlwrapper.h"
resource app_signature APP_SIGNATURE;
/*resource app_flags B_MULTIPLE_LAUNCH | B_BACKGROUND_APP | B_ARGV_ONLY;*/
resource app_flags B_MULTIPLE_LAUNCH | B_BACKGROUND_APP;
resource(1, "BEOS:FILE_TYPES") message
{
#ifdef HANDLE_BOOKMARK_FILES
"types" = "application/x-vnd.Be-bookmark",
#endif
#ifdef HANDLE_URL_FILES
/* setmime -set text/x-url -short "Internet Shortcut" -long "Internet Shortcut File" -sniffRule '0.80 ("[InternetShortcut]")' */
"types" = "wwwserver/redirection",
"types" = "application/internet-shortcut",
"types" = "application/x-url",
"types" = "message/external-body",
"types" = "text/url",
"types" = "text/x-url",
#endif
#ifdef HANDLE_FILE
"types" = "application/x-vnd.Be.URL.file",
#endif
#ifdef HANDLE_HTTP_WGET
"types" = "application/x-vnd.Be.URL.http",
#endif
#ifdef HANDLE_QUERY
"types" = "application/x-vnd.Be.URL.query",
#endif
#ifdef HANDLE_MID_CID
"types" = "application/x-vnd.Be.URL.mid",
"types" = "application/x-vnd.Be.URL.cid",
#endif
#ifdef HANDLE_SH
"types" = "application/x-vnd.Be.URL.sh",
#endif
#ifdef HANDLE_BESHARE
"types" = "application/x-vnd.Be.URL.beshare",
#endif
#ifdef HANDLE_IM
"types" = "application/x-vnd.Be.URL.icq",
"types" = "application/x-vnd.Be.URL.msn",
#endif
#ifdef HANDLE_VLC
"types" = "application/x-vnd.Be.URL.mms",
"types" = "application/x-vnd.Be.URL.rtp",
"types" = "application/x-vnd.Be.URL.rtsp",
#endif
#ifdef HANDLE_AUDIO
"types" = "application/x-vnd.Be.URL.audio",
#endif
/* default urls */
"types" = "application/x-vnd.Be.URL.telnet",
"types" = "application/x-vnd.Be.URL.ssh",
"types" = "application/x-vnd.Be.URL.ftp",
"types" = "application/x-vnd.Be.URL.sftp",
"types" = "application/x-vnd.Be.URL.finger"
};