You are not logged in.

#1 2014-02-17 18:03:20

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

Can I "open with" on Catfish gui search results? Yes: see AUR packages

EDIT March 2, 2014: I have answered my own question below by uploading 4 packages to AUR. Reading through this thread will help to understand what they're for. Here are the 4 packages:
https://aur.archlinux.org/packages/gmv/
https://aur.archlinux.org/packages/gnom … -nautilus/
https://aur.archlinux.org/packages/nautilus-data/
https://aur.archlinux.org/packages/open_choose/

Briefly, open_choose gives you the "open with" on Catfish, gmv gives you the ability to rename (and move) files in catfish, gnome-search-tool-no-nautilus is an alternative to catfish that works without installing nautilus because it installs nautilus-data instead, and so doesn't need gnome-desktop either.

ORIGINAL QUESTION
I have created a Thunar custom action to search folders using Catfish, but I rarely use it because I usually need to "open with" one of the results with something other than the default application.

Here is the custom action:

Name: Search
Description: Find files or folders
Command: catfish --fileman=thunar --path=%f
Appears if selection contains: Directories

I can search the folder currently displayed in Thunar by right-clicking an empty space between icons, or I can search one of the sub-folders by right-clicking that sub-folder. That works great, but once I have the results, all I can do is open one of the files with the default application. Can I get an "open with" option on the right-click context menu in Catfish search results?

I just realized that I also want to be able to rename files from the results as well. If Catfish doesn't do this stuff, is there another gui linux application that does?

Last edited by colinkeenan (2014-03-02 21:17:32)

Offline

#2 2014-02-18 05:59:35

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Can I "open with" on Catfish gui search results? Yes: see AUR packages

I doubt you can add something to Catfish context menu custom wise.

Yet isn't it enough as a workaround to copy the location (right mouse click) of a file or folder and proceed with it in the shell?

Offline

#3 2014-02-18 19:14:18

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

Re: Can I "open with" on Catfish gui search results? Yes: see AUR packages

orschiro wrote:

I doubt you can add something to Catfish context menu custom wise.

Yet isn't it enough as a workaround to copy the location (right mouse click) of a file or folder and proceed with it in the shell?

If I'm going to use the command line, easier to do it from the start and not even bother opening Thunar. I usually know where the file is located already and just using Catfish to avoid looking through a long list of files. If I don't know where the file is located, find works perfectly well from the command line. In order for Catfish to be useful for me, I need to be able to handle everything from within Thunar and Catfish.

Offline

#4 2014-02-19 02:07:04

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

Re: Can I "open with" on Catfish gui search results? Yes: see AUR packages

I found out gnome-search-tool does have "open with", but if you install it directly using pacman, you also end up installing gnome-desktop to get nautilus. However, in reality none of that is needed for gnome-search-tool. All you need is nautilus-data which are just some data files. Before today, nautilus-data wasn't available in Arch.

I spent a good part of the day figuring out how to create a PKGBUILD using a .deb file to do a proper installation in Arch, then created the following package in AUR:

https://aur.archlinux.org/packages/nautilus-data/

After installing nautilus-data from AUR, you can use abs to get the PKGBUILD for gnome-search-tool and edit it changing the depends from nautilus to nautilus-data. You can read the details of what to do in the comments at the top of my PKGBUILD for nautilus-data on AUR.

https://aur.archlinux.org/packages/na/n … a/PKGBUILD

This is the first time I submitted anything to AUR or created a PKGBUILD. Before today, I've been using yaourt without understanding much of what was going on. I would appreciate it if somebody more experienced could check my package and make suggestions if anything should be improved.

Thanks.

Offline

#5 2014-02-19 04:45:35

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

Re: Can I "open with" on Catfish gui search results? Yes: see AUR packages

I have uploaded another package to AUR so that it's not necessary to use abs to install gnome-search-tool without nautilus/gnome-desktop. Here's the package:

https://aur.archlinux.org/packages/gnom … -nautilus/

Again, if anyone sees improvements I can make to these packages, please let me know.

Offline

#6 2014-02-19 06:12:20

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Can I "open with" on Catfish gui search results? Yes: see AUR packages

Nice, thanks!

I would make deb2targz a makedepends though.

Regarding the functionality. I installed both packages, opened catfish, searched for a file and did a right mouse click to open the context menu. Yet I cannot find any "open with" menu entry. Something I am missing?

Offline

#7 2014-02-19 12:58:51

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

Re: Can I "open with" on Catfish gui search results? Yes: see AUR packages

orschiro wrote:

Nice, thanks!

I would make deb2targz a makedepends though.

Regarding the functionality. I installed both packages, opened catfish, searched for a file and did a right mouse click to open the context menu. Yet I cannot find any "open with" menu entry. Something I am missing?

I think you meant to type "opened gnome-search-tool" instead of "opened catfish". It looks like if there are less than 4 recommended applications for a file, gnome-search-tool just gives you a list of choices instead of "open with", but for example, searching on "pkgbuild" and right-clicking on one of the found "PKGBUILD" files does give me the "open with" choice because I happen to have 4 possible applications installed to open a text file. While this at least provides more choices than the default, it unfortunately doesn't provide the full functionality of "open with" in Thunar which of course allows me to pick applications not specifically made for the file, like a web browser or something.

I've also noticed I have to press enter twice to actually see the found results which is kind of strange. It took me a while to realize if I want to add more options, after selecting from the drop down "Available options" menu, I have to click the " +Add" button. I like that many options can be added and there's a good list of options, but most of the time, searching on the name is good enough.

I actually thought of the makedepends thing last night but didn't want to bother with it until this morning. I'm going to try to figure out how packages like google-chrome do it without deb2targz first. If I can't figure that out, I'll change it to makedepends.

Thanks for your feedback.

Offline

#8 2014-02-19 13:38:25

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

Re: Can I "open with" on Catfish gui search results? Yes: see AUR packages

In case you really did open Catfish, you should know gnome-search-tool is an *alternative* to catfish, not a catfish plugin/extension or something like that. I added the following custom action to Thunar:

Name: Find
Description: Find files or folders
Command: gnome-search-tool --path=%f
Appearance Conditions: Directories

I also discovered that I only have to press enter twice to see the results of the search if there's only a couple results. When there's a long list, it displays the results right away. This seems like a minor bug for gnome-search-tool.

As for how the PKGBUILD for google-chrome works, it is a complete mystery to me. Their source is a .deb file, but the rest of the PKGBUILD makes no reference to a .deb file. It goes straight to "Extracting the data.tar.lzma" even though that file is inside the .deb file. I don't get it. I checked the .install file, but that just runs a script to update the mime types handled by desktop files after install is complete. So how do they get data.tar.lzma out of the .deb file? I think I'll post that question on https://aur.archlinux.org/packages/google-chrome-dev/.

Offline

#9 2014-02-19 14:07:19

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

Re: Can I "open with" on Catfish gui search results? Yes: see AUR packages

I have updated both packages. For nautilus-data, I changed depends to makedepends so you can uninstall deb2targz if you want to. For gnome-search-tool-no-nautilus, I just added a "provides" section to again explain the difference between this package and the one in the 'extra' repository.

Offline

#10 2014-02-19 18:11:02

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

Re: Can I "open with" on Catfish gui search results? Yes: see AUR packages

I got advice from Det, the maintainer of google-chrome-dev on how to avoid using deb2targz altogether and some other advice. I've updated both packages several times now.

Offline

#11 2014-02-21 19:44:52

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Can I "open with" on Catfish gui search results? Yes: see AUR packages

@colinkeenan

Thanks for your contribution! What about creating a Wiki page for an overview on search tools such as your modified gnome search tool, catfish and others?

Offline

#12 2014-02-21 19:58:55

progandy
Member
Registered: 2012-05-17
Posts: 5,279

Re: Can I "open with" on Catfish gui search results? Yes: see AUR packages

