3079 Commits (c73d6e80f613df3d983d014d8f57b2ccd1d0e642)

Author SHA1 Message Date
Adriaan de Groot df0d9dcb88 [libcalamares] Provide convenience functions for warning and error 7 years ago
Adriaan de Groot 79d81700b3 [libcalamares] Use -D for just debug-level setting
- Original flag -d sets debugging but also changes behavior
 - New -D just sets debugging
 - Simplify QStringList (use C++ 11)
7 years ago
Adriaan de Groot ae5511c2f3 [libcalamares] Rationalize logging
- Move logging-levels to an enum
 - (re-)Order logging-levels so that the normal debug statement is
   not the most-important (lowest level).
 - Drop using namespace std;
7 years ago
Adriaan de Groot 6693f81375 [plasmalnf] Document configuration
- Improve documentation, explain necessity of theme: and image: keys
 - Scale screenshot up with font size (numbers picked arbitrarily)
7 years ago
Adriaan de Groot 874514a4e4 i18n: drop orphaned #undefs (thanks Kevin Kofler) 7 years ago
Adriaan de Groot f49e0f6d92 i18n: update extracted English message files 7 years ago
Adriaan de Groot 0b03d56a40 i18n: Massage code to help lupdate understand 7 years ago
Adriaan de Groot d27675d660 i18n: drop superfluous QObject* parent
These additional pointers were introduced for translations,
and needed their own tricks to get lupdate to recognize the
strings. Using QCoreApplication::translate() removes the
need to a QObject to provide context. Drop the now-unneeded
parameters.
7 years ago
Adriaan de Groot c71385e93f i18n: fix broken translation in CommandList 7 years ago
Adriaan de Groot f954496acf i18n: avoid translation tricks, use QCoreApplication::translate
Instead of using tr and some macro hacks to get lupdate to
recognize the translation, instead use QCoreApplication::translate()
which takes its own context for translation.
7 years ago
Calamares CI 7c8a70c9a1 [dummypythonqt] Automatic merge of Transifex translations 7 years ago
Adriaan de Groot ad89dd7cc4 [interactiveterminal] Document config 7 years ago
Adriaan de Groot 051edb462f [packages] Add pisi package manager (based on some guesses) 7 years ago
Adriaan de Groot 533031b3ca [bootloader] print() does not log
- use the right logging method; print just vanishes.
7 years ago
Adriaan de Groot f869a0f263 [bootloader] Log the EFI fallback action 7 years ago
Adriaan de Groot 78108c5cda [bootloader] Allow skipping the EFI fallback 7 years ago
Adriaan de Groot aed904e3b4 Merge branch 'i897-timeout'
FIXES #897
7 years ago
Adriaan de Groot 9a7e766391 Merge branch 'i895-setroot-context'
FIXES #895
7 years ago
Adriaan de Groot c2aca1f5c6 [shellprocess] Implement timeout setting
- For both shellprocess and contextualprocess, add a top-level key
   "timeout" that defaults to 10 seconds (which it already did).
 - Allows setting "global" timeout for command-lists, while still
   allowing individual timeouts per-command.
 - Setting timeout per global variable in contextualprocess is not
   supported; that would restrict the possible space of comparisions,
   while not supporting a global setting timeout seems reasonable enough.
   Use instances if you need wildly variable timeouts and don't want to
   set them individually.
7 years ago
Adriaan de Groot 2da430fa36 [libcalamares] Allow CommandLine to have unset timeout
- Introduce enum for the appropriate constant
 - If the timeout isn't set, then defer to the timeout set
   on the commandlist when running the commands.
7 years ago
Adriaan de Groot c641f5dec6 [libcalamares] Implement object-style command line
- handle command: and timeout: entries
 - test for setting the values
7 years ago
Adriaan de Groot 72bac332be FIXUP document 7 years ago
Adriaan de Groot 4917b5c778 [shellprocess] Add test for future feature
- proposed syntax for command+timeout configuration, both for single-
   entry and for lists.
 - test it already
7 years ago
Adriaan de Groot fe2be46d3f [libcalamares] Extend command-list with timeouts
- Replace plain StringList with a list of <String, timeout> pairs,
   and run that instead. All code paths still use the default 10sec
   timeout and there's no way to change that.
