-
-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'flatpak:main' into systemhandler
- Loading branch information
Showing
129 changed files
with
4,576 additions
and
4,595 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,4 @@ | ||
# XDG Desktop Portal - Contributing Guide | ||
|
||
Before developing features or fixing bugs, please make sure you are have done | ||
the following: | ||
|
||
- Your code is not on the *main* branch of your fork | ||
- The code has been tested | ||
- All commit messages are properly formatted and commits squashed where | ||
appropriate | ||
- You have included updates to all appropriate documentation | ||
|
||
We use GitHub pull requests to review contributions. Please be kind and patient | ||
as code reviews can be long and minutious. | ||
|
||
## Development | ||
|
||
xdg-desktop-portal usually runs as a user session service, initialized on | ||
demand through D-Bus activation. It usually starts with the session though, | ||
as many desktop environments try to talk to xdg-desktop-portal on startup. | ||
xdg-desktop-portal initializes specific backends through D-Bus activation | ||
as well. | ||
|
||
### Building | ||
|
||
To build xdg-desktop-portal, first make sure you have the build dependencies | ||
installed through your distribution's package manager. With them installed, | ||
run: | ||
|
||
``` | ||
$ meson setup . _build | ||
$ meson compile -C _build | ||
``` | ||
|
||
Some distributions install portal configuration files in `/usr`, while Meson | ||
defaults to the prefix `/usr/local`. If the portal configuration files in your | ||
distribution are in `/usr/share/xdg-desktop-portal/portals`, re-configure | ||
Meson using `meson setup --reconfigure . _build --prefix /usr` and compile | ||
again. | ||
|
||
### Running | ||
|
||
xdg-desktop-portal needs to own the D-Bus name and replace the user session | ||
service that might already be running. To do so, run: | ||
|
||
``` | ||
$ _build/src/xdg-desktop-portal --replace | ||
``` | ||
|
||
You may need to restart backends after replacing xdg-desktop-portal (please | ||
replace `[name]` with the backend name, e.g. `gnome` or `kde` or `wlr`): | ||
|
||
``` | ||
$ systemctl --user restart xdg-desktop-portal-[name].service | ||
``` | ||
|
||
### Testing | ||
|
||
To execute the test suite present in xdg-desktop-portal, make sure you built it | ||
with `-Dlibportal=enabled`, and run: | ||
|
||
``` | ||
$ meson test -C _build | ||
``` | ||
|
||
The contribution guidelines have been moved to the online documentation: | ||
https://flatpak.github.io/xdg-desktop-portal/docs/contributing.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.