Adriaan de Groot
6fb2563c75
[unpackfs] Copy files when sourcefs = "file"
...
- Just use the existing rsync code, which can do both
files and directory trees.
- The existing code assumed we were always copying directories.
Now double-check beforehand.
2019-09-30 17:14:23 +02:00
Adriaan de Groot
27cdaba8b2
[unpackfs] Special-case file sources
2019-09-30 17:14:23 +02:00
Adriaan de Groot
7856c1a6a8
[unpackfs] Do more checks before doing any work
2019-09-30 17:14:23 +02:00
Adriaan de Groot
784bc5b86e
[unpackfs] Expand documentation
...
- comment out the squashfs example, since it's not readily
available even on developer systems
- add entries for the upcoming "file" type.
2019-09-30 17:14:23 +02:00
Adriaan de Groot
7ffe25fca0
[displaymanager] Document that TryExec can supplant executable
2019-09-30 15:40:44 +02:00
Adriaan de Groot
1beadee2a7
[displaymanager] Believe the .desktop file
...
- if a default DE is configured but the executable doesn't exist,
believe the .desktop file. Then use that, and warn if the
whole thing can not be found.
2019-09-30 15:38:25 +02:00
Adriaan de Groot
290a0698d8
[displaymanager] Add DE.find() which believes .desktop files
...
- for a DE entry which has a bad executable setting,
update the entry from the .desktop file using TryExec.
This assumes that the TryExec command is actually something
you might want to run.
2019-09-30 15:38:25 +02:00
Adriaan de Groot
fe33952733
[displaymanager] Document the internal functions for DE finding
...
- rename find_* to _search_* to make clear they're internal.
2019-09-30 15:38:25 +02:00
Adriaan de Groot
a3666cabe0
[displaymanager] Fix naming
...
- Having a global and a class-local function with the same name
that do very different things is confusing.
2019-09-30 12:41:05 +02:00
Adriaan de Groot
fb07757aab
[displaymanager] Document *defaultDesktopEnvironment*
...
- while the keys are mandatory, their meaning is entirely optional.
2019-09-30 12:33:42 +02:00
Adriaan de Groot
0510820594
[displaymanager] Document what the list of DE's is for
2019-09-30 12:22:14 +02:00
Calamares CI
ecb1128b61
i18n: [dummypythonqt] Automatic merge of Transifex translations
2019-09-30 10:34:12 +02:00
Adriaan de Groot
5d0a5c035d
Merge pull request #1243 from stikonas/master
...
QLatin1Literal->QLatin1String.
2019-09-30 10:30:02 +02:00
Adriaan de Groot
d2899d4bee
Merge branch 'issue-1247'
...
Look at the TryExec line, if it is there in the .desktop file
FIXES #1247
2019-09-25 13:06:39 +02:00
Adriaan de Groot
92ab0c1add
[displaymanager] Unify looking for executables
...
- use executable, and the result of looking up TryExec
- reduce chattiness again
2019-09-25 13:05:35 +02:00
Adriaan de Groot
0b81d2562b
[displaymanager] Be more chatty
2019-09-25 12:52:07 +02:00
Adriaan de Groot
f9e36b9c73
[displaymanager] Missing self
2019-09-25 12:41:58 +02:00
Adriaan de Groot
01cd95512f
[displaymanager] Check the TryExec key from the .desktop file
2019-09-25 12:41:37 +02:00
Adriaan de Groot
38369634df
[displaymanager] Find the .desktop file explicitly
2019-09-25 12:26:26 +02:00
Adriaan de Groot
4799e821d3
[locale] Reduce warnings, missing override
2019-09-23 11:25:18 +02:00
Adriaan de Groot
57bb9c16f4
[displaymanager] Also look for Wayland sessions
...
- Sessions can be X11-sessions (living in xsessions) or Wayland-
(living in wayland-sessions). Look in both places.
- Refactor code a little to make it nicer to read.
2019-09-23 10:55:59 +02:00
Andrius Štikonas
490c14d93d
QLatin1Literal->QLatin1String.
2019-09-21 20:44:33 +01:00
Harald Sitter
0e054f1246
[displaymanager] map plasma 5.17+ desktop environment
...
exec changed compared to earlier 5.x
2019-09-18 12:38:08 +02:00
Calamares CI
3bef83b152
i18n: [dummypythonqt] Automatic merge of Transifex translations
2019-09-15 21:51:51 +02:00
Adriaan de Groot
11d3f10e26
[locale] Dispose of waiting widget
...
- Do the async GeoIP checking in the async requirements-checking phase
- Do not return any requirements results -- we just need the async bit
- Drop the waiting widget, since it's not needed (done by the
requirements phase)
2019-09-10 14:18:47 +02:00
Adriaan de Groot
41ece863de
[locale] Create widgets when needed instead of at startup
...
- this blocks forever, since now the GeoIP lookup isn't done at all.
2019-09-10 06:19:20 -04:00
Adriaan de Groot
0a1dc77f9b
[locale] Hang on to GeoIP::Handler just once
...
- replace configuration settings by putting them in an object
- use unique_ptr to allow us to create one optionally.
2019-09-10 11:26:47 +02:00
Adriaan de Groot
d70d418d92
[locale] Refactor setting of LC entries
2019-09-07 17:02:59 +02:00
Adriaan de Groot
5cac3ac6ad
[locale] Apply coding style
2019-09-07 16:58:37 +02:00
Adriaan de Groot
0ee8427d5a
[locale] Remove old-style GeoIP configuration
2019-09-07 16:05:09 +02:00
Adriaan de Groot
5a24e45e3b
[locale] Factor out a simple lambda
...
- If this was handed to an algorithm it would make more sense
as a lambda
2019-09-07 15:58:56 +02:00
Adriaan de Groot
3093f635e2
[locale] Apply coding style
2019-09-07 15:48:22 +02:00
Adriaan de Groot
21dde80a65
[locale] Refactor button handling to plain methods
2019-09-07 15:47:12 +02:00
Adriaan de Groot
91f0509272
[locale] Refactor lambdas to plain methods
...
- Lengthy lambda's doing UI stuff -- that doesn't change --
are easier to read as plain methods.
2019-09-07 15:18:58 +02:00
Adriaan de Groot
782b469974
[locale] Move all the translation work to a single slot
2019-09-07 12:38:49 +02:00
Adriaan de Groot
a57a030ee2
[packagechooser] Massage the list view to be narrower
2019-09-05 06:41:06 -04:00
Adriaan de Groot
4259bc9d5d
[packagechooser] Also use screenshot from no-package-selected
2019-09-05 03:23:50 -04:00
Adriaan de Groot
52e72f4fb1
[welcome] Apply coding style
2019-09-05 03:23:28 -04:00
Adriaan de Groot
01c4383178
[packagechooser] Simplify parameters
...
- Just pass the no-package-selected item around.
2019-09-04 19:40:35 +02:00
Adriaan de Groot
996714dd06
[packagechooser] Use all translations for no-package-selected
...
- If there is an item with id "" (empty), it is used as the
"no-package-selected" placeholder text.
- Existing code iterated over the abstract model and used the
name and description at the time the model was set -- but
by getting the name and description from the model, only
a single string was obtained instead of the full range
of translations.
- Therefore, when arriving on the page, the "no-package-selected"
information was displayed from the translation that was active
when the model was set.
Instead, extend the non-abstract model so we can find the no-package-
selected item and pass that explicitly to the page.
FIXES #1241
2019-09-04 19:33:24 +02:00
Adriaan de Groot
019d1c36c6
[packagechooser] Load translated strings from config
...
- Apply the *labels* from the configuration file to the
visible strings (only the ViewStep name).
2019-09-02 15:29:00 +02:00
Adriaan de Groot
0eae72e10f
[packagechooser] Introduce translatable labels
...
- Since the package chooser might be used more than once, or for
more specific items than "Packages", introduce a way to provide
specific strings for display.
- The only string needed is the ViewStep name, since the item with
id "" can be used for the no-selection item.
2019-09-02 15:28:15 +02:00
Adriaan de Groot
9850e4b35b
[netinstall] Use the network-manager
...
- use asynchronousGet and keep the reply
- drop unused includes
- apply current coding style
2019-09-02 14:10:36 +02:00
Adriaan de Groot
543e2d34fc
[libcalamares] [locale] Remove unused includes
2019-09-02 12:02:43 +02:00
Adriaan de Groot
c7cbba3951
[welcome] Fix typo in tooltip
2019-08-30 22:54:28 +02:00
Adriaan de Groot
b685583060
Merge pull request #1226 from a-wai/fix-unpackfs-for-rootfs
...
[unpackfs] Enable to use "/" as a source
2019-08-29 10:25:32 -04:00
Adriaan de Groot
0aabc89449
[partition] [welcome] Simplify retranslation
2019-08-29 15:02:12 +02:00
Adriaan de Groot
535bf01475
[welcome] Refactor lambdas to full slots
...
- This helps give meaningful names to code chunks
- Gives clang-format something to work with
- Reduces indentation depth
I think this is a bit of a code-style opinion issue: big complicated
lambdas doing UI things just don't seem like a good idea.
2019-08-29 11:06:55 +02:00
Adriaan de Groot
fc5aa54cb2
[welcome] Fix code formatting
...
- the RETRANSLATE macro is a real challenge for astyle and clang-format
2019-08-29 11:01:02 +02:00
Adriaan de Groot
07bd22ba95
Merge pull request #1233 from bill-auger/patch-4
...
eliminate magic number in src/modules/welcome/WelcomePage.cpp
2019-08-29 04:46:18 -04:00