7 years ago
Adriaan de Groot ea179eaef4 [contextualprocess] Document command lists
- Show that a command list is also allowed, not just a single
   command. Refer to shellprocess for more documentation.
7 years ago
Adriaan de Groot 6335084aa3 [libcalamares] Determine what's checked and what's required first.
- warn for required checks that are not carried out.
7 years ago
Adriaan de Groot 778feb50e8 [libcalamares] Additional convenience for doubles 7 years ago
Adriaan de Groot 54a9bbb949 [libcalamares] Don't eat output on timeout.
- Copy stdout from timed-out process into the output variable,
   instead of just dumping it into the log file. This will
   improve the user experience, too, because they will get some
   feedback / explanation of what the process has done.
7 years ago
Adriaan de Groot d6731efdfd [packages] fix typo in docs 7 years ago
Adriaan de Groot 1d6dca062c [users] Make state of 'reuse password for root' available in globals. 7 years ago
Adriaan de Groot 26dfd56f6d [libcalamares] Additional convenience function extracting int 7 years ago
Adriaan de Groot 188a434a10 [dummycpp] more verbose debug log 7 years ago
Adriaan de Groot b828580464 Merge remote-tracking branch 'origin/simplify-plugin' 7 years ago
Adriaan de Groot 32b10f72e9 Merge branch 'i896-password-quality'
FIXES #896
7 years ago
Adriaan de Groot b0fe7b0682 i18n: apply some more tricks to make lupdate / transifex happy 7 years ago
Adriaan de Groot 399256ba99 [users] Use explanation of password error from libpwquality
- add license file from libpwquality for provenance
 - translate pwquality_strerror() into the PWSettingsHolder convenience class
 - use Qt translations, since we'd otherwise also have to wire up, and
   wire in, libpwquality gettext translations.
7 years ago
Adriaan de Groot ed58d540b3 [users] Implement password checking through libpwquality
- Use shared_ptr and a helper class to hide away raw pointer use
   from libpwquality. Provide a convenience C++ API.
 - Simplify configuration through helper class.
7 years ago
Adriaan de Groot 354cb79cb1 [users] sample config and stub function for libpwquality 7 years ago
Adriaan de Groot 27e1de6548 [users] Use libpwquality for additional password checks
- add cmake module to find libpwquality
 - move checking functions to their own file
 - some Transifex hackery
 - stub out the libpwquality check
7 years ago
Adriaan de Groot eae52a3e65 CMake: build modules alphabetically 7 years ago
Adriaan de Groot 9a9c6da6db i18n: try to trick Transifex into recognizing these strings 7 years ago
Adriaan de Groot 9c9486bb78 [libcalamares] When ViewManager is destroyed, reset instance pointer 7 years ago
Adriaan de Groot 845986d48f [libcalamaresui] Mark virtual QObject destructors override 7 years ago
Adriaan de Groot 97fb83c743 [libcalamares] Change debug logging of how job name is derived 7 years ago
Adriaan de Groot abc6914528 [libcalamares] Enforce singleton-ness of CalamaresPython::Helper
- unset instance pointer on destruction
 - make constructor private, and the instance accessor
   should create an instance if there isn't one.
7 years ago
Adriaan de Groot 3b3e80b334 [branding] Add a totally different branding example
Use the samegame example from the Qt Quick demos as a branding "slideshow".
Instead of watching slides go by, you can play samegame! Click on
"new game" to start, and then click on groups of same-colored balls to make
them go away -- at least two same-colored balls must be touching.

Once the exec step is done, the game vanishes automatically.

This is an additional example for #841
7 years ago
Adriaan de Groot 86b899566e [libcalamares] Silence compiler warnings about PluginFactories
- d_ptr shadows QObject d_ptr, which clang complains about
 - rename, and don't use Q_D and similar because it messes with internals.
7 years ago
Adriaan de Groot 510af704d8 [libcalamares] Improve documentation
- reference to _WITH_JSON is bogus copy-replace from other code
 - fix style of sample code.
