[PC-BSD Commits] r4610 - in pbibuild/pbi-source: PBIsource PBItext

svn at pcbsd.org svn at pcbsd.org
Thu Oct 8 10:28:22 PDT 2009


Author: kris
Date: 2009-10-08 10:28:22 -0700 (Thu, 08 Oct 2009)
New Revision: 4610

Modified:
   pbibuild/pbi-source/PBIsource/pbi.cpp
   pbibuild/pbi-source/PBItext/main.cpp
Log:

Fixed a few more mime issues with PBI for 8.x, now it will set the mime priority high enough to override
freedesktop defaults, and ensure that your app gets priority. 



Modified: pbibuild/pbi-source/PBIsource/pbi.cpp
===================================================================
--- pbibuild/pbi-source/PBIsource/pbi.cpp	2009-10-08 16:09:13 UTC (rev 4609)
+++ pbibuild/pbi-source/PBIsource/pbi.cpp	2009-10-08 17:28:22 UTC (rev 4610)
@@ -911,7 +911,7 @@
 
     if( NoMenu[exenum] != "0" )
     {
-      stream << "Hidden=true\n";
+      stream << "NoDisplay=true\n";
     }
 
     // Regular Program Application
@@ -963,7 +963,7 @@
          for (int i = 0; i < extensions.size(); ++i) {
            QString tmpmime = extensions.at(i).simplified();
            tmpmime.replace(QString(" "), QString(""));
-           mimestream << "   <glob pattern=\"" + tmpmime + "\"/>\n";
+           mimestream << "   <glob weight=\"100\" pattern=\"" + tmpmime + "\"/>\n";
          }
 
          mimestream << "  </mime-type>\n";

Modified: pbibuild/pbi-source/PBItext/main.cpp
===================================================================
--- pbibuild/pbi-source/PBItext/main.cpp	2009-10-08 16:09:13 UTC (rev 4609)
+++ pbibuild/pbi-source/PBItext/main.cpp	2009-10-08 17:28:22 UTC (rev 4610)
@@ -884,7 +884,7 @@
 
     if( NoMenu[exenum] != "0" )
     {
-      stream << "Hidden=true\n";
+      stream << "NoDisplay=true\n";
     }
 
     // Regular Program Application
@@ -936,7 +936,7 @@
          for (int i = 0; i < extensions.size(); ++i) {
            QString tmpmime = extensions.at(i).simplified();
            tmpmime.replace(QString(" "), QString(""));
-           mimestream << "   <glob pattern=\"" + tmpmime + "\"/>\n";
+           mimestream << "   <glob weight=\"100\" pattern=\"" + tmpmime + "\"/>\n";
          }
 
          mimestream << "  </mime-type>\n";



More information about the Commits mailing list