colinkeenan wrote:

I can search the folder currently displayed in Thunar by right-clicking an empty space between icons, or I can search one of the sub-folders by right-clicking that sub-folder. That works great, but once I have the results, all I can do is open one of the files with the default application. Can I get an "open with" option on the right-click context menu in Catfish search results?

I just realized that I also want to be able to rename files from the results as well. If Catfish doesn't do this stuff, is there another gui linux application that does?

catfish is only a search interface. You can set your own handler script for results with --wrapper. This script then can open the file with xdg-open, open a dialog to rename the file or show an option dialog to choose between actions.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#13 2014-02-21 20:01:04

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Can I "open with" on Catfish gui search results? Yes: see AUR packages

@progandy

And the action of the handler script would show up as an entry in the context menu of a searched file or how do you invoke the script?

Offline

#14 2014-02-21 20:20:49

progandy
Member
Registered: 2012-05-17
Posts: 5,279

Re: Can I "open with" on Catfish gui search results? Yes: see AUR packages

orschiro wrote:

@progandy

And the action of the handler script would show up as an entry in the context menu of a searched file or how do you invoke the script?

No. The action handler will replace the default "Open". Put it in $PATH and set it with the option --wrapper. Here is a simple example:
Save the following as ~/bin/open_choose

#!/bin/sh

case "$(xkbmstate)" in # uses https://github.com/progandy/xkbmstate
        *+Mod5*)
                # AltGr pressed during open
                zenity --info --text "You selected \n \'$*\'"
        ;;

        *)
                zenity --info --text "Normal xdg-open operation \n \'$*\'"
                exec xdg-open "$@"
        ;;
esac

Then run

export PATH="$HOME/bin:$PATH"
catfish --wrapper=open_choose

| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#15 2014-02-21 21:23:29

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

Re: Can I "open with" on Catfish gui search results? Yes: see AUR packages

progandy wrote:
orschiro wrote:

@progandy

And the action of the handler script would show up as an entry in the context menu of a searched file or how do you invoke the script?

No. The action handler will replace the default "Open". Put it in $PATH and set it with the option --wrapper. Here is a simple example:
Save the following as ~/bin/open_choose

#!/bin/sh

case "$(xkbmstate)" in # uses https://github.com/progandy/xkbmstate
        *+Mod5*)
                # AltGr pressed during open
                zenity --info --text "You selected \n \'$*\'"
        ;;

        *)
                zenity --info --text "Normal xdg-open operation \n \'$*\'"
                exec xdg-open "$@"
        ;;
esac

Then run

export PATH="$HOME/bin:$PATH"
catfish --wrapper=open_choose

OK, I think I understand although I don't want to try your script using xkbmstate. I think If I followed your example in full, this script would execute when I double-clicked a search result or right-clicked opened it. Then, if I wasn't holding down Alt-something-or-other while double-clicking a search result, it would just use the default application to open the file. But, if I did hold down Alt-something-or-other, then this script would popup a window saying what keys I had pressed. I'll probably work on putting the --wrapper= option to use in the next couple of days.

Thanks!

Last edited by colinkeenan (2014-02-21 22:50:28)

Offline

#16 2014-02-21 22:53:51

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

Re: Can I "open with" on Catfish gui search results? Yes: see AUR packages

orschiro wrote:

@colinkeenan

Thanks for your contribution! What about creating a Wiki page for an overview on search tools such as your modified gnome search tool, catfish and others?

Eventually I will do that. Thanks for the suggestion. First I need to take some time to better understand the various search methods. I've only put them to occasional and minimal use so far, but have started using them more as I work on this little project.

Offline

#17 2014-02-21 23:06:12

progandy
Member
Registered: 2012-05-17
Posts: 5,279

Re: Can I "open with" on Catfish gui search results? Yes: see AUR packages

colinkeenan wrote:

OK, I think I understand although I don't want to try your script using xkbmstate. I think If I followed your example in full, this script would execute when I double-clicked a search result or right-clicked opened it. Then, if I wasn't holding down Alt-something-or-other while double-clicking a search result, it would just use the default application to open the file. But, if I did hold down Alt-something-or-other, then this script would popup a window saying what keys I had pressed. I'll probably work on putting the --wrapper= option to use in the next couple of days.

Thanks!

That's it. I use xkbmstate to detect AltGr. So if AltGr is pressed while opening the file, it will only show "You selected ...". If you don't press AltGr, then it will open the file with xdg-open. You can always do the same action or show a menu (dmenu, XDialog or zenity) instead.

Last edited by progandy (2014-02-21 23:08:52)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#18 2014-02-22 21:38:18

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

Re: Can I "open with" on Catfish gui search results? Yes: see AUR packages

I think a lot of people will enjoy this wrapper file I came up with for catfish. It lets you get a full open-with dialog. Unfortunately, gnome-search-tool doesn't have a "--wrapper" option so this script can only be used with catfish.

You will need to install perl-file-mimeinfo to have the mimetype command that I use in this script. I also use zenity that almost everyone has installed already.

/usr/local/bin/open_choose:

#!/bin/bash

tp=`mimetype "$1"`           # get mimetype of the file
tp="${tp#$1:' '}"            # remove path/file from the output to just get the mimetype
                             # get the list of .desktop files for that mimetype
apps=`cat /usr/share/applications/mimeinfo.cache | grep "$tp"` 
apps="${apps#$tp\=}"         # remove mimetype from front of .desktop list

# setup array for the list of .desktop files

oldIFS=$IFS
IFS=';'                      # use semi-colon as delimiter
list_arr=( $apps )
list_arr+=( "Other .desktop file" )

# Ask what .desktop file should be used to open $1

desktop_file=`zenity --list --title="Open Choose " --text="" --column="Open With ..." ${list_arr[@]}`
IFS=$oldIFS                  # restore old delimiter

# if Other .desktop is desired, let them choose whatever they want

if [ "$desktop_file" == "Other .desktop file" ]; then 
  desktop_file=`zenity --file-selection`
  app=`cat "$desktop_file" | grep -m 1 "^Exec"`                     # find 1st Exec=... in Other .desktop file
else
  app=`cat "/usr/share/applications/""$desktop_file" | grep -m 1 "^Exec"` # find 1st Exec=... in .desktop file
fi

app="${app#'Exec='}"                                              # remove Exec= at start of line
app="${app%\%*}"                                                  # remove trailing %U or whatever
app=$( echo "$app" | sed -e 's/^ *//g' -e 's/ *$//g')             # remove trailing and leading spaces
app=$( echo "$app" | sed 's/ /\\ /g' )                            # escape remaining spaces

if [ "$app" ]; then
  to_open="$1"
  to_open=$( echo "$to_open" | sed 's/ /\\ /g' )                    # escape spaces in file to open
  eval "$app"" ""$to_open"                                          # finally open it
else
  if [ $desktop_file ]; then
    zenity --error --text="$desktop_file is not a valid .desktop file because it is missing Exec=..."
    exit -1
  fi
fi

Make sure to

sudo chmod +x /usr/local/bin/open_choose

.
Then, you can use this with catfish by running

catfish --wrapper=open_choose

as progandy explained. No need to export the path unless you put this script somewhere else because /usr/local/bin is already part of the path.

I'm just a beginner at bash programming. I mean I've done it every once in a while for years, but I never did a lot of it. So, if anyone sees easier or more standard ways of doing the various things I'm doing in this script, please let me know.

Last edited by colinkeenan (2014-02-22 21:44:21)

Offline

#19 2014-02-22 22:07:01

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

Re: Can I "open with" on Catfish gui search results? Yes: see AUR packages

Here is another script I wrote to add the ability to rename or move files in gnome-search-tool (and also any file manager) using the mv command in a dialog. It also gives you a way to copy the file location as you can with catfish. It needs to be used along with the .desktop file listed after the script below. If you use the wrapper script for catfish above, catfish will also be able to use this script because it's .desktop file will be listed as an option for any file.

