Commit Graph

1428 Commits

Author SHA1 Message Date
Alexander Larsson
8fdc60ed7a xdg-app-helper: Make /etc a real directory
This makes /etc a real directory, with required files like passwd and
symlinks to all the other files in usr/etc.

This is required because we need to make /etc/localtime an actual
symlink whose value depends on the host state.
2015-01-28 20:03:13 +01:00
Matthias Clasen
1e36721951 Fix a copy-paste error
Build the repo-update man page, not the repo-contents man page twice.
2015-01-28 09:00:27 -05:00
Alexander Larsson
654ab3405e Merge pull request #38 from matthiasclasen/repo-update
Separate out repo-updating command
2015-01-26 13:16:17 +01:00
Alexander Larsson
6cf3a9ecfe Merge pull request #39 from matthiasclasen/run-error
Don't leak an error
2015-01-26 13:15:34 +01:00
Matthias Clasen
45aabf06d9 Don't leak an ignored error
Runtime metadata is optional, so don't leak an error we get
when the file is not found. Properly ignore it by passing NULL
as the error.
2015-01-25 11:07:03 -05:00
Matthias Clasen
a4a25a4a64 Add some debug output to the run command
Show where the used applications and runtimes are located.
2015-01-24 22:20:22 -05:00
Matthias Clasen
6c2f2fafa1 Add completion for repo-update 2015-01-24 22:01:57 -05:00
Matthias Clasen
29151659ae Document repo-update 2015-01-24 21:54:55 -05:00
Matthias Clasen
dfde6c46b8 Separate out repo-updating command
Take the summary update out of build-export, and add it to
a new repo-update command instead.
2015-01-24 21:54:42 -05:00
Alexander Larsson
97747a3e53 Merge pull request #37 from matthiasclasen/user-option
Add a --system option to go with --user
2015-01-23 15:47:06 +01:00
Matthias Clasen
22f8740951 Some updates to the bash completion
Add the --system option and also --keep-ref for the uninstall
commands.
2015-01-23 08:23:08 -05:00
Matthias Clasen
9b5d630f8c Update the docs
Update all docs to include --system, and explain better what
the --user and --system options do for each command.
2015-01-23 08:15:08 -05:00
Alexander Larsson
0b19f58a6f Merge pull request #36 from matthiasclasen/completion-fix
Make completion work installed
2015-01-23 13:47:30 +01:00
Matthias Clasen
bd8b8232fc Redo list commands
Make it so that one can specify --user or --system to list
only items from one location, but if neither is specified,
both user and system items are listed.
2015-01-23 07:40:25 -05:00
Matthias Clasen
8328d851ad Add a --system option
This is a natural counterpart to --user with the opposite
meaning. In the future, we may start interpreting the absence
of either as 'operate on both'.
2015-01-23 06:19:20 -05:00
Matthias Clasen
47f0ff20cd Make completion work installed
I only tested this uninstalled, by directly sourcing the
completion file, obviously...
2015-01-23 06:07:18 -05:00
Alexander Larsson
d22f1d01e3 Fix another typo 2015-01-23 11:51:00 +01:00
Alexander Larsson
8336db2b14 Fix typo from last commit 2015-01-23 11:48:32 +01:00
Alexander Larsson
9547c1cde1 Merge pull request #35 from matthiasclasen/completion
Add bash completion
2015-01-23 09:13:56 +01:00
Matthias Clasen
b0d9a08bb1 Add bash completion 2015-01-23 00:52:20 -05:00
Alexander Larsson
353365990e Support extension points in apps and runtimes
If you put in the metadat file something like:

[Extension org.gnome.Platform.Timezones]
directory=share/zoneinfo
subdirectories=false

[Extension org.gnome.Platform.Locale]
directory=share/gnome-sdk/locale/
subdirectories=true

