3247 Commits (dbcc419218b2409f925d059b030d79d4eca1bea3)

Author SHA1 Message Date
Adriaan de Groot b1b59b27b2 [locale] Expand tests for alternate selectors
- Check that the alternate selectors are used
7 years ago
Adriaan de Groot fe20416a54 [locale] Make the selector configurable
- GeoIP gets a string selector; the interpretation is up to derived classes.
 - GeoIPXML and GeoIPJSON use the selector to select an element by tag
   or an attribute, respectively.
7 years ago
Adriaan de Groot 79a6d7ccbd [locale] Make file and class consistent GeoIPXML
- Rename the class to match the filename.
7 years ago
Adriaan de Groot 2cd4461b57 [locale] Rename JSON handler
- The handler for JSON data should be called that, not named
   specially after the original provider it was implemented for.
 - Make filename and classname consistent, GeoIPJSON.
7 years ago
Calamares CI 8ba4de6d0a i18n: [dummypythonqt] Automatic merge of Transifex translations 7 years ago
Adriaan de Groot ec113e3df3 [locale] Log GeoIP attempt URL, use possibly-modified form 7 years ago
Adriaan de Groot d6f082752d [locale] On GeoIP failure, log URL 7 years ago
Adriaan de Groot 47b7040897 [locale] Adjust to Calamares 3.2 idiom 7 years ago
Adriaan de Groot 3ea5a06157 Merge branch '3.1.x-stable' 7 years ago
Adriaan de Groot 14fcc2fad6 [plasmalnf] Continue fighting with layout
- The screenshot stays one size, but different ThemeWidgets may overlap
   partially when you shrink the screen or have more than three / four
   themes listed.
 - Probably needs work in the surrounding container and overall better
   page-scrollbar support.
7 years ago
Adriaan de Groot c9928c99c8 Merge remote-tracking branch 'origin/3.1.x-stable' into 3.1.x-stable 7 years ago
Adriaan de Groot 1340613ef5 [locale] Additional test application for GeoIP processing 7 years ago
Adriaan de Groot 76e37402b3 [locale] Extend tests with negative results 7 years ago
Adriaan de Groot 0c1453ff18 [locale] Fix string value handled by XML parser 7 years ago
Adriaan de Groot eea421f499 [locale] Add tests for GeoIP handlers
- One sample JSON result
 - Two sample XML results
7 years ago
Adriaan de Groot 6b7c8a694a [locale] Make the style of GeoIP retrieval selectable
- Unchanged config files will continue to use the weird addition
   of /json, and interpret JSON data.
 - Allow to specify full URL with data format through one of
     geoipStyle: json
     geoipStyle: xml
 - XML support is optional
7 years ago
Adriaan de Groot 5b98e58ae7 [locale] Refactor GeoIP handlers
- Read the data in the caller of the handler, instead of in the callers
7 years ago
Adriaan de Groot 939cdff93b [locale] Add alternate GeoIP data format 7 years ago
Adriaan de Groot aaae1507cd [locale] Convenience function for TZ splitting 7 years ago
Adriaan de Groot 3636226425 [locale] Document change to the way GeoIPURL is handled. 7 years ago
Adriaan de Groot fe98b789f0 [locale] Document the settings in locale.conf
- The geoipUrl is weird, because it is not a complete URL.
   Document that, and what kind of data is expected.

FIXES #920
7 years ago
Adriaan de Groot d5623af8ef [locale] Refactor geoip handling
- Configuration **must** be a complete URL. The implementation no
   longer appends /json to the URL.
7 years ago
Adriaan de Groot c0d5a153d4 [locale] Refactor GeoIP handler
- Move GeoIP to its own cpp file
 - Provide a default implementation of the URL mangler
7 years ago
Adriaan de Groot 445f181cc3 [locale] Start refactoring geoip handling
- Introduce a handler interface for GeoIP providers
 - Move the implementation of FreeGeoIP into a struct of its own
7 years ago
Adriaan de Groot fa933b9a16 [plasmalnf] Search for theme screenshots
- Search in branding dir, and ., for relative paths,
 - Absolute paths used as-is.
 - Document search as such.