7 years ago
Adriaan de Groot 0020fd885c [libcalamares] Remove unused extern declaration 7 years ago
Adriaan de Groot a2bdc12f25 [libcalamares] Drop unused plugin defines
- Remove some superfluous intermediate defines
 - baseFactory was not used (always Calamares::PluginFactory)
 - Move DECLARATION and DEFINITIONS apart
 - CALAMARES_PLUGIN_FACTORY_DEFINITION was redefined (identically)
 - CALAMARES_PLUGIN_FACTORY_DECLARATION was redefined (identically)
 - __VA_ARGS__ was constant
7 years ago
Calamares CI 8f1f397c95 [dummypythonqt] Automatic merge of Transifex translations 7 years ago
Adriaan de Groot be45171638 [finished] Make the *restart now* checkbox more visible.
- Issue asks to make the setting more visible, which seems sensible to
   me. It **is** kind of hidden away for those distro's that make
   the setting visible (not everyone does).
 - While here, add a tooltip explaining what it does.

FIXES #893
7 years ago
Adriaan de Groot 15d4245074 Merge branch 'scripting' 7 years ago
Adriaan de Groot d6cbda5ed7 [contextualprocess] Implement contextual processes
Allow running one or more commands based on the value of
a global configuration variable. This could, of course,
be done in a Python module with some custom code,
but for simple cases this is more straightforward
to configure through module instances.

Uses the CommandList developed for the ShellProcess
module to do the actual work.

FIXES #874
7 years ago
Adriaan de Groot f01c7cda6b [libcalamares] Fix debug output classname 7 years ago
Adriaan de Groot 913690650f [libcalamares] Move CommandList into libcalamares
- Move CommandList so it can be used from more modules than
   just ShellProcess
 - Allow a CommandList to run itself. This centralizes
   code for executing one or more commands and simplifies
   the ShellProcess module.

Various small cleanups:
 - mention instance id in log message
 - code formatting / style
7 years ago
Adriaan de Groot 60f4dd7b3b [libcalamares] Improve explanation of failed processes. 7 years ago
Adriaan de Groot 8571fd800e [shellprocess] Make explicit that an error code has been ignored, by logging it. 7 years ago
Adriaan de Groot e48767eaa6 [shellprocess] Make CommandList chroot-aware
This is prep-work for moving commandlist to libcalamares, where
it can be re-used by more modules.
7 years ago
Adriaan de Groot 8bd40fdcd5 [shellprocess] Warn when there's no script 7 years ago
Adriaan de Groot 2bc394656d [welcome] Make libparted optional
- This turns off the space-available check in the welcome module;
   without libparted, always fail that check.
 - Allows running the welcome module on OS without libparted.
7 years ago
Adriaan de Groot b0c4fbc1bb Clang: reduce warnings
- mark some things override
 - make conversion of 0 to flags explicit
7 years ago
Adriaan de Groot fdb3fc1ef8 [shellprocess] Execute the command list 7 years ago
Adriaan de Groot b7fb24837a [shellprocess] Improve CommandList
- Also allow a single string instead of a list
 - Add count() method to CommandList
 - Drop over-engineering, add more logging
 - Expand tests with some more examples
7 years ago
Adriaan de Groot 5f8fb655c4 [shellprocess] Stub of a shell process module.
This is basically dummyprocess, except with an expanded configuration
interface so you can run 1 or more shell commands in the live
or target system with a suitable configuration file and instance
of shellprocess in settings.conf.

It can replace downstream modules that implement their own
process modules with a command, by an instance of shellprocess.
7 years ago
Adriaan de Groot 4ff1a0d5ea [libcalamares] another convenience for running commands
Back targetEnvCommand() with a more general runCommand()
that takes an argument selecting the location to run
the command in. This allows us also to use the same
API for running processes in the host during install,
as we do for running them in the target system.

One reason for this change is wanting to run (user-specified)
commands and independently from the global dontChroot setting,
run those commands in the live system or the target.

This changes the ABI of the DLL, since targetEnvCommand()
is no longer exported. Plugins will need to be recompiled.

 - refactor targetEnvCommand() into more general runCommand().
 - While here, allow host system commands to run even if
   there is no global storage.
 - provide convenience accessors for ProcessResult members
 - Move explanation of process errors out of ProcessJob
   - Move from ProcessJob to ProcessResult, so it can be
     reused outside of ProcessJob (e.g. from ShellProcessJob).
   - Add some convenience functions, too.
