Coder Social home page Coder Social logo

Comments (18)

riderkick avatar riderkick commented on June 19, 2024

use:
E:\Setups\DomDomSoft Manga Reader\DomDomSoft Manga Reader.exe "%PATH%"
There is an issue with external program launcher, I need to separate the params.

from fmd.

riderkick avatar riderkick commented on June 19, 2024

Fixed with this commit
31a711b
c12ea69
e6dad84
534f04d

from fmd.

blue-lightning avatar blue-lightning commented on June 19, 2024

Still not working. Maybe because DDS Manga Reader require elevated privillige ?

from fmd.

riderkick avatar riderkick commented on June 19, 2024

It will ask if needed.

It's working fine here with

"E:\Setups\DomDomSoft Manga Reader\DomDomSoft Manga Reader.exe" "%PATH%"

On recent build, path containing space must be inside quote.
Is there by any chance your path contain unicode character? if so, there is problem with passing unicode parameter. But the external program should be launched, it just can't pass the file to be opened.
If you save the file to cbz/pdf then you can leave it blank, and let fmd open it with default app associated with this extension.

from fmd.

blue-lightning avatar blue-lightning commented on June 19, 2024

3 cases:

  1. FMD with non-admin privilege: Nothing
  2. FMD with admin privilege, parameter "%PATH%": DomDomSoft encouters an error
  3. FMD with admin privilege, parameter "%PATH%%FCHAPTER%": Working, displays first downloaded chapter.

And as you've mentioned, unicode also break the Reader.

DomDomSoft's version is 1.4.3, FMD's is 0.9.16.1

from fmd.

riderkick avatar riderkick commented on June 19, 2024

What is your path to the DMR? Can it work without admin?
How if you run DMR manually from run/cmd with that param "DMR Path" "FIle/FolderPath"
To what type is your downloaded file saved?
If you don't mind send me your config.ini,works.ini and favorites.ini

from fmd.

blue-lightning avatar blue-lightning commented on June 19, 2024

The path is exactly as you see above: "E:\Setups\DomDomSoft Manga Reader\DomDomSoft Manga Reader.exe". Not sure about the admin privilege, but everytime I start it it shoots a request so I guess it's needed. My manga storepath is also normal. I store manga as images, not compress pdf or cbr.

I just try running this command with a non-elevated command prompt, it asks for admin right and then launches DMR as expected:
"E:\Setups\DomDomSoft Manga Reader\DomDomSoft Manga Reader.exe" "D:\Books\Comics\Mahou Tsukai no Yome"

Config files are here

from fmd.

riderkick avatar riderkick commented on June 19, 2024

I've been fix the issue with admin privileges and file path. But I still can't pass unicode character in parameter. I don't know, it can be limitation on fpc.

from fmd.

blue-lightning avatar blue-lightning commented on June 19, 2024

Can unicode characters be converted to number code in code page UTF-8 or similar to be passed and then reconstructed on the command prompt ? Or maybe use PowerShell instead of Command Prompt ?

from fmd.

riderkick avatar riderkick commented on June 19, 2024

It's already in UTF-8, I've been trying decode/encode without success. It seems it's the issue with fpc. I've been trying to use CreateProcessW ShellExecuteExW without success too.
http://forum.lazarus.freepascal.org/index.php?topic=22403.0
http://comments.gmane.org/gmane.comp.ide.lazarus.general/76593

I think that's why the original developers invent an option to remove all unicode character in.filename.

from fmd.

blue-lightning avatar blue-lightning commented on June 19, 2024

Case 1 is fixed, but 2 is still not working. Launching DMR always results in error unless both %PATH% and %CHAPTER% is added.

Updated: Add \ ("%PATH%\") fixes the problem. Since both "%PATH%\" and "%PATH%\%CHAPTER%" work as intended, I think \ should be added to PATH permanently.

from fmd.

riderkick avatar riderkick commented on June 19, 2024

Launching DMR with "" at the end causing error. Launching DMR with path that doesn't exist is fine, but when launching it with existing path that ended with "", DMR crash.
It was the flaw of DMR, you should file the bug to them. Other app is fine with "" at the end, and they should be.
I remove the the end pathdelim if chapter doesn't exist. But I forgot to adjust it, if %CHAPTER% or file doesn't exist, then %PATH% should not end with pathdelim.
I'll look at it.

from fmd.

riderkick avatar riderkick commented on June 19, 2024

I think this commit should fix it. bcf96e5

from fmd.

blue-lightning avatar blue-lightning commented on June 19, 2024

Confirm fixed. DMR isn't supported by DomDomSoft anymore so this bug will continue existing, sadly; but I can't find a good comic reader with long strip mode so just have to put up with it.

from fmd.

riderkick avatar riderkick commented on June 19, 2024

What do you mean DMR isn't supported anymore?
The only bug left is passing unicode character.

from fmd.

blue-lightning avatar blue-lightning commented on June 19, 2024

Forgot to add "by the developers". They've pretty much dropped the project. I'll edit the comment.

from fmd.

riderkick avatar riderkick commented on June 19, 2024

I just fix the issue with unicode character.

from fmd.

riderkick avatar riderkick commented on June 19, 2024

I just look at Honeyview, it seems the development is still alive and well, maybe you can ask them to add long strip view mode.

from fmd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.