Commit Graph

4621 Commits

Author SHA1 Message Date
Matthias Clasen
d57ead8acd remote-info: Show license information
Keep in sync with the info command.

Closes: #2521
Approved by: mwleeds
2019-01-09 05:20:13 +00:00
Matthias Clasen
6161a43f97 Add license to the appdata fields we extract
This was requested before, so might as well add
it at the same time.

Closes: #2521
Approved by: mwleeds
2019-01-09 05:20:13 +00:00
Matthias Clasen
7914fac2fd Merge pull request #2546 from mwleeds/readme-tweaks
README: Tweak a few things
2019-01-08 23:06:19 -05:00
Matthew Leeds
3cf05140d6 fixup! README: Tweak a few things 2019-01-08 14:50:46 -08:00
Matthew Leeds
bc7063a1b8 README: Tweak a few things 2019-01-08 14:20:58 -08:00
Matthias Clasen
60b63bdb89 README: Add a link to distibution hints
I've started a wiki page for this.

Closes: #2545
Approved by: mwleeds
2019-01-08 22:04:39 +00:00
Matthias Clasen
43440454af README: some Formatting tweaks
Fix capitalization of Flatpak in a few places,
and make directory names appear as such.

Closes: #2545
Approved by: mwleeds
2019-01-08 22:04:39 +00:00
Matthew Leeds
d157d9ea18 list: Reserve -a to mean --all
When the --app-runtime option was added to the list command, -a was made
its shortcut, but this already belongs to --all, so return it to the
latter.

Closes: #2543
Approved by: matthiasclasen
2019-01-08 12:29:14 +00:00
Matthias Clasen
f2c5747849 Simplify flatpak_option_context_parse
Express more directly what we want to ensure here:
Exactly one of these flags must be set.

Closes: #2510
Approved by: mwleeds
2019-01-08 07:04:54 +00:00
Matthias Clasen
6e11cf85b1 Make progress bar faint
The solid blocks are very prominent when used
at full intensity. Lets tone them down.

Closes: #2469
Approved by: mwleeds
2019-01-08 06:08:56 +00:00
Matthias Clasen
5c89d2582a Merge pull request #2506 from matthiasclasen/installation-completion
Add completion for --installation=
2019-01-07 21:51:45 -05:00
Matthias Clasen
084b518c4e Add completion for --installation=
Complete all the things.
2019-01-07 21:49:13 -05:00
Matthias Clasen
9f06ec5775 Fix coverage for system helper and portal
These services were not generating coverage data
because they always get ended by GDBus raising
SIGTERM when the bus goes away. Prevent this by
telling GDBus not to do that, and let the services
exit regularly, on their own terms.

This makes the system helper code show up in the
coverage statistics.

Closes: #2530
Approved by: matthiasclasen
2019-01-08 02:10:35 +00:00
Matthias Clasen
9884b056fd Fully translate a prompt
We were not translating the strings 'user' and 'system'
here, although we should.

Closes: #1984

Closes: #2520
Approved by: matthiasclasen
2019-01-08 01:56:25 +00:00
Matthias Clasen
bb17ea5786 remote-ls: Ellipsize the same columns as list
The columns show the same content, so we should
treat them the same for sizing.

Closes: #2497
Approved by: matthiasclasen
2019-01-08 01:40:54 +00:00
Matthias Clasen
1214390c8a list: Ellipsize options too
The options column shows eol messages, which are long.

Closes: #2497
Approved by: matthiasclasen
2019-01-08 01:40:54 +00:00
Matthias Clasen
3548184020 Merge pull request #2522 from matthiasclasen/doc-cosmetics
Improve appdata getter docs
2019-01-07 20:33:46 -05:00
Matthias Clasen
cefbbd6e59 table printer: Report actual width
When we can't shrink all the way to the desired
number of columns, report the actual width we've
achieved.