7 years ago
Adriaan de Groot 6e01bb0fa4 CMake: factor out explanation of skipped modules.
Make a function out of explaining-skipped-modules, and call it
not only after collecting all the modules, but also after
the feature summary, so that it's quite clear which modules
are skipped.
7 years ago
Adriaan de Groot 58252fc16d [partition] Handle missing requirements by disabling the module 7 years ago
Adriaan de Groot e3b7a2884b [partition] Relax check with UI-level warning message, too 7 years ago
Adriaan de Groot 637d6ad752 [partition] Find Esp partition with modern flags. 7 years ago
Adriaan de Groot 94b6c95c44 [partition] Introduce function for checking various flag-combinations for ESP boot. 7 years ago
Adriaan de Groot 3ff68bce98 [keyboard] Correct guessing for Arabic variants 7 years ago
Adriaan de Groot 05967311de [partition] Be defensive against no device-device-available.
Scenario is this: you have no suitable installation devices on
your system (everything is mounted, or HDD has died), click through
to partition page, where you have all the buttons available, but no
devices in the list. The following actions then cause a crash:

 - clicking "back"
 - clicking any button

Prevent that:
 - you can click "back", but if there is no device selected
   nothing happens to the device state (no nullptr deref,
   and no crash)
 - button code is now more resilient to this scenario
 - buttons are hidden until a device is available, so you
   can't even click on them to trigger the code.
7 years ago
Adriaan de Groot a35a7b108f
Merge pull request #883 from agaida/hack-unpackfs
[unpackfs] skip error check when rm of tmp folder fails
7 years ago
Adriaan de Groot 7249b41e3e [keyboard] Explain table format, add more edge cases 7 years ago
Adriaan de Groot 0d56b9b9c5 Merge branch 'master' into i689-kayboard-layout 7 years ago
Adriaan de Groot 28d61c406e [bootloader] Improve description of *efiBootloaderId* option 7 years ago
Adriaan de Groot 2a0a2a26bc [umount] Don't raise when copying log file fails. 7 years ago
Adriaan de Groot 6f7b5a0510 [umount] Move module documentation into config file, fix wording
FIXES #831
7 years ago
Adriaan de Groot a7d7f3a83b [welcome] Make link to Calamares site https 7 years ago
Adriaan de Groot 308441ee3a Merge branch '3.1.x-stable' 7 years ago
Adriaan de Groot 41e6f0e06c [calamares] Allow WM close button
- remove hide-close-button hack
 - refactor code in viewmanager for confirming quit
 - hook up confirm-and-quit to WM close button
 - also works for alt-F4 and other quit methods
 - while here, update copyright year

FIXES #870
7 years ago
Adriaan de Groot 5593be125f [calamares] Reduce font-related debug output on startup. 7 years ago
Adriaan de Groot 1a42b8af41 Merge branch 'kpmcore-3.2'
- Bumps requireed KPMCore to 3.3 (in spite of the branch name)
 - Cleans up some dependencies

Thanks to Andrius Stikonas.
7 years ago
Philip be650d7986 [initcpiocfg] search just for 'lvm2' in partition[fs] 7 years ago
Philip 5a83024698 [initcpiocfg] add 'lvm2' hook as needed 7 years ago
Andrius Štikonas 2027a5538e Fix propagation of new partition table to global storage. 7 years ago
Alf Gaida 784bbd3bc8 finally !must! never fail unhandled
but it does without help
7 years ago
Philip 1cffa9fafc [partition] Rename slots, to avoid recursion
- see also https://github.com/calamares/calamares/issues/880
- missed within 7ce52ecda7
7 years ago
Philip 8f32aad3fa [partition] Rename slots, to avoid recursion
- see also https://github.com/calamares/calamares/issues/880
- missed within 7ce52ecda7
7 years ago
Adriaan de Groot 03dd487fc2 Merge branch '3.1.x-stable' 7 years ago
Adriaan de Groot 661789825a [plasmalnf] Make the module optional
- Check for presence of KDE Frameworks for Plasma & Package
 - Explain when module is skipped
7 years ago
Adriaan de Groot 2e1f389997 CMake: explain which modules are skipped
Modules may be skipped for different reasons: SKIP_MODULES
is the traditional approach to suppress some, but other modules
may have unmet build requirements (e.g. Plasma Look-and-Feel,
or the Partitioning module) and should be able to opt-out
of being built. For all those skipped, log it explicitly after
all the modules have been examined.