In addition to putting the script and desktop files in the correct locations, you will have to update the mime cache with the commands I list at the end of this post.

*You will need to install yad available in AUR*.
I tried to do it with zenity, but zenity didn't document any way to put default values into a form, so I went with yad instead.

Here's the script:

/usr/local/bin/gmv

#!/bin/bash

filename=$(basename "$1")
path="${1%$filename}"

new_filename_form=`yad --form \
--title="$filename" \
--separator="," \
--field="Original path/filename:" \
--field="New Path:" \
--field="New Filename:" \
"$1" "$path" "$filename"`

new_path="$(awk -F, '{print $2}' <<<"$new_filename_form")"
if [ "$new_path" ] ; then
  i=$((${#new_path}-1))
  if [ "${new_path:$i:1}" != "/" ]; then
    new_path="$new_path""/"
  fi 
  
  new_filename="$(awk -F, '{print $3}' <<<"$new_filename_form")"
  
  mv_to="$new_path$new_filename"
  
  if [ "$mv_to" ] && [ "$mv_to" != "$1" ]; then
    mv_error=`mv "$1" "$mv_to" 2>&1`
    if [ "$mv_error" ]; then 
      yad --error --text="$mv_error"
    fi
  fi
fi

Here's the .desktop file:

/usr/share/applications/gmv.desktop

[Desktop Entry]
Name=Move or Rename
Comment=Use the "mv" bash command on a file or folder
GenericName=GUI for 'mv'
Exec=/usr/local/bin/gmv %U
Icon=file-manager
Terminal=false
StartupNotify=true
Type=Application
Categories=System;Utility;GTK;Filesystem;
MimeType=inode/directory;application/x-executable;application/acad;application/arj;application/base64;application/binhex;application/binhex4;application/book;application/cdf;application/clariscad;application/commonground;application/docbook+xml;application/drafting;application/dsptype;application/dxf;application/ecmascript;application/envoy;application/excel;application/fractals;application/freeloader;application/futuresplash;application/gnutar;application/groupwise;application/hlp;application/hta;application/i-deas;application/iges;application/inf;application/java;application/java-byte-code;application/javascript;application/lha;application/lzx;application/mac-binary;application/mac-binhex;application/mac-binhex40;application/mac-compactpro;application/macbinary;application/marc;application/mbedlet;application/mcad;application/mime;application/msexcel;application/mspowerpoint;application/msword;application/mswrite;application/netmc;application/octet-stream;application/oda;application/pdf;application/pkcs-12;application/pkcs-crl;application/pkcs10;application/pkcs7-mime;application/pkcs7-signature;application/pkix-cert;application/pkix-crl;application/plain;application/postscript;application/powerpoint;application/pro_eng;application/ringing-tones;application/rtf;application/sdp;application/sea;application/set;application/sla;application/smil;application/solids;application/sounder;application/step;application/streamingmedia;application/tab-separated-values;application/toolbook;application/vda;application/vnd-acucobol;application/vnd-curl;application/vnd-dart;application/vnd-dxr;application/vnd-fdf;application/vnd-mif;application/vnd-sema;application/vnd-wap-wmlc;application/vnd.3M.Post-it-Notes;application/vnd.3gpp.bsf+xml;application/vnd.3gpp.pic-bw-large;application/vnd.3gpp.pic-bw-small;application/vnd.3gpp.pic-bw-var;application/vnd.3gpp.sms;application/vnd.3gpp2.bcmcsinfo+xml;application/vnd.3gpp2.sms;application/vnd.3gpp2.tcap;application/vnd.FloGraphIt;application/vnd.HandHeld-Entertainment+xml;application/vnd.Kinar;application/vnd.MFER;application/vnd.Mobius.DAF;application/vnd.Mobius.DIS;application/vnd.Mobius.MBK;application/vnd.Mobius.MQY;application/vnd.Mobius.MSL;application/vnd.Mobius.PLC;application/vnd.Mobius.TXF;application/vnd.Quark.QuarkXPress;application/vnd.SimTech-MindMapper;application/vnd.accpac.simply.aso;application/vnd.accpac.simply.imp;application/vnd.acucorp;application/vnd.adobe.flash-movie;application/vnd.adobe.formscentral.fcdt;application/vnd.adobe.fxp;application/vnd.adobe.partial-upload;application/vnd.adobe.pdx;application/vnd.adobe.xdp+xml;application/vnd.adobe.xfdf;application/vnd.aether.imp;application/vnd.ah-barcode;application/vnd.ahead.space;application/vnd.airzip.filesecure.azf;application/vnd.airzip.filesecure.azs;application/vnd.americandynamics.acc;application/vnd.amiga.ami;application/vnd.amundsen.maze+xml;application/vnd.anser-web-certificate-issue-initiation;application/vnd.antix.game-component;application/vnd.api+json;application/vnd.apple.installer+xml;application/vnd.apple.mpegurl;application/vnd.arastra.swi;application/vnd.aristanetworks.swi;application/vnd.astraea-software.iota;application/vnd.audiograph;application/vnd.autopackage;application/vnd.avistar+xml;application/vnd.balsamiq.bmml+xml;application/vnd.bekitzur-stech+json;application/vnd.blueice.multipass;application/vnd.bluetooth.ep.oob;application/vnd.bluetooth.le.oob;application/vnd.bmi;application/vnd.businessobjects;application/vnd.cab-jscript;application/vnd.canon-cpdl;application/vnd.canon-lips;application/vnd.cendio.thinlinc.clientconf;application/vnd.century-systems.tcp_stream;application/vnd.chemdraw+xml;application/vnd.chipnuts.karaoke-mmd;application/vnd.cinderella;application/vnd.cirpack.isdn-ext;application/vnd.claymore;application/vnd.cloanto.rp9;application/vnd.clonk.c4group;application/vnd.cluetrust.cartomobile-config;application/vnd.cluetrust.cartomobile-config-pkg;application/vnd.collection+json;application/vnd.collection.doc+json;application/vnd.collection.next+json;application/vnd.commerce-battelle;application/vnd.commonspace;application/vnd.contact.cmsg;application/vnd.cosmocaller;application/vnd.crick.clicker;application/vnd.crick.clicker.keyboard;application/vnd.crick.clicker.palette;application/vnd.crick.clicker.template;application/vnd.crick.clicker.wordbank;application/vnd.criticaltools.wbs+xml;application/vnd.ctc-posml;application/vnd.ctct.ws+xml;application/vnd.cups-pdf;application/vnd.cups-postscript;application/vnd.cups-ppd;application/vnd.cups-raster;application/vnd.cups-raw;application/vnd.cyan.dean.root+xml;application/vnd.cybank;application/vnd.data-vision.rdz;application/vnd.dece-zip;application/vnd.dece.data;application/vnd.dece.ttml+xml;application/vnd.dece.unspecified;application/vnd.denovo.fcselayout-link;application/vnd.desmume-movie;application/vnd.dir-bi.plate-dl-nosuffix;application/vnd.dm.delegation+xml;application/vnd.dna;application/vnd.document+json;application/vnd.dolby.mobile.1;application/vnd.dolby.mobile.2;application/vnd.dpgraph;application/vnd.dreamfactory;application/vnd.dtg.local;application/vnd.dtg.local.flash;application/vnd.dtg.local.html;application/vnd.dvb.ait;application/vnd.dvb.dvbj;application/vnd.dvb.esgcontainer;application/vnd.dvb.ipdcdftnotifaccess;application/vnd.dvb.ipdcesgaccess;application/vnd.dvb.ipdcesgaccess2;application/vnd.dvb.ipdcesgpdd;application/vnd.dvb.ipdcroaming;application/vnd.dvb.iptv.alfec-base;application/vnd.dvb.iptv.alfec-enhancement;application/vnd.dvb.notif-aggregate-root+xml;application/vnd.dvb.notif-container+xml;application/vnd.dvb.notif-generic+xml;application/vnd.dvb.notif-ia-msglist+xml;application/vnd.dvb.notif-ia-registration-request+xml;application/vnd.dvb.notif-ia-registration-response+xml;application/vnd.dvb.notif-init+xml;application/vnd.dvb.pfr;application/vnd.dvb_service;application/vnd.dynageo;application/vnd.easykaraoke.cdgdownload;application/vnd.ecdis-update;application/vnd.ecowin.chart;application/vnd.ecowin.filerequest;application/vnd.ecowin.fileupdate;application/vnd.ecowin.series;application/vnd.ecowin.seriesrequest;application/vnd.ecowin.seriesupdate;application/vnd.emclient.accessrequest+xml;application/vnd.enliven;application/vnd.eprints.data+xml;application/vnd.epson.esf;application/vnd.epson.msf;application/vnd.epson.quickanime;application/vnd.epson.salt;application/vnd.epson.ssf;application/vnd.ericsson.quickcall;application/vnd.eszigno3+xml;application/vnd.etsi.aoc+xml;application/vnd.etsi.asic-e+zip;application/vnd.etsi.asic-s+zip;application/vnd.etsi.cug+xml;application/vnd.etsi.iptvcommand+xml;application/vnd.etsi.iptvdiscovery+xml;application/vnd.etsi.iptvprofile+xml;application/vnd.etsi.iptvsad-bc+xml;application/vnd.etsi.iptvsad-cod+xml;application/vnd.etsi.iptvsad-npvr+xml;application/vnd.etsi.iptvservice+xml;application/vnd.etsi.iptvsync+xml;application/vnd.etsi.iptvueprofile+xml;application/vnd.etsi.mcid+xml;application/vnd.etsi.mheg5;application/vnd.etsi.overload-control-policy-dataset+xml;application/vnd.etsi.pstn+xml;application/vnd.etsi.sci+xml;application/vnd.etsi.simservs+xml;application/vnd.etsi.timestamp-token;application/vnd.etsi.tsl+xml;application/vnd.etsi.tsl.der;application/vnd.eudora.data;application/vnd.ezpix-album;application/vnd.ezpix-package;application/vnd.f-secure.mobile;application/vnd.fdf;application/vnd.fdsn.mseed;application/vnd.fdsn.seed;application/vnd.ffsns;application/vnd.fints;application/vnd.fluxtime.clip;application/vnd.font-fontforge-sfd;application/vnd.framemaker;application/vnd.frogans.fnc;application/vnd.frogans.ltf;application/vnd.fsc.weblaunch;application/vnd.fujitsu.oasys;application/vnd.fujitsu.oasys2;application/vnd.fujitsu.oasys3;application/vnd.fujitsu.oasysgp;application/vnd.fujitsu.oasysprs;application/vnd.fujixerox.ART-EX;application/vnd.fujixerox.ART4;application/vnd.fujixerox.HBPL;application/vnd.fujixerox.ddd;application/vnd.fujixerox.docuworks;application/vnd.fujixerox.docuworks.binder;application/vnd.fujixerox.docuworks.container;application/vnd.fut-misnet;application/vnd.fuzzysheet;application/vnd.genomatix.tuxedo;application/vnd.geocube+xml;application/vnd.geogebra.file;application/vnd.geogebra.tool;application/vnd.geometry-explorer;application/vnd.geonext;application/vnd.geoplan;application/vnd.geospace;application/vnd.globalplatform.card-content-mgt;application/vnd.globalplatform.card-content-mgt-response;application/vnd.gmx;application/vnd.google-earth.kml+xml;application/vnd.google-earth.kmz;application/vnd.grafeq;application/vnd.gridmp;application/vnd.groove-account;application/vnd.groove-help;application/vnd.groove-identity-message;application/vnd.groove-injector;application/vnd.groove-tool-message;application/vnd.groove-tool-template;application/vnd.groove-vcard;application/vnd.hal+json;application/vnd.hal+xml;application/vnd.hbci;application/vnd.hcl-bireports;application/vnd.heroku+json;application/vnd.hhe.lesson-player;application/vnd.hp-HPGL;application/vnd.hp-PCL;application/vnd.hp-PCLXL;application/vnd.hp-hpgl;application/vnd.hp-hpid;application/vnd.hp-hps;application/vnd.hp-jlyt;application/vnd.hp-pcl;application/vnd.httphone;application/vnd.hydrostatix.sof-data;application/vnd.hzn-3d-crossword;application/vnd.ibm.MiniPay;application/vnd.ibm.afplinedata;application/vnd.ibm.electronic-media;application/vnd.ibm.modcap;application/vnd.ibm.rights-management;application/vnd.ibm.secure-container;application/vnd.iccprofile;application/vnd.ieee.1905;application/vnd.igloader;application/vnd.immervision-ivp;application/vnd.immervision-ivu;application/vnd.informedcontrol.rms+xml;application/vnd.informix-visionary;application/vnd.infotech.project;application/vnd.infotech.project+xml;application/vnd.innopath.wamp.notification;application/vnd.insors.igm;application/vnd.intercon.formnet;application/vnd.intergeo;application/vnd.intertrust.digibox;application/vnd.intertrust.nncp;application/vnd.intu.qbo;application/vnd.intu.qfx;application/vnd.iptc.g2.catalogitem+xml;application/vnd.iptc.g2.conceptitem+xml;application/vnd.iptc.g2.knowledgeitem+xml;application/vnd.iptc.g2.newsitem+xml;application/vnd.iptc.g2.newsmessage+xml;application/vnd.iptc.g2.packageitem+xml;application/vnd.iptc.g2.planningitem+xml;application/vnd.ipunplugged.rcprofile;application/vnd.irepository.package+xml;application/vnd.is-xpr;application/vnd.isac.fcs;application/vnd.jam;application/vnd.japannet-directory-service;application/vnd.japannet-jpnstore-wakeup;application/vnd.japannet-payment-wakeup;application/vnd.japannet-registration;application/vnd.japannet-registration-wakeup;application/vnd.japannet-setstore-wakeup;application/vnd.japannet-verification;application/vnd.japannet-verification-wakeup;application/vnd.jcp.javame.midlet-rms;application/vnd.jisp;application/vnd.joost.joda-archive;application/vnd.jsk.isdn-ngn;application/vnd.kahootz;application/vnd.kde.karbon;application/vnd.kde.kchart;application/vnd.kde.kformula;application/vnd.kde.kivio;application/vnd.kde.kontour;application/vnd.kde.kpresenter;application/vnd.kde.kspread;application/vnd.kde.kword;application/vnd.kenameaapp;application/vnd.kidspiration;application/vnd.koan;application/vnd.kodak-descriptor;application/vnd.las.las+xml;application/vnd.liberty-request+xml;application/vnd.llamagraphics.life-balance.desktop;application/vnd.llamagraphics.life-balance.exchange+xml;application/vnd.lotus-1-2-3;application/vnd.lotus-approach;application/vnd.lotus-freelance;application/vnd.lotus-notes;application/vnd.lotus-organizer;application/vnd.lotus-screencam;application/vnd.lotus-wordpro;application/vnd.macports.portpkg;application/vnd.marlin.drm.actiontoken+xml;application/vnd.marlin.drm.conftoken+xml;application/vnd.marlin.drm.license+xml;application/vnd.marlin.drm.mdcf;application/vnd.mcd;application/vnd.medcalcdata;application/vnd.mediastation.cdkey;application/vnd.meridian-slingshot;application/vnd.mfmp;application/vnd.micrografx-igx;application/vnd.micrografx.flo;application/vnd.minisoft-hp3000-save;application/vnd.mitsubishi.misty-guard.trustweb;application/vnd.mophun.application;application/vnd.mophun.certificate;application/vnd.motorola.flexsuite;application/vnd.motorola.flexsuite.adsi;application/vnd.motorola.flexsuite.fis;application/vnd.motorola.flexsuite.gotap;application/vnd.motorola.flexsuite.kmr;application/vnd.motorola.flexsuite.ttc;application/vnd.motorola.flexsuite.wem;application/vnd.motorola.iprm;application/vnd.mozilla.xul+xml;application/vnd.ms-artgalry;application/vnd.ms-asf;application/vnd.ms-cab-compressed;application/vnd.ms-excel;application/vnd.ms-excel.addin.macroEnabled.12;application/vnd.ms-excel.sheet.binary.macroEnabled.12;application/vnd.ms-excel.sheet.macroEnabled.12;application/vnd.ms-excel.template.macroEnabled.12;application/vnd.ms-fontobject;application/vnd.ms-htmlhelp;application/vnd.ms-ims;application/vnd.ms-lrm;application/vnd.ms-office.activeX+xml;application/vnd.ms-officetheme;application/vnd.ms-pki.certstore;application/vnd.ms-pki.pko;application/vnd.ms-pki.seccat;application/vnd.ms-pki.stl;application/vnd.ms-playready.initiator+xml;application/vnd.ms-powerpoint;application/vnd.ms-powerpoint.addin.macroEnabled.12;application/vnd.ms-powerpoint.presentation.macroEnabled.12;application/vnd.ms-powerpoint.slide.macroEnabled.12;application/vnd.ms-powerpoint.slideshow.macroEnabled.12;application/vnd.ms-powerpoint.template.macroEnabled.12;application/vnd.ms-project;application/vnd.ms-tnef;application/vnd.ms-windows.printerpairing;application/vnd.ms-wmdrm.lic-chlg-req;application/vnd.ms-wmdrm.lic-resp;application/vnd.ms-wmdrm.meter-chlg-req;application/vnd.ms-wmdrm.meter-resp;application/vnd.ms-word.document.macroEnabled.12;application/vnd.ms-word.template.macroEnabled.12;application/vnd.ms-works;application/vnd.ms-wpl;application/vnd.ms-xpsdocument;application/vnd.mseq;application/vnd.msign;application/vnd.multiad.creator;application/vnd.multiad.creator.cif;application/vnd.music-niff;application/vnd.musician;application/vnd.muvee.style;application/vnd.mynfc;application/vnd.ncd.control;application/vnd.ncd.reference;application/vnd.nervana;application/vnd.netfpx;application/vnd.neurolanguage.nlu;application/vnd.nintendo.nitro.rom;application/vnd.nintendo.snes.rom;application/vnd.nitf;application/vnd.noblenet-directory;application/vnd.noblenet-sealer;application/vnd.noblenet-web;application/vnd.nokia.catalogs;application/vnd.nokia.configuration-message;application/vnd.nokia.conml+wbxml;application/vnd.nokia.conml+xml;application/vnd.nokia.iSDS-radio-presets;application/vnd.nokia.iptv.config+xml;application/vnd.nokia.landmark+wbxml;application/vnd.nokia.landmark+xml;application/vnd.nokia.landmarkcollection+xml;application/vnd.nokia.n-gage.ac+xml;application/vnd.nokia.n-gage.data;application/vnd.nokia.n-gage.symbian.install;application/vnd.nokia.ncd;application/vnd.nokia.pcd+wbxml;application/vnd.nokia.pcd+xml;application/vnd.nokia.radio-preset;application/vnd.nokia.radio-presets;application/vnd.nokia.ringing-tone;application/vnd.novadigm.EDM;application/vnd.novadigm.EDX;application/vnd.novadigm.EXT;application/vnd.ntt-local.content-share;application/vnd.ntt-local.file-transfer;application/vnd.ntt-local.sip-ta_remote;application/vnd.ntt-local.sip-ta_tcp_stream;application/vnd.oasis.opendocument.chart;application/vnd.oasis.opendocument.chart-template;application/vnd.oasis.opendocument.database;application/vnd.oasis.opendocument.formula;application/vnd.oasis.opendocument.formula-template;application/vnd.oasis.opendocument.graphics;application/vnd.oasis.opendocument.graphics-template;application/vnd.oasis.opendocument.image;application/vnd.oasis.opendocument.image-template;application/vnd.oasis.opendocument.presentation;application/vnd.oasis.opendocument.presentation-template;application/vnd.oasis.opendocument.spreadsheet;application/vnd.oasis.opendocument.spreadsheet-template;application/vnd.oasis.opendocument.text;application/vnd.oasis.opendocument.text-master;application/vnd.oasis.opendocument.text-template;application/vnd.oasis.opendocument.text-web;application/vnd.obn;application/vnd.oftn.l10n+json;application/vnd.oipf.contentaccessdownload+xml;application/vnd.oipf.contentaccessstreaming+xml;application/vnd.oipf.cspg-hexbinary;application/vnd.oipf.dae.svg+xml;application/vnd.oipf.dae.xhtml+xml;application/vnd.oipf.mippvcontrolmessage+xml;application/vnd.oipf.pae.gem;application/vnd.oipf.spdiscovery+xml;application/vnd.oipf.spdlist+xml;application/vnd.oipf.ueprofile+xml;application/vnd.oipf.userprofile+xml;application/vnd.olpc-sugar;application/vnd.oma-scws-config;application/vnd.oma-scws-http-request;application/vnd.oma-scws-http-response;application/vnd.oma.bcast.associated-procedure-parameter+xml;application/vnd.oma.bcast.drm-trigger+xml;application/vnd.oma.bcast.imd+xml;application/vnd.oma.bcast.ltkm;application/vnd.oma.bcast.notification+xml;application/vnd.oma.bcast.provisioningtrigger;application/vnd.oma.bcast.sgboot;application/vnd.oma.bcast.sgdd+xml;application/vnd.oma.bcast.sgdu;application/vnd.oma.bcast.simple-symbol-container;application/vnd.oma.bcast.smartcard-trigger+xml;application/vnd.oma.bcast.sprov+xml;application/vnd.oma.bcast.stkm;application/vnd.oma.cab-address-book+xml;application/vnd.oma.cab-feature-handler+xml;application/vnd.oma.cab-pcc+xml;application/vnd.oma.cab-subs-invite+xml;application/vnd.oma.cab-user-prefs+xml;application/vnd.oma.dcd;application/vnd.oma.dcdc;application/vnd.oma.dd2+xml;application/vnd.oma.drm.risd+xml;application/vnd.oma.group-usage-list+xml;application/vnd.oma.pal+xml;application/vnd.oma.poc.detailed-progress-report+xml;application/vnd.oma.poc.final-report+xml;application/vnd.oma.poc.groups+xml;application/vnd.oma.poc.invocation-descriptor+xml;application/vnd.oma.poc.optimized-progress-report+xml;application/vnd.oma.push;application/vnd.oma.scidm.messages+xml;application/vnd.oma.xcap-directory+xml;application/vnd.omads-email+xml;application/vnd.omads-file+xml;application/vnd.omads-folder+xml;application/vnd.omaloc-supl-init;application/vnd.openeye.oeb;application/vnd.openxmlformats-officedocument.custom-properties+xml;application/vnd.openxmlformats-officedocument.customXmlProperties+xml;application/vnd.openxmlformats-officedocument.drawing+xml;application/vnd.openxmlformats-officedocument.drawingml.chart+xml;application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml;application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml;application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml;application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml;application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml;application/vnd.openxmlformats-officedocument.extended-properties+xml;application/vnd.openxmlformats-officedocument.presentationml-template;application/vnd.openxmlformats-officedocument.presentationml.commentAuthors+xml;application/vnd.openxmlformats-officedocument.presentationml.comments+xml;application/vnd.openxmlformats-officedocument.presentationml.handoutMaster+xml;application/vnd.openxmlformats-officedocument.presentationml.notesMaster+xml;application/vnd.openxmlformats-officedocument.presentationml.notesSlide+xml;application/vnd.openxmlformats-officedocument.presentationml.presProps+xml;application/vnd.openxmlformats-officedocument.presentationml.presentation;application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml;application/vnd.openxmlformats-officedocument.presentationml.slide;application/vnd.openxmlformats-officedocument.presentationml.slide+xml;application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml;application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml;application/vnd.openxmlformats-officedocument.presentationml.slideUpdateInfo+xml;application/vnd.openxmlformats-officedocument.presentationml.slideshow;application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml;application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml;application/vnd.openxmlformats-officedocument.presentationml.tags+xml;application/vnd.openxmlformats-officedocument.presentationml.template.main+xml;application/vnd.openxmlformats-officedocument.presentationml.viewProps+xml;application/vnd.openxmlformats-officedocument.spreadsheetml-template;application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml;application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml;application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml;application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml;application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml;application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml;application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml;application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml;application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml;application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml;application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml;application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml;application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml;application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml;application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml;application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml;application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml;application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml;application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml;application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml;application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml;application/vnd.openxmlformats-officedocument.theme+xml;application/vnd.openxmlformats-officedocument.themeOverride+xml;application/vnd.openxmlformats-officedocument.vmlDrawing;application/vnd.openxmlformats-officedocument.wordprocessingml-template;application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml;application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml;application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml;application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml;application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml;application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml;application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml;application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml;application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml;application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml;application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml;application/vnd.openxmlformats-package.core-properties+xml;application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml;application/vnd.openxmlformats-package.relationships+xml;application/vnd.orange.indata;application/vnd.osa.netdeploy;application/vnd.osgeo.mapguide.package;application/vnd.osgi.bundle;application/vnd.osgi.dp;application/vnd.osgi.subsystem;application/vnd.otps.ct-kip+xml;application/vnd.palm;application/vnd.paos+xml;application/vnd.pawaafile;application/vnd.pcos;application/vnd.pg.format;application/vnd.pg.osasli;application/vnd.piaccess.application-licence;application/vnd.picsel;application/vnd.plain;application/vnd.pmi.widget;application/vnd.poc.group-advertisement+xml;application/vnd.pocketlearn;application/vnd.powerbuilder6;application/vnd.powerbuilder6-s;application/vnd.powerbuilder7;application/vnd.powerbuilder7-s;application/vnd.powerbuilder75;application/vnd.powerbuilder75-s;application/vnd.preminet;application/vnd.previewsystems.box;application/vnd.proteus.magazine;application/vnd.publishare-delta-tree;application/vnd.pvi.ptid1;application/vnd.pwg-xhtml-print+xml;application/vnd.qualcomm.brew-app-res;application/vnd.quobject-quoxdocument;application/vnd.rainstor.data;application/vnd.rapid;application/vnd.realvnc.bed;application/vnd.recordare.musicxml;application/vnd.recordare.musicxml+xml;application/vnd.renlearn.rlprint;application/vnd.rig.cryptonote;application/vnd.rn-realmedia;application/vnd.rn-realplayer;application/vnd.route66.link66+xml;application/vnd.rs-274x;application/vnd.ruckus.download;application/vnd.s3sms;application/vnd.sailingtracker.track;application/vnd.sbm.cid;application/vnd.sbm.mid2;application/vnd.scribus;application/vnd.sealed-doc;application/vnd.sealed-eml;application/vnd.sealed-mht;application/vnd.sealed-ppt;application/vnd.sealed-tiff;application/vnd.sealed-xls;application/vnd.sealed.3df;application/vnd.sealed.csf;application/vnd.sealed.net;application/vnd.sealedmedia.softseal-html;application/vnd.sealedmedia.softseal-pdf;application/vnd.seemail;application/vnd.semd;application/vnd.semf;application/vnd.shana.informed.formdata;application/vnd.shana.informed.formtemplate;application/vnd.shana.informed.interchange;application/vnd.shana.informed.package;application/vnd.siren+json;application/vnd.smaf;application/vnd.smart.notebook;application/vnd.smart.teacher;application/vnd.software602.filler.form+xml;application/vnd.software602.filler.form-xml-zip;application/vnd.solent.sdkm+xml;application/vnd.spotfire.dxp;application/vnd.spotfire.sfs;application/vnd.sss-cod;application/vnd.sss-dtf;application/vnd.sss-ntf;application/vnd.stardivision.writer;application/vnd.stepmania.package;application/vnd.stepmania.stepchart;application/vnd.street-stream;application/vnd.sun.wadl+xml;application/vnd.sun.xml.calc;application/vnd.sun.xml.calc.template;application/vnd.sun.xml.writer;application/vnd.sus-calendar;application/vnd.svd;application/vnd.swiftview-ics;application/vnd.syncml+xml;application/vnd.syncml.dm+wbxml;application/vnd.syncml.dm+xml;application/vnd.syncml.dm.notification;application/vnd.syncml.dmddf+wbxml;application/vnd.syncml.dmddf+xml;application/vnd.syncml.dmtnds+wbxml;application/vnd.syncml.dmtnds+xml;application/vnd.syncml.ds.notification;application/vnd.tao.intent-module-archive;application/vnd.tcpdump.pcap;application/vnd.tmobile-livetv;application/vnd.trid.tpt;application/vnd.triscape.mxs;application/vnd.trueapp;application/vnd.truedoc;application/vnd.ubisoft.webplayer;application/vnd.ufdl;application/vnd.uiq.theme;application/vnd.umajin;application/vnd.unity;application/vnd.uoml+xml;application/vnd.uplanet.alert;application/vnd.uplanet.alert-wbxml;application/vnd.uplanet.bearer-choice;application/vnd.uplanet.bearer-choice-wbxml;application/vnd.uplanet.cacheop;application/vnd.uplanet.cacheop-wbxml;application/vnd.uplanet.channel;application/vnd.uplanet.channel-wbxml;application/vnd.uplanet.list;application/vnd.uplanet.list-wbxml;application/vnd.uplanet.listcmd;application/vnd.uplanet.listcmd-wbxml;application/vnd.uplanet.signal;application/vnd.vcx;application/vnd.vd-study;application/vnd.vectorworks;application/vnd.verimatrix.vcas;application/vnd.vidsoft.vidconference;application/vnd.visio;application/vnd.visionary;application/vnd.vividence.scriptfile;application/vnd.vsf;application/vnd.wap-slc;application/vnd.wap-wbxml;application/vnd.wap.sic;application/vnd.wap.wmlc;application/vnd.wap.wmlscriptc;application/vnd.webturbo;application/vnd.wfa.p2p;application/vnd.wfa.wsc;application/vnd.windows.devicepairing;application/vnd.wmc;application/vnd.wmf.bootstrap;application/vnd.wolfram.mathematica;application/vnd.wolfram.mathematica.package;application/vnd.wolfram.player;application/vnd.wordperfect;application/vnd.wqd;application/vnd.wrq-hp3000-labelled;application/vnd.wt.stf;application/vnd.wv.csp+wbxml;application/vnd.wv.csp+xml;application/vnd.wv.ssp+xml;application/vnd.xacml+json;application/vnd.xara;application/vnd.xfdl;application/vnd.xfdl.webform;application/vnd.xmi+xml;application/vnd.xmpie.cpkg;application/vnd.xmpie.dpkg;application/vnd.xmpie.plan;application/vnd.xmpie.ppkg;application/vnd.xmpie.xlim;application/vnd.yamaha.hv-dic;application/vnd.yamaha.hv-script;application/vnd.yamaha.hv-voice;application/vnd.yamaha.openscoreformat;application/vnd.yamaha.openscoreformat.osfpvg+xml;application/vnd.yamaha.remote-setup;application/vnd.yamaha.smaf-audio;application/vnd.yamaha.smaf-phrase;application/vnd.yamaha.through-ngn;application/vnd.yamaha.tunnel-udpencap;application/vnd.yellowriver-custom-menu;application/vnd.zul;application/vnd.zzazz.deck+xml;application/vocaltec-media-desc;application/vocaltec-media-file;application/wordperfect;application/wordperfect5.1;application/wordperfect6;application/wordperfect6.0;application/wordperfect6.1;application/x-123;application/x-7z-compressed;application/x-7z-compressed-tar;application/x-abicollab;application/x-abiword;application/x-ace;application/x-aim;application/x-alz;application/x-applix-spreadsheet;application/x-ar;application/x-archive;application/x-arj;application/x-aspx;application/x-authorware-bin;application/x-authorware-map;application/x-authorware-seg;application/x-bcpio;application/x-binary;application/x-binhex40;application/x-bittorrent;application/x-bsh;application/x-bzip;application/x-bzip-compressed-tar;application/x-bzip1;application/x-bzip1-compressed-tar;application/x-bzip2;application/x-cabinet;application/x-cbr;application/x-cbz;application/x-cd-image;application/x-cdf;application/x-cdlink;application/x-chat;application/x-cmakecache;application/x-cmbx;application/x-cmu-raster;application/x-cocoa;application/x-compactpro;application/x-compress;application/x-compressed;application/x-compressed-tar;application/x-conference;application/x-cpio;application/x-cpt;application/x-crossmark;application/x-csh;application/x-csproj;application/x-dbase;application/x-dbf;application/x-deb;application/x-deepv;application/x-designer;application/x-desktop;application/x-director;application/x-dos_ms_excel;application/x-dvi;application/x-ear;application/x-elc;application/x-envoy;application/x-esrehber;application/x-excel;application/x-fluid;application/x-font-bdf;application/x-font-otf;application/x-font-pcf;application/x-font-tex;application/x-font-ttf;application/x-font-type1;application/x-frame;application/x-freelance;application/x-gnucash;application/x-gnumeric;application/x-gsp;application/x-gss;application/x-gtar;application/x-gzip;application/x-gzpostscript;application/x-hdf;application/x-helpfile;application/x-httpd-imap;application/x-ima;application/x-internett-signup;application/x-inventor;application/x-ip2;application/x-java-archive;application/x-java-class;application/x-java-commerce;application/x-javascript;application/x-koan;application/x-ksh;application/x-latex;application/x-lha;application/x-lhz;application/x-linguist;application/x-lisp;application/x-livescreen;application/x-lotus;application/x-lotusscreencam;application/x-lrzip;application/x-lrzip-compressed-tar;application/x-lzh;application/x-lzip;application/x-lzip-compressed-tar;application/x-lzma;application/x-lzma-compressed-tar;application/x-lzop;application/x-lzop-compressed-tar;application/x-lzx;application/x-mac-binhex40;application/x-macbinary;application/x-magic-cap-package-1.0;application/x-mathcad;application/x-mdp;application/x-mds;application/x-meme;application/x-midi;application/x-mif;application/x-mix-transfer;application/x-mplayer2;application/x-mps;application/x-ms-dos-executable;application/x-ms-excel;application/x-ms-shortcut;application/x-ms-wim;application/x-msdownload;application/x-msexcel;application/x-msi;application/x-mspowerpoint;application/x-navi-animation;application/x-navidoc;application/x-navimap;application/x-navistyle;application/x-netcdf;application/x-newton-compatible-pkg;application/x-nokia-9000-communicator-add-on-software;application/x-oleo;application/x-omc;application/x-omcdatamaker;application/x-omcregerator;application/x-pagemaker;application/x-pcl;application/x-pixclscript;application/x-pkcs10;application/x-pkcs12;application/x-pkcs7-certificates;application/x-pkcs7-certreqresp;application/x-pkcs7-mime;application/x-pkcs7-signature;application/x-planperfect;application/x-pointplus;application/x-portable-anymap;application/x-prjx;application/x-project;application/x-qpro;application/x-quattropro;application/x-rar;application/x-rar-compressed;application/x-raw-disk-image;application/x-raw-disk-image-xz-compressed;application/x-rpm;application/x-rtf;application/x-rzip;application/x-rzip-compressed-tar;application/x-sc;application/x-sdp;application/x-sea;application/x-seelogo;application/x-sh;application/x-shar;application/x-sharedlib;application/x-shockwave-flash;application/x-sit;application/x-sln;application/x-sprite;application/x-stuffit;application/x-sv4cpio;application/x-sv4crc;application/x-sylk;application/x-t602;application/x-tar;application/x-tarz;application/x-tbook;application/x-tcl;application/x-tex;application/x-texinfo;application/x-troff;application/x-troff-man;application/x-troff-me;application/x-troff-ms;application/x-troff-msvideo;application/x-ustar;application/x-vbproj;application/x-virtualbox-ova;application/x-virtualbox-ovf;application/x-virtualbox-vbox;application/x-virtualbox-vbox-extpack;application/x-visio;application/x-vnd.audioexplosion.mzz;application/x-vnd.ls-xpix;application/x-vrml;application/x-wais-source;application/x-war;application/x-winhelp;application/x-wintalk;application/x-world;application/x-wpwin;application/x-wri;application/x-x509-ca-cert;application/x-x509-user-cert;application/x-xbase;application/x-xls;application/x-xz;application/x-xz-compressed-tar;application/x-zip;application/x-zip-compressed;application/x-zoo;application/xhtml+xml;application/xhtml_xml;application/xls;application/xml;application/zip;audio/aiff;audio/basic;audio/it;audio/make;audio/make.my.funk;audio/mid;audio/midi;audio/mod;audio/mpeg;audio/mpeg3;audio/nspaudio;audio/s3m;audio/tsp-audio;audio/tsplayer;audio/vnd.qcelp;audio/voc;audio/voxware;audio/wav;audio/x-adpcm;audio/x-aiff;audio/x-au;audio/x-gsm;audio/x-jam;audio/x-liveaudio;audio/x-mid;audio/x-midi;audio/x-mod;audio/x-mpeg;audio/x-mpeg-3;audio/x-mpequrl;audio/x-nspaudio;audio/x-pn-realaudio;audio/x-pn-realaudio-plugin;audio/x-psid;audio/x-realaudio;audio/x-twinvq;audio/x-twinvq-plugin;audio/x-vnd.audioexplosion.mjuicemediafile;audio/x-voc;audio/x-wav;audio/xm;chemical/x-pdb;image/bmp;image/cmu-raster;image/fif;image/florian;image/g3fax;image/gif;image/ief;image/jp2;image/jpeg;image/jpeg2000;image/jpx;image/jutvision;image/naplps;image/pict;image/pjpeg;image/png;image/svg+xml;image/tiff;image/vasa;image/vnd.dwg;image/vnd.fpx;image/vnd.net-fpx;image/vnd.rn-realflash;image/vnd.rn-realpix;image/vnd.wap.wbmp;image/vnd.xiff;image/webp;image/x-cmu-raster;image/x-compressed-xcf;image/x-dwg;image/x-fits;image/x-gimp-gbr;image/x-gimp-gih;image/x-gimp-pat;image/x-icon;image/x-jg;image/x-jps;image/x-niff;image/x-pcx;image/x-pict;image/x-pixmap;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-greymap;image/x-portable-pixmap;image/x-psd;image/x-psp;image/x-quicktime;image/x-rgb;image/x-sgi;image/x-tga;image/x-tiff;image/x-windows-bmp;image/x-wmf;image/x-xbitmap;image/x-xbm;image/x-xcf;image/x-xcursor;image/x-xpixmap;image/x-xwd;image/x-xwindowdump;image/xbm;image/xpm;message/rfc822;model/iges;model/vnd.dwf;model/vrml;model/x-pov;text/asp;text/css;text/csv;text/ecmascript;text/html;text/javascript;text/mcf;text/mml;text/pascal;text/plain;text/richtext;text/scriplet;text/sgml;text/spreadsheet;text/tab-separated-values;text/uri-list;text/vnd.abc;text/vnd.fmi.flexstor;text/vnd.rn-realtext;text/vnd.trolltech.linguist;text/vnd.wap.wml;text/vnd.wap.wmlscript;text/webviewhtml;text/x-abiword;text/x-asm;text/x-audiosoft-intra;text/x-c;text/x-component;text/x-csharp;text/x-csv;text/x-dtd;text/x-fortran;text/x-h;text/x-java-source;text/x-la-asf;text/x-m;text/x-pascal;text/x-qml;text/x-script;text/x-script.csh;text/x-script.elisp;text/x-script.guile;text/x-script.ksh;text/x-script.lisp;text/x-script.perl;text/x-script.perl-module;text/x-script.phyton;text/x-script.rexx;text/x-script.scheme;text/x-script.sh;text/x-script.tcl;text/x-script.tcsh;text/x-script.zsh;text/x-server-parsed-html;text/x-setext;text/x-sgml;text/x-speech;text/x-uil;text/x-uuencode;text/x-vcalendar;text/x-xds;text/x-xml-abiword;text/xml;video/animaflex;video/avi;video/avs-video;video/dl;video/fli;video/gl;video/mp4;video/mpeg;video/msvideo;video/quicktime;video/vdo;video/vivo;video/vnd.rn-realvideo;video/vnd.vivo;video/vosaic;video/x-amt-demorun;video/x-amt-showrun;video/x-atomic3d-feature;video/x-dl;video/x-dv;video/x-fli;video/x-gl;video/x-isvideo;video/x-matroska;video/x-motion-jpeg;video/x-mpeg;video/x-mpeq2a;video/x-ms-asf;video/x-ms-asf-plugin;video/x-msvideo;video/x-qtc;video/x-scm;video/x-sgi-movie;x-scheme-handler/ftp;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/magnet;x-scheme-handler/note;x-scheme-handler/steam;x-scheme-handler/unv;

The last line of this .desktop file is MimeType=... and it goes on to list thousands of mimetypes. I tried to include anything that might come up on a linux machine by googling for it and looking at the mimetypes on my own machine. I'm sure I missed some, but anyway, the point of having all these mimetypes is to make "Move or Rename" show up on the "open with" menu of any file manager or in my "open_choose" script.

Which .desktop files can open what mimetypes is stored in /usr/share/applications/mimeinfo.cache. That's where my open_choose script looks for that information and it seems to be where gnome-search-tool and Thunar look as well.

In order to update /usr/share/applications/mimeinfo.cache. with all those mimetypes the gvm.desktop can open, you need to run the following two commands:

sudo update-desktop-database
sudo update-mime-database /usr/share/mime

The first mimetype I list in gmv.desktop is inode/directory. This makes the command available for directories in my open_choose script, but not in Thunar because Thunar won't provide an open with dialog for directories. And, unfortunately, gnome-search-tool doesn't provide an open with dialog for directories either and it will default to gvm.desktop if you leave inode/directory as a mimetype for gvm.desktop to handle. That means gnome-search-tool can't open directories with Thunar. So, if you are using gnome-search-tool, you might want to remove inode/directory from the mimetypes gvm.desktop can handle. Don't forget that any change to a desktop file needs to be followed by the two update commands listed above before the mimetypes will be updated.

Last edited by colinkeenan (2014-02-22 22:15:57)

Offline

#20 2014-02-22 22:17:58

progandy
Member
Registered: 2012-05-17
Posts: 5,279

Re: Can I "open with" on Catfish gui search results? Yes: see AUR packages

colinkeenan wrote:

You will need to install perl-file-mimeinfo to have the mimetype command that I use in this script. I also use zenity that almost everyone has installed already.

[...]

I'm just a beginner at bash programming. I mean I've done it every once in a while for years, but I never did a lot of it. So, if anyone sees easier or more standard ways of doing the various things I'm doing in this script, please let me know.

You could replace your logic to find the associated desktop files with mimeo -d and remove perl-file-mimeinfo. This will then honor applications defined in  ~/.local/share/applications, too. You can find mimeo in the AUR.

Last edited by progandy (2014-02-22 22:29:54)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#21 2014-02-22 22:52:18

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

Re: Can I "open with" on Catfish gui search results? Yes: see AUR packages

progandy wrote:
colinkeenan wrote:

You will need to install perl-file-mimeinfo to have the mimetype command that I use in this script. I also use zenity that almost everyone has installed already.

[...]

I'm just a beginner at bash programming. I mean I've done it every once in a while for years, but I never did a lot of it. So, if anyone sees easier or more standard ways of doing the various things I'm doing in this script, please let me know.

You could replace your logic to find the associated desktop files with mimeo -d and remove perl-file-mimeinfo. This will then honor applications defined in  ~/.local/share/applications, too. You can find mimeo in the AUR.


Thank you for already looking at my script and giving me a suggestion. I will consider a replacement method for finding the .desktop files. I'm burned out on it today though. Rather than adding another AUR based dependency though, I might just look in those files as well and add to the list I already get from /usr/share/applications/mimeinfo.cache.

Looking at https://wiki.archlinux.org/index.php/Xd … eful_tools, fyr looks interesting to me too. I will have to give these a try to decide what's best.

Offline

#22 2014-02-23 06:41:57

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Can I "open with" on Catfish gui search results? Yes: see AUR packages

@colinkeenan

Very useful. Thanks a lot! What about packaging these scripts for the AUR?

Offline

#23 2014-02-23 15:58:31

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

Re: Can I "open with" on Catfish gui search results? Yes: see AUR packages

orschiro wrote:

@colinkeenan

Very useful. Thanks a lot! What about packaging these scripts for the AUR?

I'm glad somebody is using it and I do want others to as well so I guess I will eventually get all this in AUR, maybe in a week or so. I think I have to have the scripts online somewhere where they can be downloaded for install. The AUR just holds the PKGBUILD and .install file. I suppose the .install file could have the scripts themselves, but it would be cleaner to do it the usual way and have the scripts maintained on a separate website. I'm becoming far more active in the Arch community than I expected just because I wanted more functionality in desktop searching, but it's fun.

Offline

#24 2014-02-23 18:58:28

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Can I "open with" on Catfish gui search results? Yes: see AUR packages

@colinkeenan

Not entirely true. You can also add scripts to the AUR. See this example: https://aur.archlinux.org/packages/dmenu-aliases/

Other then that you can of course host it on a versioning platform such as Github (often used) or even just Dropbox.

Offline

#25 2014-02-23 20:16:34

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

Re: Can I "open with" on Catfish gui search results? Yes: see AUR packages

orschiro wrote:

@colinkeenan

Not entirely true. You can also add scripts to the AUR. See this example: https://aur.archlinux.org/packages/dmenu-aliases/

Other then that you can of course host it on a versioning platform such as Github (often used) or even just Dropbox.

Here is the PKGBUILD for the example you pointed me to: https://aur.archlinux.org/packages/dm/d … s/PKGBUILD

It's short and siimple, but I notice it does provide a github url, probably so that people can look it over before installing or to make it available to people not using Arch.

Thanks for this example though. I see the script is simply included in the tarball and so the source in the PKGBUILD is simply the name of the script. I can probably learn some things by examining this script too.

I guess since it's so easy to put scripts up in AUR, I'll go ahead and do that later today.

Offline

Board footer

Powered by FluxBB