Closes: #2496
Approved by: matthiasclasen
2019-01-08 01:11:49 +00:00
Matthias Clasen
f4e42ec071 table printer: Be more careful with shrink
Ensure that 0 <= shrink[i] <= widths[i],
to avoid bad situations.

Closes: #2496
Approved by: matthiasclasen
2019-01-08 01:11:49 +00:00
Matthias Clasen
a133041bdd table printer: Don't loop forever
After ellipsizing nicely, we try to spread the extra
shortfall around, but we need to stop when we've
exhausted the available shrinkage and give up.

Some tables are just too wide.

This was showing up as an infinite loop with

flatpak remote-ls --columns=app,opt flathub

Closes: #2496
Approved by: matthiasclasen
2019-01-08 01:11:49 +00:00
Matthias Clasen
88d25970c7 Handle app-less instances better
FlatpakInstance was not dealing well with sandboxes
that don't have an application. In this case, the
metadata does not have an Application group, but
a Runtime group instead.

Closes: #2482
Approved by: matthiasclasen
2019-01-08 00:56:09 +00:00
Matthias Clasen
ee072c24a4 Improve warning handling a bit
We were printing the full program name as prefix for warnings,
which does not really help with readability. Lets just use
the single-char 'F:' prefix for all messages, regardless of
log level.

Closes: #2472
Approved by: matthiasclasen
2019-01-08 00:40:57 +00:00
Matthias Clasen
2c794c5d82 Don't let g_warnings disrupt us
Some code paths deep inside flatpak-dir.c use
g_warning to report non-fatal errors. This disrupts
our table formatting without showing up visibly
in the output (since it gets wiped out by the next
redraw). Improve things by installing our own
message handler and showing these messages properly
inside our table, like other errors.

Closes: #2472
Approved by: matthiasclasen
2019-01-08 00:40:57 +00:00
Matthias Clasen
6cac94e706 Simplify profile.d handling
There is no need to generate this script when the
only variable part in it is a comment. Reword the
comment.

Closes: #2122
Approved by: matthiasclasen
2019-01-08 00:26:17 +00:00
Matthias Clasen
30c2919624 profile: Use flatpak --installations
This ensures that we end up with the same installations
in XDG_DATA_DIRS, regardless which way this variable
gets set.

Closes: #2122
Approved by: matthiasclasen
2019-01-08 00:26:17 +00:00
Matthias Clasen
880c613b47 Remove the dbus service conf
This has been superseded by the environment generator.

Closes: #2122
Approved by: matthiasclasen
2019-01-08 00:26:17 +00:00
Matthias Clasen
adb288d19a Add an environment generator
This is a script that program that gets run by systemd
before every user service to set up the environment.

See systemd.environment-generator(7) for details.

Closes: #2122
Approved by: matthiasclasen
2019-01-08 00:26:17 +00:00
Matthias Clasen
4f915388a5 Document --installations
Closes: #2122
Approved by: matthiasclasen
2019-01-08 00:26:17 +00:00
Bastien Nocera
b3c785ee09 Add a --installations option
Similar to the --gl-drivers option, print the installation
paths for all system installations, including custom
installations defined in ${sysconfdir}/flatpak/installations.d/

Closes: #2122
Approved by: matthiasclasen
2019-01-08 00:26:17 +00:00
Matthias Clasen
3853ee49bd Add some internal docs
It helps for clarity to write down the expected behavior
of these flags, even if they are not public api.

Closes: #2512
Approved by: matthiasclasen
2019-01-08 00:11:41 +00:00
Matthias Clasen
835b311b61 uninstall: Present the choices clearly
A choice of 1) system 2) system 3) system is not
very useful. Show the refs.

Closes: #2492
Approved by: matthiasclasen
2019-01-07 23:57:09 +00:00
Matthias Clasen
86f3077be3 Nicer formatting for many choices
'flatpak install sdk' offers me 34 choices, so double digits
seem very realistic here. Make the numbers line up in this
case.

