implement mime exceptions to "use desktop open" so that we can use evince and pass page and search string parameters for pdf,ps and dvi even when all other mime types are passed to xdg-open

This commit is contained in:
Jean-Francois Dockes
2012-10-04 09:51:29 +02:00
parent 5b3cb69ee9
commit d5a6105795
12 changed files with 263 additions and 42 deletions
+3 -2
View File
@@ -246,7 +246,7 @@ int ConfSimple::get(const string &nm, string &value, const string &sk) const
// Appropriately output a subkey (nm=="") or variable line.
// Splits long lines
static ConfSimple::WalkerCode varprinter(void *f, const string &nm,
const string &value)
const string &value)
{
ostream *output = (ostream *)f;
if (nm.empty()) {
@@ -276,7 +276,8 @@ int ConfSimple::set(const std::string &nm, const std::string &value,
{
if (status != STATUS_RW)
return 0;
LOGDEB2(("ConfSimple::set [%s]:[%s] -> [%s]\n", sk.c_str(),
nm.c_str(), value.c_str()));
if (!i_set(nm, value, sk))
return 0;
return write();
+2 -1
View File
@@ -408,7 +408,8 @@ public:
{
if (!m_ok)
return 0;
//LOGDEB2(("ConfStack::set [%s]:[%s] -> [%s]\n", sk.c_str(),
//nm.c_str(), val.c_str()));
// Avoid adding unneeded entries: if the new value matches the
// one out from the deeper configs, erase or dont add it
// from/to the topmost file