Files
Kareer/io.github.toservetheking.Kareer.yml
austinandClaude Opus 5 260704cf9b Add --db and let the user choose where the database lives
- `kareer --db <path>` works for the GUI and every subcommand, before
  or after the subcommand name, and creates the file if missing. main()
  strips it from argv before CLI/GUI routing; every parser declares it
  so it shows in --help.
- Path precedence: --db > KAREER_DB_PATH > the location chosen in the
  GUI (kareerrc [Database] Path, read at startup for GUI and CLI alike)
  > $XDG_DATA_HOME/kareer/kareer.sqlite.
- First GUI run (nothing forced, no file yet, or the configured file
  has gone missing): DatabaseSetupDialog offers the default location, a
  folder of the user's choice, or an existing database used in place.
  Until then JobsDatabase opens nothing.
- Preferences gains a Database section: Move to... (copies, leaves the
  original), Open Existing..., Use Default Location. Refuses foreign
  SQLite files and unwritable ones.
- Models call JobsDatabase::reopenIfPathChanged() on refresh, so
  switching databases needs no restart.
- Link KF6::ConfigCore; add a QuickDialogs2 configure-time guard; add
  kconfig to the Arch dependencies and a note to the Flatpak manifest.
- README documents --db, the precedence, and the first-run choice, and
  gains Fedora 44 build dependencies; CONTRIBUTING gets a dev recipe.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01BxDf7HqD1xPnsZP8wt3NTk
2026-09-11 15:42:00 -05:00

44 lines
1.3 KiB
YAML

# SPDX-FileCopyrightText: 2026 ToServeTheKing <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later
id: io.github.toservetheking.Kareer
runtime: org.kde.Platform
# Use the latest Flathub KDE runtime available at submission time.
runtime-version: '6.10'
sdk: org.kde.Sdk
command: kareer
# A job application tracker: no host filesystem or network access is needed.
# By default everything lives in the app's own XDG data directory, which
# Flatpak grants. A database the user places elsewhere (first-run dialog or
# Preferences) is reached through the file chooser portal instead of a
# --filesystem permission; folders are picked for new/moved databases so
# SQLite can create its journal next to the file.
finish-args:
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
- --device=dri
cleanup:
- /include
- /lib/pkgconfig
- '*.a'
modules:
- name: kareer
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=Release
run-tests: true
sources:
# For local testing before the repo is pushed:
- type: dir
path: .
#
# For Flathub / release builds, pin to a tag AND commit instead:
# - type: git
# url: https://github.com/toservetheking/Kareer.git
# tag: v0.1.1
# commit: <fill in the exact commit SHA the tag points at>