2988 Commits (24305bd58fe2aa1ba1744e98b415f6d20596ac44)

Author SHA1 Message Date
Adriaan de Groot 04de4a0b02 [plasmalnf] Properly scale the image
- Since the image size isn't known a priori (due to sizing based on fonts),
   load the image and then resize in all code paths.
 - Use the right resizing flags.
 - .. and actually use the resulting scaled pixmap.

Thanks to Jeff Hodd.
7 years ago
Adriaan de Groot 83639b182b CMake: try installing outside of regular lib/
- Install unversioned libraries
 - Install to lib/calamares instead of directly to lib/
7 years ago
Adriaan de Groot 958aee1d41 [libcalamaresui] Switch text on 'next' button
- If the next step will be an install-step (e.g. hit the optional
   confirmation step) then change the text on the 'next' button to
   'install'.
 - Do a little refactoring to make that more pleasant.

FIXES #905
7 years ago
Adriaan de Groot e9d9efce20 Merge branch 'sanitize-logging' 7 years ago
Adriaan de Groot 3ae126f589 [modules] Use cError() as well
- Switch KPMHelpers to using Calamares logging instead of qDebug()
7 years ago
Calamares CI b33e3294e1 i18n: [dummypythonqt] Automatic merge of Transifex translations 7 years ago
Adriaan de Groot 3315df5df1 [modules] Use new convenience logging methods across the board 7 years ago
Adriaan de Groot 3f77fb1d16 [modules] Use new convenience logging methods 7 years ago
Adriaan de Groot 60f440f72b [libcalamaresui] Use new convenience logging methods
- Remove a few confusing Q_FUNCINFO
7 years ago
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