Giter VIP home page Giter VIP logo

Comments (9)

Shatur avatar Shatur commented on May 27, 2024 1

Done! I decided to combine the 4th and 7th example. You can create the file settings.ini in the app folder and Crow will store the configuration in it. You can also open settings and enable "Portable mode" - the application will create this file automatically.
Crow writes configuration only upon changes, so if you open the application for the first time, go to settings and enable portable mode, then no data will be written to the registry.

from crow-translate.

Shatur avatar Shatur commented on May 27, 2024

Okay, I will add it :) Stay tuned for updates.

from crow-translate.

smaragdus avatar smaragdus commented on May 27, 2024

@Shatur95

Excellent! I would appreciate any implementation of portable mode. The ones you chose are easy and handy for the user. Actually I wouldn't like very much only method 2- command-line argument, because the user needs to create a special shortcut or needs to use a program launcher which supports command-line arguments. Also the user may forget to start the program using the command-line parameter.

Do you plan to release Crow Translate as archive as well or you will provide it only as installer? In fact one can easily extract the installer (even 7-Zip was able to extract the installer right).

For me as a user it is always a pleasure to communicate with developers as helpful and as responsive like you.

Regards

from crow-translate.

Shatur avatar Shatur commented on May 27, 2024

Thanks, nice to hear :)

Do you plan to release Crow Translate as archive as well or you will provide it only as installer? In fact one can easily extract the installer (even 7-Zip was able to extract the installer right).

Good idea, I think. I will publish the next release with archive too.

from crow-translate.

smaragdus avatar smaragdus commented on May 27, 2024

@Shatur95

I downloaded version 2.2.3 but I neither found Portable mode check box in settings, nor the program used the file settings.ini I manually created in program folder.

Can you attach a screen shot which shows this Portable mode check box?

I created the configuration file (settings.ini) in the folder which contains the executable (crow.exe), this is the right place, right?

In short- I could not find the check box:

Portable mode

in settings.

The configuration file:

settings.ini

manually created in program folder is not used.

The settings are still saved in Windows Registry:

HKEY_CURRENT_USER\Software\crow\Crow Translate

I think that this issue needs to be re-opened.

from crow-translate.

Shatur avatar Shatur commented on May 27, 2024

Wow, it's my mistake :( I switched to automated releases and forgot to specify PORTABLE_MODE build flag in CI script. Stay tuned for updates.

from crow-translate.

Shatur avatar Shatur commented on May 27, 2024

Done, just wait until the binaries will be re-uploaded. You can see the progress here.

from crow-translate.

smaragdus avatar smaragdus commented on May 27, 2024

@Shatur95

Excellent! Portable mode really works as it is supposed to work, screen:

Crow Translate 2 2 3 - 2019-11-05 - 002

When I checked Portable mode option the program created configuration file settings.ini in program folder.

However it seems that on first run the program still creates empty registry key:

HKEY_CURRENT_USER\Software\Crow\Crow Translate

So it seems that the better option is to manually create empty settings.ini in program folder.

Yet after I deleted the registry key it was not re-created on the next run.

from crow-translate.

Shatur avatar Shatur commented on May 27, 2024

However it seems that on first run the program still creates empty registry key

Hmm, it seems that QSettings on Windows works a little differently... But you are right, you still can create settings.ini manually.

from crow-translate.

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.