7 years ago
Adriaan de Groot bfb37e6b37 [plasmalnf] Avoid use of 'uint' 7 years ago
Adriaan de Groot cb616ec1bb [plasmalnf] Keep fixed size of screenshots (relative to font size) 7 years ago
Adriaan de Groot 5ab01eba9f [plasmalnf] Don't even try to load an empty filename for screenshot.
- Avoid one attempt-to-load if the filename is empty, and one
   re-creating of the Pixmap.
7 years ago
Adriaan de Groot 00a5baa3d9 [libcalamares] Improve process logging
- Don't insert a space before the output of a process
 - To do this, suppress space and quoting on the output, and to do
   that move the labeling-output for warnings and errors into
   the constructor (so that an idiomatic .nospace() does the right thing).
7 years ago
Adriaan de Groot b5c3fc8cf6 [libcalamares] Improve process logging
- Log output on crash
 - If debugging is on (-d) then also log output on success

FIXES #925
7 years ago
Adriaan de Groot 4d459f7fc0 [libcalamares] Move non-UI stuff from libcalamaresui
- Settings is just a settings class, no UI involved, so
   move to libcalamares where it can be used also from
   system helpers.
 - YAML utilities are useful at a lower level of the stack, too.
7 years ago
Adriaan de Groot 7e5c91aae6 [locale] Reduce debugging bla bla 7 years ago
Adriaan de Groot 032b33f56f [libcalamaresui] Improve logging.
- Put the (constant) 'Calamares will now quit' on its own debug line.
 - Tell the user what the search paths are if a module is not found
   (prompted by a mis-configuration in a Neon live image).
7 years ago
Adriaan de Groot ddbb9eaebc Merge branch 'improve-logging' 7 years ago
Adriaan de Groot 9fe85e592f Merge branch '3.1.x-stable' 7 years ago
Adriaan de Groot b8e6144553 [locale] Document how the locale entry in Global Storage works.
- Make the BCP47 value explicitly lower-case.
 - Add some constness and encapsulation.
 - Fix up documentation in the packages module explaining the
   format of the ${LOCALE} replacement (now forced to lower-case,
   but it is also only the language part, not e.g. en-UK).