then /usr/share/zoneinfo will be overridden with
whatever is in the org.gnome.Platform.Timezones
runtime if that is installed, and any runtime
like org.gnome.Platfrom.Locale.* will be mounted
at the corresponding name under /usr/gnome-sdk/locale
2015-01-22 20:42:23 +01:00
Alexander Larsson
ca72c38b05 xdg-app-helper: Add support for -b to bind mount extra paths 2015-01-22 20:42:04 +01:00
Alexander Larsson
295a3e6049 Merge pull request #33 from hughsie/make-repo-contents-useful
Show the full reference in repo-contents when using --show-details
2015-01-22 12:05:43 +01:00
Richard Hughes
091ac2202d Show the full reference in repo-contents when using --show-details
It's useful to know if the ref is an application or a runtime, as each uses a
different command line command.
2015-01-22 11:01:15 +00:00
Alexander Larsson
71811240b0 Merge pull request #30 from matthiasclasen/list-updates
Add an --updates option to the repo-contents command, and
2015-01-22 10:55:19 +01:00
Matthias Clasen
f62277e5af Use libsoup to load summary via http
We disable gvfs in xdg-app, so we need to use libsoup explicitly.
This is hopefully only temporary, until ostree grows api for dealing
with summaries.
2015-01-21 15:23:14 -05:00
Matthias Clasen
f1b5b45af3 Factor out summary loading into a function
This will make it easier to bring in libsoup
2015-01-21 14:37:29 -05:00
Alexander Larsson
530f6dd7dd Merge pull request #29 from matthiasclasen/more-exports
Export gnome-shell search provider files
2015-01-21 10:08:42 +01:00
Alexander Larsson
b239a7b8d7 Merge pull request #31 from matthiasclasen/console-status
End the console status line after pull
2015-01-21 10:02:42 +01:00
Alexander Larsson
1e5c6b299d Merge pull request #32 from matthiasclasen/ghosts-in-list
Avoid ghosts in the list of installed apps
2015-01-21 10:02:16 +01:00
Matthias Clasen
e56ed22b66 Avoid ghosts in the list of installed apps
When we run a system app, we create the org.foo.App/data directory
in the user location. This was causing the app to show up in the
list of user apps, when not using --show-details. Avoid this by
always listing full references, and only hiding the arch and branch
information without --show-details.
2015-01-20 23:31:16 -05:00
Matthias Clasen
d357c1fee1 End the console status line after pull
Failure to do so causes the next shell prompt to appear in the
same line as the status, which looks broken.
2015-01-20 23:07:21 -05:00
Matthias Clasen
56204ac75b Initialize a variable
Otherwise we crash trying to free it when it leaves scope.
2015-01-20 22:42:55 -05:00
Matthias Clasen
ec6fa6284d repo-contents: Use ostree summary
Load the OSTree summary file for the remote repo, and show its
contents, if available. This gives us a listing of the refs that
are available in the remote repository, regardless of whether
they are represented in the local repo.
2015-01-20 21:16:20 -05:00
Matthias Clasen
3a19cff34f build-export: Regenerate summary for the repo
Summaries are the ostree mechanism to learn about available
branches (ie in our case, applications and runtimes) in
remote repositories. Therefore, we should generate summaries
for all our repositories.
2015-01-20 21:16:20 -05:00
Matthias Clasen
8f67d46d7b Document the --updates option 2015-01-20 21:16:20 -05:00
Matthias Clasen
04a15f34b0 Add an --updates option
When --updates is given to repo-contents, only list
apps and runtimes for which the ref points at a commit
that is different from the currently deployed one, indicating
that there is an update available in the local repo.
2015-01-20 21:09:44 -05:00
Matthias Clasen
853c3ccbf5 Export gnome-shell search provider files
This is meant as a generic extension point that can be used
by 3rd party applications, so we should export these files.
They are needed outside the sandbox, since search is a way
to launch applications.
2015-01-20 12:42:13 -05:00
Alexander Larsson
e6e7086188 Merge pull request #28 from matthiasclasen/rename-repo
Change terminology from repo to remote
2015-01-20 08:51:32 +01:00
Alexander Larsson
90620653cb Merge pull request #27 from matthiasclasen/build-init-name
Drop the unused --name option for build-init
2015-01-20 08:51:03 +01:00
Matthias Clasen
cdc13dd25c Change terminology from 'repo' to 'remote'
The add/delete/list-repo commands are renamed to add/delete/list-remote,
to align our terminology with ostree and git.
2015-01-19 20:16:00 -05:00
Matthias Clasen
35516d0314 Drop the unused --name option for build-init
It is not used at all.
2015-01-19 19:58:20 -05:00
Matthias Clasen
7dfd383c96 Drop the unused --name option for build-init
It is not used at all.
2015-01-19 19:56:56 -05:00
Alexander Larsson
1c0a12cea1 xdg-app-helper: If no home, make one in /var and use.
This allows us to use standard locations for storing per-app data
even if there is no homedir in the app.
2015-01-19 16:33:40 +01:00
Alexander Larsson
1407f53be3 xdg-app-helper: Always set the right gid on created files. 2015-01-19 16:33:40 +01:00
Alexander Larsson
6fdb7d3b5a Merge pull request #26 from matthiasclasen/wayland-doc
Add wayland key to the docs
2015-01-19 15:20:02 +01:00
Matthias Clasen
dadf3c2109 Add wayland key to the docs 2015-01-19 07:22:25 -05:00
Alexander Larsson
deab96c8fb Update exports on uninstall too
This means we remove dangling links and re-run triggers.
2015-01-19 12:12:30 +01:00
Giovanni Campagna
626fdf971b Set GI_TYPELIB_PATH to include /self
This allows the app to load bundled GI typelibs without special
hacks.
2015-01-19 11:52:13 +01:00
Alexander Larsson
bf7fa43431 Merge pull request #21 from matthiasclasen/uninstall
Uninstall commands
2015-01-19 11:50:33 +01:00