Closes: #2476
Approved by: matthiasclasen
2019-01-07 23:42:19 +00:00
Victor Kukshiev
b335ea8d49 update russian translation - part 3.1
Closes: #2465
Approved by: matthiasclasen
2019-01-07 23:25:38 +00:00
Victor Kukshiev
a2cecfb638 update russian translation - part 3
Closes: #2465
Approved by: matthiasclasen
2019-01-07 23:25:38 +00:00
Victor Kukshiev
8837325f85 oops
Closes: #2465
Approved by: matthiasclasen
2019-01-07 23:25:38 +00:00
Victor Kukshiev
269521ba5b update russian translation - part 2
Closes: #2465
Approved by: matthiasclasen
2019-01-07 23:25:38 +00:00
Victor Kukshiev
160f0613be update russian translation
Closes: #2465
Approved by: matthiasclasen
2019-01-07 23:25:38 +00:00
Matthias Clasen
e273bfec5f list, remote-ls: Avoid a stray newline
If we have nothing to print, don't print a stray newline.

Closes: #2461
Approved by: matthiasclasen
2019-01-07 23:10:51 +00:00
Matthias Clasen
4fad2de113 Generate a single-file api reference
Add a rule to generate a single-file html version of the
libflatpak api reference, for integration into readthedocs.

This is pretty plain, but serves the purpose.

Closes: #2526
Approved by: matthiasclasen
2019-01-07 22:56:43 +00:00
Matthias Clasen
efcf48f295 Rename library docs main xml file
We already have a flatpak-docs.xml file one level up.
This can only lead to confusion.

Closes: #2526
Approved by: matthiasclasen
2019-01-07 22:56:43 +00:00
Kukuh Syafaat
0fff275685 Update Indonesian translation
Closes: #2539
Approved by: matthiasclasen
2019-01-05 18:36:58 +00:00
Matthew Leeds
dcf207b293 dir: Fix a couple typos 2019-01-04 13:02:48 -08:00
Matthias Clasen
7c79fcc197 build-export: Document --end-of-life
This option was added without documentation.

Closes: #2524
Approved by: mwleeds
2019-01-04 19:25:32 +00:00
Matthias Clasen
e4dd8b3e11 Be stricter about installation IDs
Avoid unnecessary complications from accepting installation
IDs which won't work well on the commandline or in filenames.

Closes: #2514
Approved by: mwleeds
2019-01-04 19:13:49 +00:00
Matthias Clasen
8b3bac05f8 info: Don't format size when poking at details
When the -s option is used, it is likely that
the result is getting screenscraped and reparsed.

Make that easier by producing a plain number in
this case.

Closes: #2536
Approved by: mwleeds
2019-01-04 05:50:23 +00:00
Matthias Clasen
4efef1cebd info: Rename a variable for clarity
Closes: #2536
Approved by: mwleeds
2019-01-04 05:50:23 +00:00
Matthew Leeds
5238dd4f4b doc: Update wording for verbose options
This more closely matches the recently changed --help output for these
options, and distinguishes them from the options that only print some
information and exit.

Closes: #2537
Approved by: matthiasclasen
2019-01-04 03:53:19 +00:00
Matthias Clasen
d9982d8550 Improve handling of FLATPAK_BUILTIN_FLAG_ONE_DIR
Error out for all combinations of options that specify
more than one installations.

This was showing up e.g. with

flatpak config --installation=extra --system --get languages

Closes: #2511
Approved by: mwleeds
2019-01-03 23:05:31 +00:00
Matthias Clasen
c39ceac02e build-commit-from: Make docs match reality
Move the -s short option from --src-repo to --subject,
as the docs say. This makes more sense, to go with -b
for --body.

Closes: #2527
Approved by: mwleeds
2019-01-03 22:52:51 +00:00
Matthias Clasen
5bb7d9aec6 docs: Small improvements
Make it clear that flatpak(1) only lists global options,
and individual commands have their own.

Add a reference to flatpak-installation(5)

Closes: #2513
Approved by: mwleeds
2019-01-03 22:38:55 +00:00