FIXES #922
7 years ago
Adriaan de Groot 4c04260b97 [packages] Don't change the global package list.
- Count only the packages that will be changed, given the current
   locale settings.
 - Preserve global storage unchanged (don't remove any locale-packages).
7 years ago
Adriaan de Groot 36aede52ef [packages] Example configuration installs a localization package 7 years ago
Adriaan de Groot fd1279dbe3 [welcome] Make the example configuration less strict 7 years ago
Adriaan de Groot 9cdb6734bf [packages] If locale is empty, pretend it is 'en'.
- Otherwise packages like vi-$LOCALE will be retained in the
   package list, which will cause install problems.
7 years ago
Adriaan de Groot 240efd30f1 [libcalamares] Add support for formatted, table-like output
- Use DebugRow for one-row-at-a-time output with continuations.
 - Use DebugList for one-item-per-line with continuations.
 - Use DebugMap for one-row-at-a-time output of a QVariantMap.
7 years ago
Adriaan de Groot 20e9c2c8e3 Merge branch '3.1.x-stable' 7 years ago
Adriaan de Groot 32a1c84935 [locale] Document the settings in locale.conf
- The geoipUrl is weird, because it is not a complete URL.
   Document that, and what kind of data is expected.

FIXES #920
7 years ago
Adriaan de Groot fb93a8288e [plasmalnf] Simplify showAll handling
- Only need the showAll parameter once, when passing in the list
   of themes to show.
7 years ago
Adriaan de Groot b0828faadb [plasmalnf] New setting to show all installed LnF themes
- This enables working in three modes:
   - No themes listed; all are shown without screenshots,
   - Themes listed, showAll false; only those are shown,
   - Themes listed, showAll true; the installed-but-not-listed
     themes are shown after the listed ones, and have limited info.
7 years ago
Adriaan de Groot c2efae765d [plasmalnf] Add auto-detection of Plasma theme.
- Although it's not necessarily accurate for an extensively-modified
   Plasma configuration, we can read the Look-and-Feel from the
   configuration files. Allows auto-detection.
7 years ago
Adriaan de Groot 11652c5856 [plasmalnf] Add pre-selected theme
- For OEM modes where there is already a theme, add a preselect:
   key to pick a specific theme and have that one come up as already-
   selected in the list.
 - Don't re-run the lnftool if an already-selected theme is clicked
   again. Use toggled() instead of clicked().
7 years ago
Adriaan de Groot 94000b6847 [plasmalnf] Improve wording of LnF explanation. 7 years ago
Adriaan de Groot 6bb72d173d [libcalamares] Drop generic cLog()
- Use cWarning or cError() for errors
 - Use cDebug(level) for other uses (but there aren't any)
7 years ago
Adriaan de Groot ad6227ce21 [libcalamares] Remove internal functions from the logging API 7 years ago
Adriaan de Groot 3e30bb682e [libcalamaresui] Use cError() for logging errors, not cLog() 7 years ago
Adriaan de Groot e2b8fb0afe [welcome] Log if no translations matched at all 7 years ago
Adriaan de Groot cdf80615b8 [libcalamares] Rename the log file 7 years ago
Adriaan de Groot 0f289e2552 [calamares]: Improve startup logging
- Don't bother with the address of the main thread
 - Do put a marker on restart into the log file
 - Do put the Calamares version into the log file (previously, the version
   was printed through cDebug() before the log file was opened, so it was
   lost to the on-disk log).
7 years ago
Adriaan de Groot 789bbe48f8 Merge branch 'master' into secureboot 7 years ago
Calamares CI 1791ac2d43 i18n: [dummypythonqt] Automatic merge of Transifex translations 7 years ago
Adriaan de Groot 70fe023347 Merge branch 'branding'
Documentation lives both in Calamares and in the calamares-branding
repo. Whether a slideshow has navigation arrows or not is up to the
slideshow / branding component author, but Calamares now ships some
support QML to make that easy.

FIXES #841
FIXES #904
7 years ago
Adriaan de Groot 2f66aa9b07 [plasmalnf] Change to IgnoreAspectRatio
It is the distro's responsibility to produce screenshots that look
good; previously I chose to preserve the aspect ratio on the grounds
that this would keep the look of the screenshot even if the distro
had done one in a weird size. This makes the screenshot part
of the LNF selection look weird, though, since then you get
blank parts.

Switch to ignoring the aspect ration; distro's should produce
screenshots in a 12x8 (i.e. 3:2) aspect ratio, preferrably at
least 120x80 pixels -- but keep in mind hiDPI and the default
font sizes of the distro, which may make other sizes look better.

(this follows discussion with BlueStar Linux)
7 years ago
Adriaan de Groot 986c5f5a9a CMake: improve branding component macros
- document preferred component layout
 - simplify parameters to the branding macros
 - allow structured branding components with SUBDIRECTORIES
7 years ago
Adriaan de Groot f29da8e39e Branding: document preference for standalone branding 7 years ago
Adriaan de Groot 25b9663a40 Branding: remove fancy/ and samegame/ examples
The examples of branding have moved to the calamares-branding repo.
7 years ago
Adriaan de Groot e4cca9b830 Branding: document how to translate branding 7 years ago
Adriaan de Groot 75df6a4f88 Branding: add example translations to fancy/ 7 years ago
Adriaan de Groot f8bc195fb4 [libcalamaresui] Improve warning when branding has no translation 7 years ago
Adriaan de Groot c1bb5e708b QML: apply translation to the slide counter 7 years ago
Adriaan de Groot 97eff28383 QML: Remove binding for quit key in presentation 7 years ago
Adriaan de Groot 8125698696 Branding: expand documentation
- Auto-advance the default presentation
 - Add more example slides to the fancy presentation
 - Expand README.md explaining what the default classes can do
7 years ago
Adriaan de Groot e7849c5ed0 Branding: fix reference error 7 years ago
Adriaan de Groot 3b8673fb99 Branding: update example, use NavButtons 7 years ago
Adriaan de Groot 7ab79a944b Branding: add example SVGs from Quassel 7 years ago
Adriaan de Groot b6fd8de126 QML: Use QtQuick 2.5 consistently 7 years ago
Adriaan de Groot 3d89828fe1 QML: drop potentially confusing shortcuts
Removed these features that make sense in a presentation slideshow
(e.g. during a talk) but that are potentially confusing during
a passive slideshow like Calamares has:
 - Using 'c' blanks the slideshow.
 - Entering a slide number + enter changes slides.
7 years ago
Adriaan de Groot c116dba2e8 QML: add navigation items
- Add a NavButton, which shows a directional arrow, and fades in on hover.
   It can be used left- or right- by setting an image source
   and click handler.
 - Specialize NavButton to Forward and BackButton.
 - Add a SlideCounter navigation aid.
7 years ago
Adriaan de Groot 74080c31f5 Branding: add a fancy branding example 7 years ago
Adriaan de Groot 1e0ecbcc18 [contextualprocess] Warnings-- by dropping destructor 7 years ago
Adriaan de Groot 583cc06f7c [keyboard] Warnings-- for nullptr 7 years ago
Adriaan de Groot 51ccd6be4d [license] Warnings-- by making the one default case explicit 7 years ago
Adriaan de Groot e2f6d160f8 [tracking] Reduce compile warnings
The fallthrough construction in a switch is a bit confusing
to read, and generates compile warnings too, so break it up.
7 years ago
Adriaan de Groot defc7d4df8 [welcome] Compile warnings-- 7 years ago
Adriaan de Groot a9e751bb31 [users] Compile warnings-- 7 years ago
Adriaan de Groot 903e77a908 [bootloader] Adjust documentation 7 years ago
AlmAck 58952b685c the first character must be a comment
to original code would match both lines:
zen_US.UTF-8 UTF-8
#en_US.UTF-8 UTF-8

introducing "#" should check only the commented lines
7 years ago
AlmAck 382c193afa Enable the correct language in the locale.gen list
the original code does not distinguish the document comments inside the locale.gen file from the real locale list. The language was then enabled from the header comments of the file instead of the correct value in the list.

The new code verify tha the complete locale string is just after the first character of the string, enablig only the correct value of the locale list.
An example:
#  en_US.UTF-8 UTF-8 --> document header, should not be enabled
#en_US.UTF-8 UTF-8 --> correct section to enable

Related to this request:
https://code.chakralinux.org/tools/calamares-chakra/issues/2
7 years ago
Calamares CI 1762d5e5d6 i18n: [dummypythonqt] Automatic merge of Transifex translations 7 years ago
Adriaan de Groot 09f30194d7 CMake: revert un-versioning of libcalamares*.so
The install-bits branch commit 83639b182b
dropped .so-versioning for libcalamares and the creation of the Python-
support symlink. This broke KDE Neon dev-unstable because the embedded
Python can no longer find libcalamares.

Installing unversioned .so's straight to LIBDIR is also not a good thing
(according to Debian), so revert to the original scheme with versioned
.so and a Python-support symlink.

Medium-term fix is to install unversioned straight into LIBDIR/calamares
and fix up the RPATH for the executable.
7 years ago
Adriaan de Groot 73a5e0bbcd [libcalamares] Fix up debugging
Using plain cLog() is weird, it doesn't attach a debugging level
so it seems like it's level 0, beyond-critical.
7 years ago
Adriaan de Groot 36ef4556b4 Merge branch 'install-bits'
FIXES #729
7 years ago
Adriaan de Groot 56ce22908e CMake: drop empty calamaresUi
- Empty variable and some unused wrappings doing nothing.
7 years ago
Adriaan de Groot db0c1ffd6d CMake: just install unversioned .so
- Applies to libcalamares and libcalamaresui.so, install with no
   version, just the bare .so. Since Calamares doesn't do versioning
   anyway, and its plugins should be re-compiled for any change,
   putting them in lib as unversioned .so's should make Calamares
   happy and silence lintian.
7 years ago
Adriaan de Groot 06536b6a66 [bootloader] Refactor method for safe efi label 7 years ago
Adriaan de Groot de1710a9f3 [calamares] Refactor argument-handling
- Move parameter handling out of main
 - Give -D an argument (log level)
7 years ago
Adriaan de Groot a1cbb161ee [libcalamares] Make setup of log-level explicit
- Replace the implicit setting of a logging level
   (the first time logging is called) with explicit
   setupLogLevel().
7 years ago
Adriaan de Groot 7f53e970fc [bootloader] Add secure-boot efiBootLoader
- add configuration option
 - check for sensible combinations of firmware, bootloader,
   and complain if it isn't.
7 years ago
Adriaan de Groot 247a0e3a56 [umount] Make a pretty_name() 7 years ago
Adriaan de Groot 060990bdd0 Python: use warning() method in modules 7 years ago
Adriaan de Groot 84d599625f [libcalamares] Give Python jobs a warning()
- Add libcalamares.utils.warning() alongside debug() for
   Python modules to output warnings.
7 years ago
Adriaan de Groot dbbec4f76d [libcalamares] Use cDebug, polish messages 7 years ago
Adriaan de Groot d62c7b93c6 [libcalamares] Polish weird namespace use 7 years ago
Adriaan de Groot 0c16bf1179 [finished] Remove useless debugging 7 years ago
Adriaan de Groot 092529da45 [partition] WIP: EFI partition search
- Add some logging (not even sure it compiles) because
   my openSUSE Krypton Secureboot-enabled VM says
   "no EFI system partitions found".
7 years ago
Adriaan de Groot cf02f7aab5 [libcalamares] Avoid nullptr crashes
- The Python testmodule script can end up calling in to System
   methods (via System::instance()). This is unusual, and the
   System instance has not been created at that point.
   Now, create an instance and warn about it.
7 years ago
Adriaan de Groot 94014a52d4 Merge branch 'context-wildcard'
FIXES #906
7 years ago
Adriaan de Groot 713add5795 [contextualprocess] Add tests
- Tests showed issues with memory management, fixed in previous commits.
7 years ago
Adriaan de Groot f0ec6c02a3 [shellprocess] ECM has already been searched-for 7 years ago
Adriaan de Groot 23a23a01f1 [contextualprocess] Cleanup destructors
- ValueCheck shouldn't own the pointer, since it's just a QPair
   and there are temporary copies made (e.g. in
   ContextualProcessBinding::append() ) and we get double-deletes.
 - Do deletion by hand; going full unique_ptr would be a bit overkill.
7 years ago
Adriaan de Groot 87e2f13dc2 [contextualprocess] Helper methods for counting checks 7 years ago
Adriaan de Groot 8664400ee9 [contextualprocess] Warn if (global) variable not found. 7 years ago
Adriaan de Groot 699b42a756 [contextualprocess] Add wildcard
- Re-build the structures for doing value-checks, is now more tree-like.
 - Document pointer ownership.
 - Introduce wildcard matches ("*")
 - Don't drop empty command-lists, since they can be used to avoid
   wildcard matches. (E.g. "in this case, do nothing, but don't
   fall through to wildcard").
7 years ago
Adriaan de Groot 2fa6361d63 [branding] Expand documentation
- Make CMakeLists a little more resilient
 - Format docs source
 - Add documentation for the examples
7 years ago
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) 8 years ago
Adriaan de Groot f49e0f6d92 i18n: update extracted English message files 8 years ago
Adriaan de Groot 0b03d56a40 i18n: Massage code to help lupdate understand 8 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.
8 years ago
Adriaan de Groot c71385e93f i18n: fix broken translation in CommandList 8 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.
8 years ago
Calamares CI 7c8a70c9a1 [dummypythonqt] Automatic merge of Transifex translations 8 years ago
Adriaan de Groot ad89dd7cc4 [interactiveterminal] Document config 8 years ago
Adriaan de Groot 051edb462f [packages] Add pisi package manager (based on some guesses) 8 years ago
Adriaan de Groot 533031b3ca [bootloader] print() does not log
- use the right logging method; print just vanishes.
8 years ago
Adriaan de Groot f869a0f263 [bootloader] Log the EFI fallback action 8 years ago
Adriaan de Groot 78108c5cda [bootloader] Allow skipping the EFI fallback 8 years ago
Adriaan de Groot aed904e3b4 Merge branch 'i897-timeout'
FIXES #897
8 years ago
Adriaan de Groot 9a7e766391 Merge branch 'i895-setroot-context'
FIXES #895
8 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.
8 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.
8 years ago
Adriaan de Groot c641f5dec6 [libcalamares] Implement object-style command line
- handle command: and timeout: entries
 - test for setting the values
8 years ago
Adriaan de Groot 72bac332be FIXUP document 8 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
8 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.
8 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.
8 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.
8 years ago
Adriaan de Groot 778feb50e8 [libcalamares] Additional convenience for doubles 8 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.
8 years ago
Adriaan de Groot d6731efdfd [packages] fix typo in docs 8 years ago
Adriaan de Groot 1d6dca062c [users] Make state of 'reuse password for root' available in globals. 8 years ago
Adriaan de Groot 26dfd56f6d [libcalamares] Additional convenience function extracting int 8 years ago
Adriaan de Groot 188a434a10 [dummycpp] more verbose debug log 8 years ago
Adriaan de Groot b828580464 Merge remote-tracking branch 'origin/simplify-plugin' 8 years ago
Adriaan de Groot 32b10f72e9 Merge branch 'i896-password-quality'
FIXES #896
8 years ago
Adriaan de Groot b0fe7b0682 i18n: apply some more tricks to make lupdate / transifex happy 8 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.
8 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.
8 years ago
Adriaan de Groot 354cb79cb1 [users] sample config and stub function for libpwquality 8 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
8 years ago
Adriaan de Groot eae52a3e65 CMake: build modules alphabetically 8 years ago
Adriaan de Groot 9a9c6da6db i18n: try to trick Transifex into recognizing these strings 8 years ago
Adriaan de Groot 9c9486bb78 [libcalamares] When ViewManager is destroyed, reset instance pointer 8 years ago
Adriaan de Groot 845986d48f [libcalamaresui] Mark virtual QObject destructors override 8 years ago
Adriaan de Groot 97fb83c743 [libcalamares] Change debug logging of how job name is derived 8 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.
8 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
8 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.
8 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.
8 years ago
Adriaan de Groot 0020fd885c [libcalamares] Remove unused extern declaration 8 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
8 years ago
Calamares CI 8f1f397c95 [dummypythonqt] Automatic merge of Transifex translations 8 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
8 years ago
Adriaan de Groot 15d4245074 Merge branch 'scripting' 8 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
8 years ago
Adriaan de Groot f01c7cda6b [libcalamares] Fix debug output classname 8 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
8 years ago
Adriaan de Groot 60f4dd7b3b [libcalamares] Improve explanation of failed processes. 8 years ago
Adriaan de Groot 8571fd800e [shellprocess] Make explicit that an error code has been ignored, by logging it. 8 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.
8 years ago
Adriaan de Groot 8bd40fdcd5 [shellprocess] Warn when there's no script 8 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.
8 years ago
Adriaan de Groot b0c4fbc1bb Clang: reduce warnings
- mark some things override
 - make conversion of 0 to flags explicit
8 years ago
Adriaan de Groot fdb3fc1ef8 [shellprocess] Execute the command list 8 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
8 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.
8 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.
8 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.
8 years ago
Adriaan de Groot 58252fc16d [partition] Handle missing requirements by disabling the module 8 years ago
Adriaan de Groot e3b7a2884b [partition] Relax check with UI-level warning message, too 8 years ago
Adriaan de Groot 637d6ad752 [partition] Find Esp partition with modern flags. 8 years ago
Adriaan de Groot 94b6c95c44 [partition] Introduce function for checking various flag-combinations for ESP boot. 8 years ago
Adriaan de Groot 3ff68bce98 [keyboard] Correct guessing for Arabic variants 8 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.
8 years ago
Adriaan de Groot a35a7b108f
Merge pull request #883 from agaida/hack-unpackfs
[unpackfs] skip error check when rm of tmp folder fails
8 years ago
Adriaan de Groot 7249b41e3e [keyboard] Explain table format, add more edge cases 8 years ago
Adriaan de Groot 0d56b9b9c5 Merge branch 'master' into i689-kayboard-layout 8 years ago
Adriaan de Groot 28d61c406e [bootloader] Improve description of *efiBootloaderId* option 8 years ago
Adriaan de Groot 2a0a2a26bc [umount] Don't raise when copying log file fails. 8 years ago
Adriaan de Groot 6f7b5a0510 [umount] Move module documentation into config file, fix wording
FIXES #831
8 years ago
Adriaan de Groot a7d7f3a83b [welcome] Make link to Calamares site https 8 years ago
Adriaan de Groot 308441ee3a Merge branch '3.1.x-stable' 8 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
8 years ago
Adriaan de Groot 5593be125f [calamares] Reduce font-related debug output on startup. 8 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.
8 years ago
Philip be650d7986 [initcpiocfg] search just for 'lvm2' in partition[fs] 8 years ago
Philip 5a83024698 [initcpiocfg] add 'lvm2' hook as needed 8 years ago
Andrius Štikonas 2027a5538e Fix propagation of new partition table to global storage. 8 years ago
Alf Gaida 784bbd3bc8 finally !must! never fail unhandled
but it does without help
8 years ago
Philip 1cffa9fafc [partition] Rename slots, to avoid recursion
- see also https://github.com/calamares/calamares/issues/880
- missed within 7ce52ecda7
8 years ago
Philip 8f32aad3fa [partition] Rename slots, to avoid recursion
- see also https://github.com/calamares/calamares/issues/880
- missed within 7ce52ecda7
8 years ago
Adriaan de Groot 03dd487fc2 Merge branch '3.1.x-stable' 8 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
8 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.
8 years ago
Adriaan de Groot dc255e161e [partition] Rename slots, to avoid recursion 8 years ago
Andrius Štikonas 806b84973a Convert CreatePartitionTableJob to KPMcore operation. 8 years ago
Andrius Štikonas 1b3ce39ffb Convert FormatPartitionJob to KPMcore's CreateFileSystemOperation. 8 years ago
Andrius Štikonas 638117efa0 Cleanup unnecessary kpmcore includes. 8 years ago
Adriaan de Groot 7ce52ecda7 [partition] Rename slots, to avoid recursion 8 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
8 years ago
Adriaan de Groot f8a53f9646 [libcalamares] Refactor explanation of process-job errors 8 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.
8 years ago
Adriaan de Groot 762ad54344 Documentation: change http links to GitHub to https 8 years ago
Adriaan de Groot c582ff0d6b Merge branch '3.1.x-stable' 8 years ago
Adriaan de Groot d42210eb93 Merge branch '3.1-pinebook' into 3.1.x-stable 8 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
8 years ago
Adriaan de Groot f2aeecf546 [plasmalnf] Improve screenshot view
- make screenies smaller
 - use view-preview to indicate no-screenshot-specified
8 years ago
Adriaan de Groot 10e71bab30 [plasmalnf] Add Breeze 'view-preview' icon for missing screenshots 8 years ago
Adriaan de Groot e73d54767d [plasmalnf] Expand explanation, drop CSS 8 years ago
Adriaan de Groot cf39dddbf3 [plasmalnf] Prevent duplicate widgets
- Only create widgets for themes once
 - Update visible texts as needed
8 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
8 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)
8 years ago
Andrius Štikonas a2e3af2b3d Require KPMcore 3.3 8 years ago
Adriaan de Groot 2db485bb33 [plasmalnf] Improve layout of theme widget 8 years ago
Adriaan de Groot 244919d6fe [plasmalnf] Add description to theme widget 8 years ago
Adriaan de Groot 55ed2ba4c0 [partition] Introduce convenience translation for progress. 8 years ago
Adriaan de Groot 5c4286eebf [partition] Switch to convenience function for MiB 8 years ago
Adriaan de Groot 38688bab47 [partition] code style (minor followup to #872) 8 years ago
Adriaan de Groot 0729bdd0be
Merge pull request #872 from stikonas/3.1.x-stable
Use KPMcore SetPartFlags operation.
8 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
8 years ago
Adriaan de Groot 755c0cba18 [plasmalnf] Prep-work for UI changes 8 years ago
Adriaan de Groot 11fc3e0507 [plasmalnf] minor documentation
- Code documentation
 - Add another broken example theme, as test for winnowing
8 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
8 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.
8 years ago
Andrius Štikonas 139f5a9e86 Use KPMcore SetPartFlags operation. 8 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
8 years ago
Adriaan de Groot ad69eda337 [plasmalnf] Complain again if poorly configured 8 years ago
Adriaan de Groot 98b9f67e39 [plasmalnf] Complain more loudly (and more often) when badly configured 8 years ago
Adriaan de Groot ee979d79ee Merge branch '3.1-pinebook' 8 years ago
Adriaan de Groot 02dfe51d55 [welcome] Improve error reporting from requirements checker 8 years ago
Adriaan de Groot e628ddfdbf [plasmalnf] Try to get back to the live user before changing themes 8 years ago
Adriaan de Groot b10b19e9ee [plasmalnf] C++ style and reduce includes 8 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
8 years ago