mozilla-kde.patch
branchfirefox16
changeset 537 875fd6d22176
parent 517 fa93154734b8
child 538 be682f8c9361
equal deleted inserted replaced
536:66730e3b1735 537:875fd6d22176
  2247 +#else
  2247 +#else
  2248 +// not need for lib64, it's a binary
  2248 +// not need for lib64, it's a binary
  2249 +#define KMOZILLAHELPER "/usr/lib/mozilla/kmozillahelper"
  2249 +#define KMOZILLAHELPER "/usr/lib/mozilla/kmozillahelper"
  2250 +#endif
  2250 +#endif
  2251 +
  2251 +
  2252 +#define KMOZILLAHELPER_VERSION 6
  2252 +#define KMOZILLAHELPER_VERSION 7
  2253 +#define MAKE_STR2( n ) #n
  2253 +#define MAKE_STR2( n ) #n
  2254 +#define MAKE_STR( n ) MAKE_STR2( n )
  2254 +#define MAKE_STR( n ) MAKE_STR2( n )
  2255 +
  2255 +
  2256 +static bool getKdeSession()
  2256 +static bool getKdeSession()
  2257 +    {
  2257 +    {
  3808 +        url = dirPath;
  3808 +        url = dirPath;
  3809      }
  3809      }
  3810 +
  3810 +
  3811 +    if(nsKDEUtils::kdeSupport()) {
  3811 +    if(nsKDEUtils::kdeSupport()) {
  3812 +      nsTArray<nsCString> command;
  3812 +      nsTArray<nsCString> command;
  3813 +      command.AppendElement( NS_LITERAL_CSTRING("OPEN") );
  3813 +      command.AppendElement( NS_LITERAL_CSTRING("REVEAL") );
  3814 +      command.AppendElement( url );
  3814 +      command.AppendElement( mPath );
  3815 +      return nsKDEUtils::command( command ) ? NS_OK : NS_ERROR_FAILURE;
  3815 +      return nsKDEUtils::command( command ) ? NS_OK : NS_ERROR_FAILURE;
  3816 +    }
  3816 +    }
  3817 +
  3817 +
  3818 +    nsCOMPtr<nsIGIOService> giovfs = do_GetService(NS_GIOSERVICE_CONTRACTID);
  3818 +    nsCOMPtr<nsIGIOService> giovfs = do_GetService(NS_GIOSERVICE_CONTRACTID);
  3819 +    nsCOMPtr<nsIGnomeVFSService> gnomevfs = do_GetService(NS_GNOMEVFSSERVICE_CONTRACTID);
  3819 +    nsCOMPtr<nsIGnomeVFSService> gnomevfs = do_GetService(NS_GNOMEVFSSERVICE_CONTRACTID);