Giter Site home page Giter Site logo

Comments (6)

RazrFalcon avatar RazrFalcon commented on May 26, 2024 1

I guess it should look like this:

QString out = Process::run(data.convPath, {
    "--no-remote", 
    "--profile", "/home/jkalliau/prgm/firefox-portable/profilordner",
    "--headless",
    "--window-size",
    QString("%1,%2").arg(w).arg(h),
    "--screenshot",
    QFileInfo(outImg).absoluteFilePath(),
    data.imgPath,
}, true);

from resvg-test-suite.

RazrFalcon avatar RazrFalcon commented on May 26, 2024

You should use Firefox < 61. Later versions have a broken screenshot feature.

from resvg-test-suite.

JoKalliauer avatar JoKalliauer commented on May 26, 2024

I extracted https://ftp.mozilla.org/pub/firefox/releases/60.9.0esr/linux-x86_64/de/ in /home/jkalliau/prgm/firefox and it works. ;-)

Can I tell this firefox-version somehow to not update if I open it?

My default-browser is firefox (I know some prefer chrome) and I got some rendering-problems when my default browser /usr/bin/firefox/firefox is open, can I tell FF60 to be a portable version with local user-settings?

from resvg-test-suite.

RazrFalcon avatar RazrFalcon commented on May 26, 2024

No idea.

from resvg-test-suite.

JoKalliauer avatar JoKalliauer commented on May 26, 2024

I could tell firefox to not update via https://stackoverflow.com/a/44097096/6747994 but that would also affect my current firefox-browser.

However on Linux there is a possibility to run it portable, see https://wiki.ubuntuusers.de/Portable_Firefox/

But this needs to send firefox two options -no-remote -profile "$PWD/profilordner", otherwise it will not render anything as long as I have another firefox-window open.

In vdif-terminal I get

firefox: *** You are running in headless mode.
Firefox wird bereits ausgef�hrt, reagiert aber nicht. Um ein neues Fenster �ffnen zu k�nnen, m�ssen Sie zuerst den bestehenden Firefox-Prozess beenden oder Ihren Computer neu starten.

If I have another firefox-window open.

Anyway: @RazrFalcon can you tell me where to add `-no-remote -profile "/home/jkalliau/prgm/firefox-portable/profilordner"´ to firefox I assume https://github.com/RazrFalcon/resvg-test-suite/blob/master/tools/vdiff/src/render.cpp#L93 - L100

from resvg-test-suite.

JoKalliauer avatar JoKalliauer commented on May 26, 2024

@RazrFalcon Thanks works perfectly (also if I have another firefox open)

from resvg-test-suite.

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.