Only CMake-based (e.g. C++) modules support opting-out in this way.
7 years ago
Adriaan de Groot dc255e161e [partition] Rename slots, to avoid recursion 7 years ago
Andrius Štikonas 806b84973a Convert CreatePartitionTableJob to KPMcore operation. 7 years ago
Andrius Štikonas 1b3ce39ffb Convert FormatPartitionJob to KPMcore's CreateFileSystemOperation. 7 years ago
Andrius Štikonas 638117efa0 Cleanup unnecessary kpmcore includes. 7 years ago
Adriaan de Groot 7ce52ecda7 [partition] Rename slots, to avoid recursion 7 years ago
Adriaan de Groot 980b39961d [calamares] Unset application name
Unset the application name so that you don't get -- Calamares
in the window title.

Reported by: sitter
FIXES #877
7 years ago
Adriaan de Groot f8a53f9646 [libcalamares] Refactor explanation of process-job errors 7 years ago
Adriaan de Groot c6ab4195c7 [contextualprocess] Stub of a contextual-process job
This is meant to run one or more jobs based on specific global
configuration values; if could also be done by a Python
module with just some if's, but this one can be used with
just the config file and covers a bunch of use-cases.
7 years ago
Adriaan de Groot 762ad54344 Documentation: change http links to GitHub to https 7 years ago
Adriaan de Groot c582ff0d6b Merge branch '3.1.x-stable' 7 years ago
Adriaan de Groot d42210eb93 Merge branch '3.1-pinebook' into 3.1.x-stable 7 years ago
Adriaan de Groot d5b46dfb86 [plasmalnf] Improve theme-listing handling
- if key is missing or badly typed, enable all (explicitly)
 - document settings and code
7 years ago
Adriaan de Groot f2aeecf546 [plasmalnf] Improve screenshot view
- make screenies smaller
 - use view-preview to indicate no-screenshot-specified
7 years ago
Adriaan de Groot 10e71bab30 [plasmalnf] Add Breeze 'view-preview' icon for missing screenshots 7 years ago
Adriaan de Groot e73d54767d [plasmalnf] Expand explanation, drop CSS 7 years ago
Adriaan de Groot cf39dddbf3 [plasmalnf] Prevent duplicate widgets
- Only create widgets for themes once
 - Update visible texts as needed
7 years ago
Adriaan de Groot 3f258d4bd9 [plasmalnf] Fallback for image-not-found
- calculate a hash of the filename, and use that
 - makes it possible to distinguish different screenshots
   even when the image file is missing / badly configured
 - most colors will be dreadful
7 years ago
Adriaan de Groot cc15dd9ec7 Merge branch 'master' into kpmcore-3.2
- Pull in Master, merge README, to simplify merging this
   branch into master (soon-ish, once kpmcore 3.3 becomes available
   in builders)
