On 04/22/10 19:46, Wai Yan Pong wrote: > Hi, I have a problem in opening a certain type of file using the fish > command "open" in Openbox. Pretty sure I set the mime type correctly in > Gnome cos "open" causes no problem when I run FISH shell in Gnome. Perhaps > it's more an Openbox problem than FISH but someone can help me out here.
well let's look at 'type open'; it says to use xdg-open (or mimedb if xdg-open isn't installed), so you could investigate those; > open is a function with definition > > function open --description 'Open file in default application' > if count $argv >/dev/null > switch $argv[1] > case -h --h --he --hel --help > __fish_print_help open > return 0 > end > end > > if type -f xdg-open >/dev/null > for i in $argv > xdg-open $i > end > else > mimedb -l -- $argv > end > > end ------------------------------------------------------------------------------ _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
