Commit Graph

13 Commits

Author SHA1 Message Date
Ted Lawson cff00ad8e1
Add '.log' suffix to log files. By @bigtedde (#1710) 2023-09-25 22:51:17 +01:00
ratchek 2cb9afd4d5
Add a dev mode that allows for local storing of config files and logs (#1682)
Allows vorta to be called with the command-line flag `--development` or `-D` that will make it use a directory in the project tree to store all the settings, logs, and cache. This default directory will be called `.dev_config` and placed in the projects root.
Also allows for a custom directory path allowing for multiple "configuration" folders at once.
This can be used to prevent the vorta instance that a developer is working on from accessing the configuration files that they have set up for their personal backups.

* .gitignore : Add `.dev_config`.

* src/vorta/utils.py (parse_args): Add `--development` flag. The default will be `DEFAULT_DIR_FLAG`.

* src/vorta/utils.py : Add `DEFAULT_DIR_FLAG`.

* src/vorta/config.py : Add methods for populating the config directories exposed by this module.

* src/vorta/__main__.py (main): Handle `--development` flag and update config directories if its specified.

* Access config constants through the `config` module instead of importing them directly with `from .config import`.

---------
Co-authored-by: yfprojects <62463991+real-yfprojects@users.noreply.github.com>
2023-05-30 10:43:20 +00:00
real-yfprojects 24e1dd5c56
Run pre-commit (with newly added ruff) on code base.
Includes all changes by `pre-commit --all-files` including the changes introduced by ruff.
2023-05-01 10:28:11 +02:00
i1sm3ky 7535f92ac8
PyQt6 Upgrade (#1685)
This puts Vorta on PyQt6 and starts a new main branch 0.9.

---------

Co-authored-by: real-yfprojects <real-yfprojects@users.noreply.github.com>
Co-authored-by: Manu <3916435+m3nu@users.noreply.github.com>
Co-authored-by: yfprojects <62463991+real-yfprojects@users.noreply.github.com>
2023-04-17 11:17:01 +01:00
Vamp 961e0b5057
Migrate from appdirs to platformdirs (#1617)
Fixes #1610. Replace deprecated `appdirs` with fork `platformdirs`. Use the new `*_path` api of set fork. This changes the type of the constants defined in `vorta.config` holding locations to `pathlib.Path`.

* setup.cfg : Replace dep `appdirs` with `platformdirs`.

* src/vorta/config.py : Migrate. Simplify code for ensuring that the directories exist.

* src/vorta/log.py
* src/vorta/autostart.py
* src/vorta/application.py
* src/vorta/__main__.py
2023-03-10 16:00:39 +00:00
Manu b6a24debb7 Apply automatic formatting 2022-08-15 15:23:55 +02:00
Manu 0b2a7c02c3
Remove jobs before deleting profile (#1107) 2021-11-15 15:18:11 +04:00
Manuel Riel d0c138a0c2
Run in foreground by default (#380)
* Run in foreground by default
* Open main window on startup by default.
* Remove redundant comment
* PEP8 fixes
2020-01-03 22:23:06 +08:00
Manuel Riel b470d84c50
Add date-based log rotation. Partially fixes last part of #121. (#248) 2019-04-19 13:23:02 +08:00
TW 3af27d9603 Add debug tools for i18n UI layout checking (#160) 2019-02-01 20:19:47 +08:00
Manuel Riel 42191725b5
Smaller issues for v0.6.5 (#123)
* Clarify tray icon behavior in INSTALL.md. Fixes #111
* Rename default profile to just "Default". Fixes #116
* Remove Sentry bug reporting. Add link to Github instead. Fixes #117
* Log to terminal only when running in foreground.
2019-01-15 23:20:24 +08:00
Benjamin Pereto c5494f455c Add Background notifications for Linux (#114)
- Add DBus-based notifications for Linux and BSD desktops (@bpereto)
- Add module name to logging output (@bpereto)
2019-01-13 09:51:35 +08:00
Manu c30bdd9cf4 Redirect Borg logging output to standard location. Fixes #35 2018-11-22 11:06:58 +08:00