7 years ago
Andrius Štikonas a2e3af2b3d Require KPMcore 3.3 7 years ago
Adriaan de Groot 2db485bb33 [plasmalnf] Improve layout of theme widget 7 years ago
Adriaan de Groot 244919d6fe [plasmalnf] Add description to theme widget 7 years ago
Adriaan de Groot 55ed2ba4c0 [partition] Introduce convenience translation for progress. 7 years ago
Adriaan de Groot 5c4286eebf [partition] Switch to convenience function for MiB 7 years ago
Adriaan de Groot 38688bab47 [partition] code style (minor followup to #872) 7 years ago
Adriaan de Groot 0729bdd0be
Merge pull request #872 from stikonas/3.1.x-stable
Use KPMcore SetPartFlags operation.
7 years ago
Adriaan de Groot 8b3f71af40 [plasmalnf] Widget for showing theme info
- Radio button + group for button action
 - Use a (still very primitive) widget for displaying theme information
7 years ago
Adriaan de Groot 755c0cba18 [plasmalnf] Prep-work for UI changes 7 years ago
Adriaan de Groot 11fc3e0507 [plasmalnf] minor documentation
- Code documentation
 - Add another broken example theme, as test for winnowing
7 years ago
Adriaan de Groot afbdcc3782 [hwclock] Be more lenient.
Patch by Gabriel C. (@abucodonosor).

 - use libcalamares functions
 - no need to copy /etc/adjtime over we can run hwclock in chroot
   since we have /proc , /sys , /dev , /run/* already bind mounted.
 - added RTC and ISA probing methode ( see issue #873)
    - we probe default from /dev/rtc* ,
    - fall back to ISA
    - still doesn't work we just print a BIOS/Kernel BUG message and continue
- NOTE: issue #873 is about broken ArchLinux kernel config but there
  are HP boxes with real RTC problems no matter what kernel config
  is used so let us be nice and don't error out..

FIXES #873
7 years ago
Adriaan de Groot 748ccf94e9 [plasmalnf] Enrich config file
- Extend the config file format to allow theme, image pairs
   as well as just naming the themes.
 - Reduce verbosity when querying Plasma themes.
7 years ago
Andrius Štikonas 139f5a9e86 Use KPMcore SetPartFlags operation. 7 years ago
Adriaan de Groot 6bd8c67ca9 [plasmalnf] Allow filtering the selectable lnf themes
- empty list allows all of them
 - always suppress hidden, invalid themes, and those named
7 years ago
Adriaan de Groot ad69eda337 [plasmalnf] Complain again if poorly configured 7 years ago
Adriaan de Groot 98b9f67e39 [plasmalnf] Complain more loudly (and more often) when badly configured 7 years ago
Adriaan de Groot ee979d79ee Merge branch '3.1-pinebook' 7 years ago
Adriaan de Groot 02dfe51d55 [welcome] Improve error reporting from requirements checker 7 years ago
Adriaan de Groot e628ddfdbf [plasmalnf] Try to get back to the live user before changing themes 7 years ago
Adriaan de Groot b10b19e9ee [plasmalnf] C++ style and reduce includes 7 years ago
Adriaan de Groot eb92755b0a [plasmalnf] Enable translations
- Move tool-running to the view-step
 - Enable translations by showing name instead of theme-id
 - More verbose logging
7 years ago
Adriaan de Groot 71966b5330 [plasmalnf] Wait longer for the tool to finish 7 years ago
Adriaan de Groot 1de2e94fd0 [plasmalnf] Simplify code, reduce copies of lnftool setting 7 years ago
Adriaan de Groot fe8ff3ab05 [plasmalnf] Simplify code, remove redundant implementations 7 years ago
Adriaan de Groot 4e2e55a935 [plasmalnf] Needs to run as target user in all cases 7 years ago
Adriaan de Groot e005c2d02d Merge branch '3.1-pinebook'
- Also document the config file some more.
7 years ago
Adriaan de Groot ac92d4911d Compatibility: revert conveniences from master 7 years ago
Adriaan de Groot 3a94f02547 CMake: look for ECM at top-level, add to search path if found. 7 years ago
Adriaan de Groot cddc4699aa [plasmalnf] Import Plasma Look-and-Feel module independently 7 years ago
Adriaan de Groot 1f49f764a6 [libcalamares] Allow retrieving chroot mode from system (as well as settings) 7 years ago
Adriaan de Groot 388399f256 [plasmalnf] Fix command-line options, run in target user environment 7 years ago
Adriaan de Groot 7e5970324f [plasmalnf] Reset layout along with theme 7 years ago
Adriaan de Groot 81128923e6 [plasmalnf] Disable applying in the target (user|system) for now. 7 years ago
Adriaan de Groot 3bdfa63a79 [plasmalnf] Preserve environment, so that DISPLAY gets to the tool 7 years ago
Adriaan de Groot d3ef6b07d5 [plasmalnf] Run the lnftool in the target (user|system) 7 years ago
Adriaan de Groot 8a053f3c9b [libcalamares] Allow retrieving chroot mode from system (as well as settings) 7 years ago
Adriaan de Groot b3d299bbf1 [plasmalnf] Replace hard-coded path with configurable one 7 years ago
Adriaan de Groot 62623a2376 [plasmalnf] Make an actual job of setting the theme
- Job doesn't actually run lookandfeeltool in the target system yet.
7 years ago
Adriaan de Groot 2d3defcca3 [plasmalnf] Hammer in theme-changing
- Tool is currently a hard-coded path.
7 years ago
Adriaan de Groot 8c65ee5481 [plasmalnf] Get available LNF
- Implement various ways of getting the LNF; the process-based one
   uses a recent CLI-tool from the Plasma developers.
 - Fill the UI with (meaningless) LNF package IDs.
7 years ago
Adriaan de Groot 98d758b4be [plasmalnf] Hammer out the most primitive UI 7 years ago
Adriaan de Groot e0634a4056
Merge pull request #869 from V3n3RiX/master
new module : openrcdmcryptcfg - auto unlock encrypted partitions with OpenRC
7 years ago
Adriaan de Groot 839c039168 Merge remote-tracking branch 'origin/plasma-lnf' 7 years ago
Adriaan de Groot 298ff0cbeb Merge branch '3.1.x-stable' 7 years ago
V3n3RiX 7cecfceaa7 add openrcdmcryptcfg module 7 years ago
Adriaan de Groot c8a6ebe404 Testing: expand the testmodule script.
Do a better job determining what the arguments could mean; this supports
lazy devlopers who don't want to pass in full paths to all kinds of things.
Simple invocation can now be:
    testmodule.py <modulename> - +
to read <modulename>.conf from src/modules/<modulename>/
7 years ago
Adriaan de Groot 65a236cd60 [packages] Fix previous.
This, kids, is why you don't switch writing C++ and Python too often.
The C++ code isn't a syntax error in Python, although this would fail
at runtime.
7 years ago
Adriaan de Groot 3e3cd08ff3 [packages] Fix previous (false vs False) 7 years ago
Adriaan de Groot 150007c138 [packages] Feature: skip if no internet.
Update documentation, add a new key *skip_if_no_internet* to support
systems that **recommend** having an internet connection (but don't
require it), and which also use the packages module. This prevents
a long delay while the package manager tries to access the internet
and times out (repeatedly).

Existing configurations are unchanged.
7 years ago
Adriaan de Groot 7b145c2a36 [packages] Improve message when no packages are processed at all. 8 years ago
Adriaan de Groot 517dbfab06 [libcalamares] The script namespace is actually a dict
Use dict methods, in particular d.get(k, v), to retrieve
the pretty_name() function (or None if it isn't there).
Using getattr() on a dict will not return values in the
dict.
8 years ago
Adriaan de Groot fe61925f31 [packages] Update module documentation 8 years ago
Adriaan de Groot 0d413ba750 Merge branch '3.1.x-stable' 8 years ago
Adriaan de Groot 12369abaa4 [libcalamares] Refactor to reduce compiler warnings 8 years ago
Adriaan de Groot 53036be418 Merge branch 'i865-error-reporting' 8 years ago
Adriaan de Groot ae4508011c [tracking] swap out PNG for SVG icons 8 years ago
Adriaan de Groot c284304872 [libcalamares] Adjust copyright lines 8 years ago
Adriaan de Groot cc195eb3d4 [libcalamares] Improve reporting of CalledProcessError
For called processes, replace the not-very-useful type message
with the command-explanation, and replace the value (previously
command-explanation) by the stderr of the failed command.

FIXES #865
8 years ago
Adriaan de Groot 9df796a3fd [libcalamares] Log earlier, warnings-- 8 years ago
Adriaan de Groot 1e27c6438a [libcalamares] Special-case CalledProcessError 8 years ago
Adriaan de Groot a0a8ab0048 [libcalamares] Refactor Python target_env calls
This is why the whole refactoring started: to get the process output
and exit code in one spot so we can attach the process output
to the (Python exception) CalledProcessError in all the code
paths, not just those that are explicitly looking for output.
8 years ago
Adriaan de Groot 6693d91152 [libcalamares] Refactor bp:list -> QStringList 8 years ago
Adriaan de Groot 9d31380980 [libcalamares] Refactor target-environment calls
- Add a more general targetEnvCommand() that returns both
   error code and process output.
 - Change existing targetEnvCall() and targetEnvOutput()
   to use general form while discarding some data.
8 years ago
Adriaan de Groot f5aec1ad8a [libcalamares] Add output to CalledProcessError
- Refactor, internal _handle_check_target_env_call_error doesn't need
   to be in header or visible.
 - Add optional output (of the command) to the Python exception.
8 years ago
Adriaan de Groot 1f3f6111f7 [libcalamares] Log output from failed commands 8 years ago
Adriaan de Groot b4d4351825 [libcalamares] Better Python traceback handling:
- log the whole error message as plain text
 - convert to HTML only for the ui
8 years ago
Adriaan de Groot a25445a58c i18n: update (English) source translation files 8 years ago
Adriaan de Groot d06e29b1c5 [interactiveterminal] refactor again to keep Transifex happy 8 years ago
Calamares CI cd2ae5ab0e [dummypythonqt] Automatic merge of Transifex translations 8 years ago
Adriaan de Groot 3cb6fd839b [interactiveterminal] Refactor error message
- refactor error message
 - ifx capitalisation problem
 - remove editorializing in comments

FIXES #866
8 years ago
Adriaan de Groot 3ae65d5771 Merge branch '3.1.x-stable' 8 years ago
Adriaan de Groot 93ab6432c4 [netinstall] Special-case the root node.
Root is always selected, can't be unselected, and has its own explicit
constructor and name. This resolves issue reported where unchecking
all *visible* groups caused the root to be unchecked, after which
hidden-but-still-selected subgroups were not installed.

Reported by crazy@
8 years ago
Adriaan de Groot e29cd7ab54 Merge branch 'usertracking'
Adds a "tracking" module which allows configuring phone-home,
machine and user tracking. Additional machine-tracking types
could be defined depending on distro needs.

This is not the final version -- there is still polishing to
do on the icons, perhaps layout.

Tested in KDE Neon devunstable by keeping an existing partition
which had an older Neon running. New machine-id is generated
and sed'ded into place.

FIXES #783
8 years ago
Adriaan de Groot 858372d93e [tracking] Remove derp. 8 years ago
Adriaan de Groot 8aa94ef01e [branding] Fix up example URLs 8 years ago
Adriaan de Groot 8e79ad1a14 [tracking] Implement Neon machine tracking configuration 8 years ago
Adriaan de Groot 6cb88c86f1 [tracking] Improve phrasing 8 years ago
Adriaan de Groot 22f5a121cb [tracking] stub implementation of neon machine feedback configuration 8 years ago
Adriaan de Groot 4a96e83203 [tracking] Adjust wording, drop page title 8 years ago
Adriaan de Groot 9a3ba75c2c [tracking] Switch icons to sensible names 8 years ago
Adriaan de Groot cb8f698ce0 [tracking] Switch to VDG icons (version 1) 8 years ago
Adriaan de Groot 93052311aa [tracking] Switch UI to use radio buttons
Following KDE Pholio M116, switch to using a radio button; instead
of 4 individually toggle-able settings, use a "level" indicator
to select none, install, machine, user .. each of which implies
the previous levels. Each level is individually enable-able from
the distro side.
8 years ago
Adriaan de Groot 188050a77c Merge branch 'master' into usertracking 8 years ago
bill-auger 452cefd482 use orphaned Branding::ProductLogo as sidebar image 8 years ago
Adriaan de Groot aa0fa37492 [netinstall] Hidden groups follow selectedness of parents.
If a subgroup is hidden, then it should be considered
selected if its parent is selected or partially-selected.
If the parent group is totally unselected, then the hidden
subgroup shouldn't be installed either. This allows putting
required-packages into a group, without cluttering the
interface.

FIXES #864
8 years ago
Adriaan de Groot 71e80f680e [netinstall] Only update selectedness of parents with children.
While walking up the tree, only switch the selectedness states
of parents with children. This avoids the case where a parent
has a first subgroup that is hidden -- in which case the
parent ends up with no children, and is unselected even though
it is marked as selected in the config file.

FIXES #864
8 years ago
Adriaan de Groot 495f94dde8 [calamares] Silence QBasicTimer warning message.
Relying on auto-qobject deletion on shutdown generates a warning message
    17:23:44 [0]: QBasicTimer::start: QBasicTimer can only be used
                  with threads started with QThread
which is annoying. Since we're in shutdown, just skip deletion
entirely, and leave the model unparented.

FIXES #472
8 years ago
Adriaan de Groot 185f46e2c4 [calamares] reduce compile warnings 8 years ago
Adriaan de Groot 3e4b1a7c46 [calamares] Avoid possible uninit-pointer or memory leak 8 years ago