Mageia Bugzilla – Attachment 11800 Details for
Bug 27088
vdhcoapp: NEW PKG REQUEST. Video Downloadhelper is a companion application for the Firefox addon called Video DownloadHelper
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Patch to fix a config error
vdhcoapp.patch (text/plain), 1.30 KB, created by
Kristoffer Grundström
on 2020-08-12 04:59:05 CEST
(
hide
)
Description:
Patch to fix a config error
Filename:
MIME Type:
Creator:
Kristoffer Grundström
Created:
2020-08-12 04:59:05 CEST
Size:
1.30 KB
patch
obsolete
>--- a/app/converter.js 2018-06-13 07:58:51.000000000 -0600 >+++ b/app/converter-new.js 2018-06-15 01:03:03.404182255 -0600 >@@ -44,7 +44,7 @@ > else > throw new Error("Unsupported architecture",process.arch); > >-const binaryDir = path.join(path.dirname(process.execPath),"..","converter","build",platform,arch); >+const binaryDir = platform == "linux" ? "/usr/bin" : path.join(path.dirname(process.execPath),"..","converter","build",platform,arch); > const binaryPath = path.join(binaryDir,"ffmpeg"); > const probeBinaryPath = path.join(binaryDir,"ffprobe"); > const playBinaryPath = path.join(binaryDir,"ffplay"); > >--- a/app/native-autoinstall.js 2018-06-13 07:58:51.000000000 -0600 >+++ b/app/native-autoinstall-new.js 2018-06-15 01:08:45.734576023 -0600 >@@ -72,7 +72,10 @@ > mode = "system"; > var config; > try { >- config = JSON.parse(fs.readFileSync(path.resolve(path.dirname(process.execPath),"../config.json"),"utf8")); >+ if(process.platform == "linux") >+ config = JSON.parse(fs.readFileSync(path.resolve(path.dirname(process.execPath),"../share/vdhcoapp/config.json"),"utf8")); >+ else >+ config = JSON.parse(fs.readFileSync(path.resolve(path.dirname(process.execPath),"../config.json"),"utf8")); > } catch(err) { > DisplayMessage("Cannot read config file: "+err.message,"Error"); > process.exit(-1);
--- a/app/converter.js 2018-06-13 07:58:51.000000000 -0600 +++ b/app/converter-new.js 2018-06-15 01:03:03.404182255 -0600 @@ -44,7 +44,7 @@ else throw new Error("Unsupported architecture",process.arch); -const binaryDir = path.join(path.dirname(process.execPath),"..","converter","build",platform,arch); +const binaryDir = platform == "linux" ? "/usr/bin" : path.join(path.dirname(process.execPath),"..","converter","build",platform,arch); const binaryPath = path.join(binaryDir,"ffmpeg"); const probeBinaryPath = path.join(binaryDir,"ffprobe"); const playBinaryPath = path.join(binaryDir,"ffplay"); --- a/app/native-autoinstall.js 2018-06-13 07:58:51.000000000 -0600 +++ b/app/native-autoinstall-new.js 2018-06-15 01:08:45.734576023 -0600 @@ -72,7 +72,10 @@ mode = "system"; var config; try { - config = JSON.parse(fs.readFileSync(path.resolve(path.dirname(process.execPath),"../config.json"),"utf8")); + if(process.platform == "linux") + config = JSON.parse(fs.readFileSync(path.resolve(path.dirname(process.execPath),"../share/vdhcoapp/config.json"),"utf8")); + else + config = JSON.parse(fs.readFileSync(path.resolve(path.dirname(process.execPath),"../config.json"),"utf8")); } catch(err) { DisplayMessage("Cannot read config file: "+err.message,"Error"); process.exit(-1);
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 27088
:
11799
| 11800 |
13209