Adding upstream version 48.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
This commit is contained in:
parent
0d8723e422
commit
1fcdbd5df9
1059 changed files with 623842 additions and 0 deletions
23
.editorconfig
Normal file
23
.editorconfig
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
end_of_line = lf
|
||||||
|
|
||||||
|
indent_style = space
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
[*.js]
|
||||||
|
indent_size = 4
|
||||||
|
|
||||||
|
[*.[ch]]
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.gresource.xml]
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.ui]
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[meson.build]
|
||||||
|
indent_size = 2
|
5
.eslintrc.yml
Normal file
5
.eslintrc.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
extends:
|
||||||
|
- ./lint/eslintrc-gjs.yml
|
||||||
|
- ./lint/eslintrc-shell.yml
|
||||||
|
parserOptions:
|
||||||
|
sourceType: module
|
10
.gitignore
vendored
Normal file
10
.gitignore
vendored
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
data/.osk-layout-workbench
|
||||||
|
po/gnome-shell.pot
|
||||||
|
subprojects/gvc
|
||||||
|
subprojects/jasmine-gjs
|
||||||
|
*~
|
||||||
|
*.patch
|
||||||
|
*.sw?
|
||||||
|
.buildconfig
|
||||||
|
.eslintcache
|
||||||
|
.vscode
|
334
.gitlab-ci.yml
Normal file
334
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,334 @@
|
||||||
|
include:
|
||||||
|
- project: 'GNOME/citemplates'
|
||||||
|
file: 'templates/default-rules.yml'
|
||||||
|
- project: 'GNOME/citemplates'
|
||||||
|
file: 'flatpak/flatpak_ci_initiative.yml'
|
||||||
|
- project: 'Infrastructure/freedesktop-ci-templates'
|
||||||
|
file: 'templates/fedora.yml'
|
||||||
|
ref: '057b052e682d8e5a20c1eb2dd60d5b87d2b56856'
|
||||||
|
- project: 'Infrastructure/freedesktop-ci-templates'
|
||||||
|
file: 'templates/ci-fairy.yml'
|
||||||
|
ref: 'bc70242ffb8402243e934659ecc1a2d1c89eca2b'
|
||||||
|
- component: gitlab.gnome.org/GNOME/citemplates/release-service@master
|
||||||
|
inputs:
|
||||||
|
job-stage: deploy
|
||||||
|
dist-job-name: "dist-tarball"
|
||||||
|
tarball-artifact-path: $TARBALL_ARTIFACT_PATH
|
||||||
|
- component: gitlab.gnome.org/GNOME/citemplates/gnomeos-build-sysext@1.0.0-alpha.1
|
||||||
|
inputs:
|
||||||
|
meson-options:
|
||||||
|
-Dextensions_app=false
|
||||||
|
-Dextensions-tool:bash_completion=disabled
|
||||||
|
|
||||||
|
build-sysext:
|
||||||
|
tags:
|
||||||
|
- x86_64_v3
|
||||||
|
before_script:
|
||||||
|
- .gitlab-ci/install-gnomeos-sysext-dependencies.sh $CI_PROJECT_DIR/extension
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- pre-review
|
||||||
|
- prep
|
||||||
|
- review
|
||||||
|
- build
|
||||||
|
- test
|
||||||
|
- analyze
|
||||||
|
- docs
|
||||||
|
- deploy
|
||||||
|
|
||||||
|
default:
|
||||||
|
image: $MUTTER_CI_IMAGE
|
||||||
|
|
||||||
|
variables:
|
||||||
|
MUTTER_CI_IMAGE: registry.gitlab.gnome.org/gnome/mutter/fedora/42:x86_64-2025-03-31.0
|
||||||
|
FDO_UPSTREAM_REPO: GNOME/gnome-shell
|
||||||
|
BUNDLE: "extensions-git.flatpak"
|
||||||
|
LINT_LOG: "eslint-report.xml"
|
||||||
|
LINT_MR_LOG: "eslint-mr-report.xml"
|
||||||
|
TARBALL_ARTIFACT_PATH: build/meson-dist/$CI_PROJECT_NAME-$CI_COMMIT_TAG.tar.xz
|
||||||
|
|
||||||
|
.pipeline-guard:
|
||||||
|
rules:
|
||||||
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
||||||
|
- if: '$CI_COMMIT_TAG'
|
||||||
|
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
||||||
|
- if: '$CI_COMMIT_BRANCH =~ /^gnome-[0-9-]+$/'
|
||||||
|
- when: 'manual'
|
||||||
|
|
||||||
|
.gnome-shell.fedora:
|
||||||
|
variables:
|
||||||
|
FDO_DISTRIBUTION_VERSION: 42
|
||||||
|
FDO_DISTRIBUTION_TAG: '2025-04-01.0'
|
||||||
|
FDO_DISTRIBUTION_PACKAGES:
|
||||||
|
gjs
|
||||||
|
nodejs
|
||||||
|
npm
|
||||||
|
meson
|
||||||
|
git
|
||||||
|
'pkgconfig(gobject-introspection-1.0)'
|
||||||
|
'pkgconfig(gio-2.0)'
|
||||||
|
'pkgconfig(gio-unix-2.0)'
|
||||||
|
'pkgconfig(gnome-autoar-0)'
|
||||||
|
'pkgconfig(json-glib-1.0)'
|
||||||
|
FDO_DISTRIBUTION_EXEC: |
|
||||||
|
# For static analysis with eslint
|
||||||
|
npm install -g eslint@^8.0.0 eslint-plugin-jsdoc@^46.0.0 &&
|
||||||
|
|
||||||
|
./.gitlab-ci/install-meson-project.sh \
|
||||||
|
https://gitlab.gnome.org/World/javascript/gjs-ci-tools.git \
|
||||||
|
main &&
|
||||||
|
|
||||||
|
./.gitlab-ci/install-meson-project.sh \
|
||||||
|
--subdir subprojects/extensions-tool/ \
|
||||||
|
--prepare ./generate-translations.sh \
|
||||||
|
-Dman=false \
|
||||||
|
https://gitlab.gnome.org/GNOME/gnome-shell.git \
|
||||||
|
main
|
||||||
|
|
||||||
|
check-commit-log:
|
||||||
|
extends:
|
||||||
|
- .fdo.ci-fairy
|
||||||
|
stage: pre-review
|
||||||
|
variables:
|
||||||
|
GIT_DEPTH: "100"
|
||||||
|
script:
|
||||||
|
- if [[ x"$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" != "x" ]] ;
|
||||||
|
then
|
||||||
|
ci-fairy check-commits --junit-xml=commit-message-junit-report.xml ;
|
||||||
|
else
|
||||||
|
echo "Not a merge request" ;
|
||||||
|
fi
|
||||||
|
rules:
|
||||||
|
- !reference [.pipeline-guard, rules]
|
||||||
|
artifacts:
|
||||||
|
expire_in: 1 week
|
||||||
|
paths:
|
||||||
|
- commit-message-junit-report.xml
|
||||||
|
reports:
|
||||||
|
junit: commit-message-junit-report.xml
|
||||||
|
|
||||||
|
check-merge-request:
|
||||||
|
extends:
|
||||||
|
- .fdo.ci-fairy
|
||||||
|
stage: pre-review
|
||||||
|
script:
|
||||||
|
- if [[ x"$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" != "x" ]] ;
|
||||||
|
then
|
||||||
|
ci-fairy check-merge-request --require-allow-collaboration --junit-xml=check-merge-request-report.xml ;
|
||||||
|
else
|
||||||
|
echo "Not a merge request" ;
|
||||||
|
fi
|
||||||
|
rules:
|
||||||
|
- !reference [.pipeline-guard, rules]
|
||||||
|
artifacts:
|
||||||
|
expire_in: 1 week
|
||||||
|
paths:
|
||||||
|
- check-merge-request-report.xml
|
||||||
|
reports:
|
||||||
|
junit: check-merge-request-report.xml
|
||||||
|
|
||||||
|
build-fedora-container:
|
||||||
|
extends:
|
||||||
|
- .fdo.container-build@fedora@x86_64
|
||||||
|
- .gnome-shell.fedora
|
||||||
|
stage: prep
|
||||||
|
|
||||||
|
js-check:
|
||||||
|
extends:
|
||||||
|
- .fdo.distribution-image@fedora
|
||||||
|
- .gnome-shell.fedora
|
||||||
|
stage: review
|
||||||
|
script:
|
||||||
|
- gjs-check-syntax
|
||||||
|
artifacts:
|
||||||
|
reports:
|
||||||
|
junit: gjs-check-syntax.junit.xml
|
||||||
|
|
||||||
|
eslint:
|
||||||
|
extends:
|
||||||
|
- .fdo.distribution-image@fedora
|
||||||
|
- .gnome-shell.fedora
|
||||||
|
stage: review
|
||||||
|
script:
|
||||||
|
- export NODE_PATH=$(npm root -g)
|
||||||
|
- ./.gitlab-ci/run-eslint --output-file ${LINT_LOG} --format junit --stdout
|
||||||
|
artifacts:
|
||||||
|
reports:
|
||||||
|
junit: ${LINT_LOG}
|
||||||
|
when: always
|
||||||
|
|
||||||
|
eslint-doc:
|
||||||
|
extends:
|
||||||
|
- .fdo.distribution-image@fedora
|
||||||
|
- .gnome-shell.fedora
|
||||||
|
stage: review
|
||||||
|
script:
|
||||||
|
- export NODE_PATH=$(npm root -g)
|
||||||
|
- ./.gitlab-ci/eslint-coding-style.sh
|
||||||
|
rules:
|
||||||
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
||||||
|
changes:
|
||||||
|
- HACKING.md
|
||||||
|
- .eslintrc.yml
|
||||||
|
- lint/*
|
||||||
|
|
||||||
|
potfile-c-check:
|
||||||
|
extends:
|
||||||
|
- .fdo.distribution-image@fedora
|
||||||
|
- .gnome-shell.fedora
|
||||||
|
stage: review
|
||||||
|
script:
|
||||||
|
- ./.gitlab-ci/check-potfiles.sh
|
||||||
|
|
||||||
|
potfile-js-check:
|
||||||
|
extends:
|
||||||
|
- .fdo.distribution-image@fedora
|
||||||
|
- .gnome-shell.fedora
|
||||||
|
stage: review
|
||||||
|
script:
|
||||||
|
- gjs-check-potfiles
|
||||||
|
artifacts:
|
||||||
|
reports:
|
||||||
|
junit: gjs-check-potfiles.junit.xml
|
||||||
|
|
||||||
|
build:
|
||||||
|
stage: build
|
||||||
|
needs: ["check-commit-log"]
|
||||||
|
before_script:
|
||||||
|
- .gitlab-ci/checkout-mutter.sh
|
||||||
|
- meson mutter mutter/build --prefix=/usr
|
||||||
|
- sudo meson install -C mutter/build
|
||||||
|
script:
|
||||||
|
- meson setup . build -Dbuildtype=debugoptimized -Dman=false -Dgtk_doc=true --werror --fatal-meson-warnings
|
||||||
|
- meson compile -C build
|
||||||
|
- sudo meson install -C build
|
||||||
|
artifacts:
|
||||||
|
expire_in: 1 day
|
||||||
|
paths:
|
||||||
|
- mutter
|
||||||
|
- build
|
||||||
|
- subprojects/gvc
|
||||||
|
- subprojects/jasmine-gjs
|
||||||
|
|
||||||
|
test:
|
||||||
|
stage: test
|
||||||
|
needs: ["build"]
|
||||||
|
variables:
|
||||||
|
XDG_RUNTIME_DIR: "$CI_PROJECT_DIR/runtime-dir"
|
||||||
|
NO_AT_BRIDGE: "1"
|
||||||
|
before_script:
|
||||||
|
- sudo meson install -C mutter/build
|
||||||
|
- mkdir -m 700 $XDG_RUNTIME_DIR
|
||||||
|
- mkdir -m 1777 /tmp/.X11-unix
|
||||||
|
script:
|
||||||
|
- dbus-run-session -- meson test -C build --no-rebuild --timeout-multiplier 5
|
||||||
|
artifacts:
|
||||||
|
expire_in: 1 day
|
||||||
|
paths:
|
||||||
|
- build/meson-logs/testlog.txt
|
||||||
|
reports:
|
||||||
|
junit: build/meson-logs/testlog.junit.xml
|
||||||
|
when: on_failure
|
||||||
|
|
||||||
|
test-coverity:
|
||||||
|
rules:
|
||||||
|
- if: '$CI_PIPELINE_SOURCE == "schedule" && $GNOME_SHELL_SCHEDULED_JOB == "coverity"'
|
||||||
|
when: always
|
||||||
|
- when: manual
|
||||||
|
needs: ["build"]
|
||||||
|
stage: analyze
|
||||||
|
allow_failure: true
|
||||||
|
before_script:
|
||||||
|
- sudo meson install -C mutter/build
|
||||||
|
script:
|
||||||
|
- .gitlab-ci/download-coverity-tarball.sh
|
||||||
|
- CC=clang meson coverity-build -Dman=false
|
||||||
|
- ./coverity/cov-analysis-linux64-*/bin/cov-build --fs-capture-search js --dir cov-int meson compile -C coverity-build
|
||||||
|
- tar czf cov-int.tar.gz cov-int
|
||||||
|
- curl https://scan.coverity.com/builds?project=GNOME+Shell
|
||||||
|
--form token=$COVERITY_TOKEN --form email=carlosg@gnome.org
|
||||||
|
--form file=@cov-int.tar.gz --form version="`git describe --tags`"
|
||||||
|
--form description="GitLab CI build"
|
||||||
|
cache:
|
||||||
|
key: coverity-tarball
|
||||||
|
paths:
|
||||||
|
- coverity
|
||||||
|
|
||||||
|
flatpak:
|
||||||
|
stage: build
|
||||||
|
needs: ["check-commit-log"]
|
||||||
|
variables:
|
||||||
|
SUBPROJECT: "subprojects/extensions-app"
|
||||||
|
# Your manifest path
|
||||||
|
MANIFEST_PATH: "$SUBPROJECT/build-aux/flatpak/org.gnome.Extensions.json"
|
||||||
|
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
|
||||||
|
FLATPAK_MODULE: "gnome-extensions-app"
|
||||||
|
APP_ID: "org.gnome.Extensions.Devel"
|
||||||
|
extends: .flatpak
|
||||||
|
|
||||||
|
nightly:
|
||||||
|
extends: '.publish_nightly'
|
||||||
|
needs:
|
||||||
|
- flatpak
|
||||||
|
|
||||||
|
dist:
|
||||||
|
variables:
|
||||||
|
XDG_RUNTIME_DIR: "$CI_PROJECT_DIR/runtime-dir"
|
||||||
|
NO_AT_BRIDGE: "1"
|
||||||
|
stage: deploy
|
||||||
|
needs: ["build"]
|
||||||
|
before_script:
|
||||||
|
- sudo meson install -C mutter/build
|
||||||
|
- mkdir -m 700 $XDG_RUNTIME_DIR
|
||||||
|
- mkdir -m 1777 /tmp/.X11-unix
|
||||||
|
script:
|
||||||
|
- dbus-run-session meson dist -C build --include-subprojects
|
||||||
|
rules:
|
||||||
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
||||||
|
changes:
|
||||||
|
- "**/meson.build"
|
||||||
|
- meson/*
|
||||||
|
|
||||||
|
dist-tarball:
|
||||||
|
extends: dist
|
||||||
|
needs:
|
||||||
|
- build
|
||||||
|
artifacts:
|
||||||
|
expose_as: 'Get tarball here'
|
||||||
|
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
||||||
|
when: always
|
||||||
|
paths:
|
||||||
|
- $TARBALL_ARTIFACT_PATH
|
||||||
|
rules:
|
||||||
|
- if: '$CI_COMMIT_TAG'
|
||||||
|
|
||||||
|
reference:
|
||||||
|
stage: docs
|
||||||
|
needs: ["build"]
|
||||||
|
script:
|
||||||
|
- mkdir -p reference/
|
||||||
|
- mv build/docs/reference/{shell/shell,st/st} reference/
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- reference
|
||||||
|
|
||||||
|
pages:
|
||||||
|
stage: deploy
|
||||||
|
needs: ['reference']
|
||||||
|
script:
|
||||||
|
- mv reference/ public/
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- public
|
||||||
|
rules:
|
||||||
|
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PROJECT_NAMESPACE == "GNOME"'
|
||||||
|
|
||||||
|
build-toolbox:
|
||||||
|
image: quay.io/freedesktop.org/ci-templates:container-build-base-2021-07-29.0
|
||||||
|
stage: deploy
|
||||||
|
needs: []
|
||||||
|
script:
|
||||||
|
- .gitlab-ci/build-toolbox-image.sh $MUTTER_CI_IMAGE
|
||||||
|
rules:
|
||||||
|
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PROJECT_NAMESPACE == "GNOME"'
|
||||||
|
- if: '$CI_COMMIT_BRANCH =~ /^gnome-[0-9-]+$/ && $CI_PROJECT_NAMESPACE == "GNOME"'
|
99
.gitlab-ci/build-toolbox-image.sh
Executable file
99
.gitlab-ci/build-toolbox-image.sh
Executable file
|
@ -0,0 +1,99 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# vi: sw=2 ts=4
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
die() {
|
||||||
|
echo "$@" >&2
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
check_image_base() {
|
||||||
|
local base=$(
|
||||||
|
skopeo inspect docker://$TOOLBOX_IMAGE 2>/dev/null |
|
||||||
|
jq -r '.Labels["org.opencontainers.image.base.name"]')
|
||||||
|
[[ "$base" == "$MUTTER_CI_IMAGE" ]]
|
||||||
|
}
|
||||||
|
|
||||||
|
build_container() {
|
||||||
|
echo Building $TOOLBOX_IMAGE from $MUTTER_CI_IMAGE
|
||||||
|
|
||||||
|
export BUILDAH_ISOLATION=chroot
|
||||||
|
export BUILDAH_FORMAT=docker
|
||||||
|
|
||||||
|
local build_cntr=$(buildah from $MUTTER_CI_IMAGE)
|
||||||
|
local build_mnt=$(buildah mount $build_cntr)
|
||||||
|
|
||||||
|
[[ -n "$build_mnt" && -n "$build_cntr" ]] || die "Failed to mount the container"
|
||||||
|
|
||||||
|
local extra_packages=(
|
||||||
|
passwd # needed by toolbox
|
||||||
|
gdb
|
||||||
|
gnome-console # can't do without *some* terminal
|
||||||
|
flatpak-spawn # run host commands
|
||||||
|
flatpak # for host apps
|
||||||
|
nautilus # FileChooser portal
|
||||||
|
adwaita-fonts-all # system fonts
|
||||||
|
gnome-backgrounds # no blank background!
|
||||||
|
)
|
||||||
|
local debug_packages=(
|
||||||
|
glib2 # makes gdb much more useful
|
||||||
|
)
|
||||||
|
buildah run $build_cntr dnf config-manager setopt '*-openh264.enabled=0'
|
||||||
|
buildah run $build_cntr dnf install -y "${extra_packages[@]}"
|
||||||
|
buildah run $build_cntr dnf debuginfo-install -y "${debug_packages[@]}"
|
||||||
|
buildah run $build_cntr dnf clean all
|
||||||
|
buildah run $build_cntr rm -rf /var/lib/cache/dnf
|
||||||
|
|
||||||
|
# disable gnome-keyring activation:
|
||||||
|
# it either asks for unlocking the login keyring on startup, or it detects
|
||||||
|
# the running host daemon and doesn't export the object on the bus, which
|
||||||
|
# blocks the activating service until it hits the timeout
|
||||||
|
buildah run $build_cntr rm /usr/share/dbus-1/services/org.freedesktop.secrets.service
|
||||||
|
|
||||||
|
local srcdir=$(realpath $(dirname $0))
|
||||||
|
buildah copy --chmod 755 $build_cntr $srcdir/install-meson-project.sh /usr/libexec
|
||||||
|
|
||||||
|
# include convenience script for updating mutter dependency
|
||||||
|
local update_mutter=$(mktemp)
|
||||||
|
cat > $update_mutter <<-EOF
|
||||||
|
#!/bin/sh
|
||||||
|
TOOLBOX=\$(. /run/.containerenv; echo \$name)
|
||||||
|
/usr/libexec/install-meson-project.sh \\
|
||||||
|
--destdir=/ --destdir=/var/lib/extensions/\$TOOLBOX \\
|
||||||
|
https://gitlab.gnome.org/GNOME/mutter.git $MUTTER_BRANCH
|
||||||
|
EOF
|
||||||
|
buildah copy --chmod 755 $build_cntr $update_mutter /usr/bin/update-mutter
|
||||||
|
|
||||||
|
buildah config --env HOME- \
|
||||||
|
--label com.github.containers.toolbox=true \
|
||||||
|
--label org.opencontainers.image.base.name=$MUTTER_CI_IMAGE \
|
||||||
|
$build_cntr
|
||||||
|
|
||||||
|
buildah commit $build_cntr $TOOLBOX_IMAGE
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
MUTTER_CI_IMAGE=$1
|
||||||
|
MUTTER_BRANCH=${2:-$CI_COMMIT_BRANCH}
|
||||||
|
|
||||||
|
TOOLBOX_IMAGE=$CI_REGISTRY_IMAGE/toolbox:${MUTTER_BRANCH#gnome-}
|
||||||
|
|
||||||
|
[[ -n "$MUTTER_CI_IMAGE" && -n "$MUTTER_BRANCH" ]] ||
|
||||||
|
die "Usage: $(basename $0) MUTTER_CI_IMAGE [MUTTER_BRANCH]"
|
||||||
|
|
||||||
|
if [[ -z "$FORCE_REBUILD" ]]; then
|
||||||
|
if check_image_base; then
|
||||||
|
echo Image $TOOLBOX_IMAGE exists and is up to date.
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
[[ -n "$CI_REGISTRY" && -n "$CI_REGISTRY_USER" && -n "$CI_REGISTRY_PASSWORD" ]] ||
|
||||||
|
die "Insufficient information to log in."
|
||||||
|
|
||||||
|
podman login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||||
|
|
||||||
|
build_container
|
||||||
|
|
||||||
|
podman push $TOOLBOX_IMAGE
|
38
.gitlab-ci/check-potfiles.sh
Executable file
38
.gitlab-ci/check-potfiles.sh
Executable file
|
@ -0,0 +1,38 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
srcdirs="src subprojects/extensions-tool"
|
||||||
|
uidirs="js subprojects/extensions-app"
|
||||||
|
desktopdirs="data subprojects/extensions-app/ subprojects/extensions-tool"
|
||||||
|
|
||||||
|
# find source files that contain gettext keywords
|
||||||
|
files=$(grep -lR --include='*.c' '\(gettext\|[^I_)]_\)(' $srcdirs)
|
||||||
|
|
||||||
|
# find ui files that contain translatable string
|
||||||
|
files="$files "$(grep -lRi --include='*.ui' 'translatable="[ty1]' $uidirs)
|
||||||
|
|
||||||
|
# find .desktop files
|
||||||
|
files="$files "$(find $desktopdirs -name '*.desktop*')
|
||||||
|
|
||||||
|
# filter out excluded files
|
||||||
|
if [ -f po/POTFILES.skip ]; then
|
||||||
|
files=$(for f in $files; do ! grep -q ^$f po/POTFILES.skip && echo $f; done)
|
||||||
|
fi
|
||||||
|
|
||||||
|
# find those that aren't listed in POTFILES.in
|
||||||
|
missing=$(for f in $files; do ! grep -q ^$f po/POTFILES.in && echo $f; done)
|
||||||
|
|
||||||
|
if [ ${#missing} -eq 0 ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
cat >&2 <<EOT
|
||||||
|
|
||||||
|
The following files are missing from po/POTFILES.po:
|
||||||
|
|
||||||
|
EOT
|
||||||
|
for f in $missing; do
|
||||||
|
echo " $f" >&2
|
||||||
|
done
|
||||||
|
echo >&2
|
||||||
|
|
||||||
|
exit 1
|
70
.gitlab-ci/checkout-mutter.sh
Executable file
70
.gitlab-ci/checkout-mutter.sh
Executable file
|
@ -0,0 +1,70 @@
|
||||||
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
fetch() {
|
||||||
|
local remote=$1
|
||||||
|
local ref=$2
|
||||||
|
|
||||||
|
git fetch --quiet --depth=1 $remote $ref 2>/dev/null
|
||||||
|
}
|
||||||
|
|
||||||
|
mutter_target=
|
||||||
|
|
||||||
|
echo -n Cloning into mutter ...
|
||||||
|
if git clone --quiet --depth=1 https://gitlab.gnome.org/GNOME/mutter.git; then
|
||||||
|
echo \ done
|
||||||
|
else
|
||||||
|
echo \ failed
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd mutter
|
||||||
|
|
||||||
|
if [ "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" ]; then
|
||||||
|
merge_request_remote=${CI_MERGE_REQUEST_SOURCE_PROJECT_URL//gnome-shell/mutter}
|
||||||
|
merge_request_branch=$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
|
||||||
|
|
||||||
|
echo -n Looking for $merge_request_branch on remote ...
|
||||||
|
if fetch $merge_request_remote $merge_request_branch; then
|
||||||
|
echo \ found
|
||||||
|
mutter_target=FETCH_HEAD
|
||||||
|
else
|
||||||
|
echo \ not found
|
||||||
|
|
||||||
|
echo -n Looking for $CI_MERGE_REQUEST_TARGET_BRANCH_NAME instead ...
|
||||||
|
if fetch origin $CI_MERGE_REQUEST_TARGET_BRANCH_NAME; then
|
||||||
|
echo \ found
|
||||||
|
mutter_target=FETCH_HEAD
|
||||||
|
else
|
||||||
|
echo \ not found
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$mutter_target" ]; then
|
||||||
|
ref_remote=${CI_PROJECT_URL//gnome-shell/mutter}
|
||||||
|
echo -n Looking for $CI_COMMIT_REF_NAME on remote ...
|
||||||
|
if fetch $ref_remote $CI_COMMIT_REF_NAME; then
|
||||||
|
echo \ found
|
||||||
|
mutter_target=FETCH_HEAD
|
||||||
|
else
|
||||||
|
echo \ not found
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
fallback_branch=${CI_COMMIT_TAG:+gnome-}${CI_COMMIT_TAG%%.*}
|
||||||
|
if [ -z "$mutter_target" -a "$fallback_branch" ]; then
|
||||||
|
echo -n Looking for $fallback_branch instead ...
|
||||||
|
if fetch origin $fallback_branch; then
|
||||||
|
echo \ found
|
||||||
|
mutter_target=FETCH_HEAD
|
||||||
|
else
|
||||||
|
echo \ not found
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$mutter_target" ]; then
|
||||||
|
mutter_target=HEAD
|
||||||
|
echo Using $mutter_target instead
|
||||||
|
fi
|
||||||
|
|
||||||
|
git checkout -q $mutter_target
|
18
.gitlab-ci/commit-rules.yml
Normal file
18
.gitlab-ci/commit-rules.yml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
patterns:
|
||||||
|
deny:
|
||||||
|
- regex: '^(st-|St)'
|
||||||
|
message: Commit message subject should not be prefixed with 'st-' or 'St', use 'st/' instead
|
||||||
|
where: subject
|
||||||
|
- regex: '^[^:]+: [a-z]'
|
||||||
|
message: "Commit message subject should be properly Capitalized. E.g. 'window: Marginalize extradicity'"
|
||||||
|
where: subject
|
||||||
|
- regex: '^\S*\.(js|c|h):'
|
||||||
|
message: Commit message subject prefix should not include .c, .h etc.
|
||||||
|
where: subject
|
||||||
|
- regex: '([^.]\.|[:,;])\s*$'
|
||||||
|
message: Commit message subject should not end with punctuation
|
||||||
|
where: subject
|
||||||
|
- regex: '^[Cc]lose[sd]?:?\s*#[0-9]+'
|
||||||
|
message: Closes instructions must be a full link
|
||||||
|
- regex: '^[Ff]ix(e[sd]?)?:?\s*(#[0-9]+|https://)'
|
||||||
|
message: \"Fixes\" should be used with commits, use \"Closes\" for issues
|
38
.gitlab-ci/download-coverity-tarball.sh
Executable file
38
.gitlab-ci/download-coverity-tarball.sh
Executable file
|
@ -0,0 +1,38 @@
|
||||||
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
# We need a coverity token to fetch the tarball
|
||||||
|
if [ -x $COVERITY_TOKEN ]
|
||||||
|
then
|
||||||
|
echo "No coverity token. Run this job from a protected branch."
|
||||||
|
exit -1
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir -p coverity
|
||||||
|
|
||||||
|
# Download and check MD5 first
|
||||||
|
curl https://scan.coverity.com/download/linux64 \
|
||||||
|
--data "token=$COVERITY_TOKEN&project=GNOME+Shell&md5=1" \
|
||||||
|
--output /tmp/coverity_tool.md5
|
||||||
|
|
||||||
|
diff /tmp/coverity_tool.md5 coverity/coverity_tool.md5 >/dev/null 2>&1
|
||||||
|
|
||||||
|
if [ $? -eq 0 -a -d coverity/cov-analysis* ]
|
||||||
|
then
|
||||||
|
echo "Coverity tarball is up-to-date"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Download and extract coverity tarball
|
||||||
|
curl https://scan.coverity.com/download/linux64 \
|
||||||
|
--data "token=$COVERITY_TOKEN&project=GNOME+Shell" \
|
||||||
|
--output /tmp/coverity_tool.tgz
|
||||||
|
|
||||||
|
rm -rf ./coverity/cov-analysis*
|
||||||
|
|
||||||
|
tar zxf /tmp/coverity_tool.tgz -C coverity/
|
||||||
|
if [ $? -eq 0 ]
|
||||||
|
then
|
||||||
|
mv /tmp/coverity_tool.md5 coverity/
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm /tmp/coverity_tool.tgz
|
43
.gitlab-ci/eslint-coding-style.sh
Executable file
43
.gitlab-ci/eslint-coding-style.sh
Executable file
|
@ -0,0 +1,43 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SRCDIR=$(realpath $(dirname $0)/..)
|
||||||
|
OUTDIR=$(mktemp --directory --tmpdir=$SRCDIR)
|
||||||
|
trap "rm -rf $OUTDIR" EXIT
|
||||||
|
|
||||||
|
# Turn ```javascript``` code snippets in the
|
||||||
|
# style guide into .js files in $OUTDIR
|
||||||
|
cat <<'EOF' | python3 - docs/js-coding-style.md $OUTDIR
|
||||||
|
import sys
|
||||||
|
import re
|
||||||
|
|
||||||
|
def extract_js_snippets(input_file, output_dir):
|
||||||
|
with open(input_file, 'r') as file:
|
||||||
|
content = file.read()
|
||||||
|
|
||||||
|
# Find all JavaScript code blocks using regex
|
||||||
|
js_blocks = re.findall(r'```javascript\n(.*?)\n?```', content, flags=re.DOTALL)
|
||||||
|
|
||||||
|
for i, (match) in enumerate(js_blocks):
|
||||||
|
js_code = match
|
||||||
|
|
||||||
|
# Remove one level of indent
|
||||||
|
js_code = re.sub(r'^ {4}', '', js_code, flags=re.MULTILINE)
|
||||||
|
|
||||||
|
# The following are class snippets, turn them
|
||||||
|
# into functions to not confuse eslint
|
||||||
|
js_code = re.sub(r'^moveActor', 'function moveActor', js_code)
|
||||||
|
js_code = re.sub(r'^desaturateActor', 'function desaturateActor', js_code)
|
||||||
|
|
||||||
|
# Finally, create a .js file in the output directory
|
||||||
|
output_filename = f'{output_dir}/{i}.js'
|
||||||
|
with open(output_filename, 'w') as out_file:
|
||||||
|
out_file.write(f'{js_code}\n')
|
||||||
|
|
||||||
|
input_file, output_dir = sys.argv[1:]
|
||||||
|
extract_js_snippets(input_file, output_dir)
|
||||||
|
EOF
|
||||||
|
|
||||||
|
eslint \
|
||||||
|
--rule 'no-undef: off' \
|
||||||
|
--rule 'no-unused-vars: off' \
|
||||||
|
--rule 'no-invalid-this: off' $OUTDIR/*.js
|
31
.gitlab-ci/install-gnomeos-sysext-dependencies.sh
Executable file
31
.gitlab-ci/install-gnomeos-sysext-dependencies.sh
Executable file
|
@ -0,0 +1,31 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# This script ensures that all dependencies required to build and run
|
||||||
|
# a GNOME Shell system extension are present in:
|
||||||
|
#
|
||||||
|
# The building environment, by installing these dependencies to the container.
|
||||||
|
# The running environment, by bundling these dependencies with the extension.
|
||||||
|
#
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Install dependencies to $SYSEXT_DEST_DIR to bundle these with the extension.
|
||||||
|
|
||||||
|
SYSEXT_DEST_DIR="$(realpath $1)"
|
||||||
|
|
||||||
|
# Ensure that we're building against (and bundling) the right mutter branch
|
||||||
|
# and its dependencies:
|
||||||
|
|
||||||
|
SCRIPT_DIR="$(dirname $0)"
|
||||||
|
|
||||||
|
$SCRIPT_DIR/checkout-mutter.sh
|
||||||
|
./mutter/.gitlab-ci/install-gnomeos-sysext-dependencies.sh $SYSEXT_DEST_DIR
|
||||||
|
|
||||||
|
meson setup mutter/build mutter --prefix=/usr --libdir="lib/$(gcc -print-multiarch)"
|
||||||
|
meson compile -C mutter/build
|
||||||
|
meson install -C mutter/build --destdir $SYSEXT_DEST_DIR
|
||||||
|
|
||||||
|
sudo meson install -C mutter/build
|
||||||
|
|
||||||
|
# Ensure that any other dependency missing in GNOME OS is installed and bundled
|
||||||
|
# here as it was done with mutter:
|
107
.gitlab-ci/install-meson-project.sh
Executable file
107
.gitlab-ci/install-meson-project.sh
Executable file
|
@ -0,0 +1,107 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
usage() {
|
||||||
|
cat <<-EOF
|
||||||
|
Usage: $(basename $0) [OPTION…] REPO_URL COMMIT
|
||||||
|
|
||||||
|
Check out and install a meson project
|
||||||
|
|
||||||
|
Options:
|
||||||
|
-Dkey=val Option to pass on to meson
|
||||||
|
--subdir=DIR Build subdirectory instead of whole project
|
||||||
|
--prepare=SCRIPT Script to run before build
|
||||||
|
--libdir=DIR Setup the project with a different libdir
|
||||||
|
--destdir=DIR Install the project to DIR, can be used
|
||||||
|
several times to install to multiple destdirs
|
||||||
|
|
||||||
|
-h, --help Display this help
|
||||||
|
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
TEMP=$(getopt \
|
||||||
|
--name=$(basename $0) \
|
||||||
|
--options='D:h' \
|
||||||
|
--longoptions='subdir:' \
|
||||||
|
--longoptions='prepare:' \
|
||||||
|
--longoptions='libdir:' \
|
||||||
|
--longoptions='destdir:' \
|
||||||
|
--longoptions='help' \
|
||||||
|
-- "$@")
|
||||||
|
|
||||||
|
eval set -- "$TEMP"
|
||||||
|
unset TEMP
|
||||||
|
|
||||||
|
MESON_OPTIONS=()
|
||||||
|
SUBDIR=.
|
||||||
|
PREPARE=:
|
||||||
|
DESTDIRS=()
|
||||||
|
|
||||||
|
while true; do
|
||||||
|
case "$1" in
|
||||||
|
-D)
|
||||||
|
MESON_OPTIONS+=( -D$2 )
|
||||||
|
shift 2
|
||||||
|
;;
|
||||||
|
|
||||||
|
--subdir)
|
||||||
|
SUBDIR=$2
|
||||||
|
shift 2
|
||||||
|
;;
|
||||||
|
|
||||||
|
--prepare)
|
||||||
|
PREPARE=$2
|
||||||
|
shift 2
|
||||||
|
;;
|
||||||
|
|
||||||
|
--libdir)
|
||||||
|
MESON_OPTIONS+=( --libdir=$2 )
|
||||||
|
shift 2
|
||||||
|
;;
|
||||||
|
|
||||||
|
--destdir)
|
||||||
|
DESTDIRS+=( $2 )
|
||||||
|
shift 2
|
||||||
|
;;
|
||||||
|
|
||||||
|
-h|--help)
|
||||||
|
usage
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
|
||||||
|
--)
|
||||||
|
shift
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
if [[ $# -lt 2 ]]; then
|
||||||
|
usage
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
REPO_URL="$1"
|
||||||
|
COMMIT="$2"
|
||||||
|
|
||||||
|
[[ ${#DESTDIRS[@]} == 0 ]] && DESTDIRS+=( / )
|
||||||
|
|
||||||
|
CHECKOUT_DIR=$(mktemp --directory)
|
||||||
|
trap "rm -rf $CHECKOUT_DIR" EXIT
|
||||||
|
|
||||||
|
git clone --depth 1 "$REPO_URL" -b "$COMMIT" "$CHECKOUT_DIR"
|
||||||
|
|
||||||
|
pushd "$CHECKOUT_DIR/$SUBDIR"
|
||||||
|
sh -c "$PREPARE"
|
||||||
|
meson setup --prefix=/usr _build "${MESON_OPTIONS[@]}"
|
||||||
|
|
||||||
|
# Install it to all specified dest dirs
|
||||||
|
for destdir in "${DESTDIRS[@]}"; do
|
||||||
|
# don't use --destdir when installing to root,
|
||||||
|
# so post-install hooks are run
|
||||||
|
[[ $destdir == / ]] && destdir=
|
||||||
|
sudo meson install -C _build ${destdir:+--destdir=$destdir}
|
||||||
|
done
|
||||||
|
popd
|
54
.gitlab-ci/run-eslint
Executable file
54
.gitlab-ci/run-eslint
Executable file
|
@ -0,0 +1,54 @@
|
||||||
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
const {ESLint} = require('eslint');
|
||||||
|
|
||||||
|
console.log(`Running ESLint version ${ESLint.version}...`);
|
||||||
|
|
||||||
|
const fs = require('fs');
|
||||||
|
const path = require('path');
|
||||||
|
|
||||||
|
function hasOption(...names) {
|
||||||
|
return process.argv.some(arg => names.includes(arg));
|
||||||
|
}
|
||||||
|
|
||||||
|
function getOption(...names) {
|
||||||
|
const optIndex =
|
||||||
|
process.argv.findIndex(arg => names.includes(arg)) + 1;
|
||||||
|
|
||||||
|
if (optIndex === 0)
|
||||||
|
return undefined;
|
||||||
|
|
||||||
|
return process.argv[optIndex];
|
||||||
|
}
|
||||||
|
|
||||||
|
(async function main() {
|
||||||
|
const outputOption = getOption('--output-file', '-o');
|
||||||
|
const outputPath = outputOption ? path.resolve(outputOption) : null;
|
||||||
|
|
||||||
|
const sourceDir = path.dirname(process.argv[1]);
|
||||||
|
process.chdir(path.resolve(sourceDir, '..'));
|
||||||
|
|
||||||
|
const sources = ['js', 'subprojects/extensions-app/js', 'tests'];
|
||||||
|
const eslint = new ESLint({cache: true});
|
||||||
|
|
||||||
|
const results = await eslint.lintFiles(sources);
|
||||||
|
const formatter = await eslint.loadFormatter(getOption('--format', '-f'));
|
||||||
|
const resultText = formatter.format(results);
|
||||||
|
|
||||||
|
if (outputPath) {
|
||||||
|
fs.mkdirSync(path.dirname(outputPath), { recursive: true });
|
||||||
|
fs.writeFileSync(outputPath, resultText);
|
||||||
|
|
||||||
|
if (hasOption('--stdout')) {
|
||||||
|
const consoleFormatter = await eslint.loadFormatter();
|
||||||
|
console.log(consoleFormatter.format(results));
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
console.log(resultText);
|
||||||
|
}
|
||||||
|
|
||||||
|
process.exitCode = results.some(r => r.errorCount > 0) ? 1 : 0;
|
||||||
|
})().catch((error) => {
|
||||||
|
process.exitCode = 1;
|
||||||
|
console.error(error);
|
||||||
|
});
|
62
.gitlab/issue_templates/Bug.md
Normal file
62
.gitlab/issue_templates/Bug.md
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
<!--
|
||||||
|
Please read https://gitlab.gnome.org/GNOME/gnome-shell/-/tree/main#reporting-bugs
|
||||||
|
first to ensure that you create a clear and specific issue.
|
||||||
|
-->
|
||||||
|
|
||||||
|
### Affected version
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Provide at least the following information:
|
||||||
|
* Your OS and version
|
||||||
|
* Affected GNOME Shell version (see https://release.gnome.org/calendar/
|
||||||
|
for currently supported versions)
|
||||||
|
* Does this issue appear in XOrg and/or Wayland
|
||||||
|
* Does this issue happen without extensions (please follow instructions below)
|
||||||
|
|
||||||
|
To properly disable extensions you can use gnome-extensions-app and then restart
|
||||||
|
your session. Disabling extensions without a restart is not sufficient to rule
|
||||||
|
out extensions as cause of a bug. If an issue can only be reproduced with a
|
||||||
|
certain extension, please file a bug report against that extension first.
|
||||||
|
-->
|
||||||
|
|
||||||
|
### Bug summary
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Provide a short summary of the bug you encountered.
|
||||||
|
-->
|
||||||
|
|
||||||
|
### Steps to reproduce
|
||||||
|
|
||||||
|
<!--
|
||||||
|
1. Step one
|
||||||
|
2. Step two
|
||||||
|
3. ...
|
||||||
|
-->
|
||||||
|
|
||||||
|
### What happened
|
||||||
|
|
||||||
|
<!--
|
||||||
|
What did GNOME Shell do that was unexpected?
|
||||||
|
-->
|
||||||
|
|
||||||
|
### What did you expect to happen
|
||||||
|
|
||||||
|
<!--
|
||||||
|
What did you expect GNOME Shell to do?
|
||||||
|
-->
|
||||||
|
|
||||||
|
### Relevant logs, screenshots, screencasts etc.
|
||||||
|
|
||||||
|
<!--
|
||||||
|
If you have further information, such as technical documentation, logs,
|
||||||
|
screenshots or screencasts related, please provide them here.
|
||||||
|
|
||||||
|
If the bug is a crash, please obtain a stack trace with installed debug
|
||||||
|
symbols (at least for GNOME Shell and Mutter) and attach it to
|
||||||
|
this issue following the instructions on
|
||||||
|
https://handbook.gnome.org/issues/stack-traces.html.
|
||||||
|
-->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Do not remove the following line. -->
|
||||||
|
/label ~"1. Bug"
|
30
.gitlab/issue_templates/Feature.md
Normal file
30
.gitlab/issue_templates/Feature.md
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
<!--
|
||||||
|
Please read https://gitlab.gnome.org/GNOME/gnome-shell/-/tree/main#reporting-bugs
|
||||||
|
first to ensure that you create a clear and specific issue.
|
||||||
|
-->
|
||||||
|
|
||||||
|
### Feature summary
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Describe what you would like to be able to do with GNOME Shell
|
||||||
|
that you currently cannot do.
|
||||||
|
-->
|
||||||
|
|
||||||
|
### How would you like it to work
|
||||||
|
|
||||||
|
<!--
|
||||||
|
If you can think of a way GNOME Shell might be able to do this,
|
||||||
|
let us know here.
|
||||||
|
-->
|
||||||
|
|
||||||
|
### Relevant links, screenshots, screencasts etc.
|
||||||
|
|
||||||
|
<!--
|
||||||
|
If you have further information, such as technical documentation,
|
||||||
|
code, mockups or a similar feature in another desktop environments,
|
||||||
|
please provide them here.
|
||||||
|
-->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Do not remove the following line. -->
|
||||||
|
/label ~"1. Feature"
|
0
.jscheckignore
Normal file
0
.jscheckignore
Normal file
339
COPYING
Normal file
339
COPYING
Normal file
|
@ -0,0 +1,339 @@
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 2, June 1991
|
||||||
|
|
||||||
|
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The licenses for most software are designed to take away your
|
||||||
|
freedom to share and change it. By contrast, the GNU General Public
|
||||||
|
License is intended to guarantee your freedom to share and change free
|
||||||
|
software--to make sure the software is free for all its users. This
|
||||||
|
General Public License applies to most of the Free Software
|
||||||
|
Foundation's software and to any other program whose authors commit to
|
||||||
|
using it. (Some other Free Software Foundation software is covered by
|
||||||
|
the GNU Lesser General Public License instead.) You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
this service if you wish), that you receive source code or can get it
|
||||||
|
if you want it, that you can change the software or use pieces of it
|
||||||
|
in new free programs; and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to make restrictions that forbid
|
||||||
|
anyone to deny you these rights or to ask you to surrender the rights.
|
||||||
|
These restrictions translate to certain responsibilities for you if you
|
||||||
|
distribute copies of the software, or if you modify it.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must give the recipients all the rights that
|
||||||
|
you have. You must make sure that they, too, receive or can get the
|
||||||
|
source code. And you must show them these terms so they know their
|
||||||
|
rights.
|
||||||
|
|
||||||
|
We protect your rights with two steps: (1) copyright the software, and
|
||||||
|
(2) offer you this license which gives you legal permission to copy,
|
||||||
|
distribute and/or modify the software.
|
||||||
|
|
||||||
|
Also, for each author's protection and ours, we want to make certain
|
||||||
|
that everyone understands that there is no warranty for this free
|
||||||
|
software. If the software is modified by someone else and passed on, we
|
||||||
|
want its recipients to know that what they have is not the original, so
|
||||||
|
that any problems introduced by others will not reflect on the original
|
||||||
|
authors' reputations.
|
||||||
|
|
||||||
|
Finally, any free program is threatened constantly by software
|
||||||
|
patents. We wish to avoid the danger that redistributors of a free
|
||||||
|
program will individually obtain patent licenses, in effect making the
|
||||||
|
program proprietary. To prevent this, we have made it clear that any
|
||||||
|
patent must be licensed for everyone's free use or not licensed at all.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. This License applies to any program or other work which contains
|
||||||
|
a notice placed by the copyright holder saying it may be distributed
|
||||||
|
under the terms of this General Public License. The "Program", below,
|
||||||
|
refers to any such program or work, and a "work based on the Program"
|
||||||
|
means either the Program or any derivative work under copyright law:
|
||||||
|
that is to say, a work containing the Program or a portion of it,
|
||||||
|
either verbatim or with modifications and/or translated into another
|
||||||
|
language. (Hereinafter, translation is included without limitation in
|
||||||
|
the term "modification".) Each licensee is addressed as "you".
|
||||||
|
|
||||||
|
Activities other than copying, distribution and modification are not
|
||||||
|
covered by this License; they are outside its scope. The act of
|
||||||
|
running the Program is not restricted, and the output from the Program
|
||||||
|
is covered only if its contents constitute a work based on the
|
||||||
|
Program (independent of having been made by running the Program).
|
||||||
|
Whether that is true depends on what the Program does.
|
||||||
|
|
||||||
|
1. You may copy and distribute verbatim copies of the Program's
|
||||||
|
source code as you receive it, in any medium, provided that you
|
||||||
|
conspicuously and appropriately publish on each copy an appropriate
|
||||||
|
copyright notice and disclaimer of warranty; keep intact all the
|
||||||
|
notices that refer to this License and to the absence of any warranty;
|
||||||
|
and give any other recipients of the Program a copy of this License
|
||||||
|
along with the Program.
|
||||||
|
|
||||||
|
You may charge a fee for the physical act of transferring a copy, and
|
||||||
|
you may at your option offer warranty protection in exchange for a fee.
|
||||||
|
|
||||||
|
2. You may modify your copy or copies of the Program or any portion
|
||||||
|
of it, thus forming a work based on the Program, and copy and
|
||||||
|
distribute such modifications or work under the terms of Section 1
|
||||||
|
above, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) You must cause the modified files to carry prominent notices
|
||||||
|
stating that you changed the files and the date of any change.
|
||||||
|
|
||||||
|
b) You must cause any work that you distribute or publish, that in
|
||||||
|
whole or in part contains or is derived from the Program or any
|
||||||
|
part thereof, to be licensed as a whole at no charge to all third
|
||||||
|
parties under the terms of this License.
|
||||||
|
|
||||||
|
c) If the modified program normally reads commands interactively
|
||||||
|
when run, you must cause it, when started running for such
|
||||||
|
interactive use in the most ordinary way, to print or display an
|
||||||
|
announcement including an appropriate copyright notice and a
|
||||||
|
notice that there is no warranty (or else, saying that you provide
|
||||||
|
a warranty) and that users may redistribute the program under
|
||||||
|
these conditions, and telling the user how to view a copy of this
|
||||||
|
License. (Exception: if the Program itself is interactive but
|
||||||
|
does not normally print such an announcement, your work based on
|
||||||
|
the Program is not required to print an announcement.)
|
||||||
|
|
||||||
|
These requirements apply to the modified work as a whole. If
|
||||||
|
identifiable sections of that work are not derived from the Program,
|
||||||
|
and can be reasonably considered independent and separate works in
|
||||||
|
themselves, then this License, and its terms, do not apply to those
|
||||||
|
sections when you distribute them as separate works. But when you
|
||||||
|
distribute the same sections as part of a whole which is a work based
|
||||||
|
on the Program, the distribution of the whole must be on the terms of
|
||||||
|
this License, whose permissions for other licensees extend to the
|
||||||
|
entire whole, and thus to each and every part regardless of who wrote it.
|
||||||
|
|
||||||
|
Thus, it is not the intent of this section to claim rights or contest
|
||||||
|
your rights to work written entirely by you; rather, the intent is to
|
||||||
|
exercise the right to control the distribution of derivative or
|
||||||
|
collective works based on the Program.
|
||||||
|
|
||||||
|
In addition, mere aggregation of another work not based on the Program
|
||||||
|
with the Program (or with a work based on the Program) on a volume of
|
||||||
|
a storage or distribution medium does not bring the other work under
|
||||||
|
the scope of this License.
|
||||||
|
|
||||||
|
3. You may copy and distribute the Program (or a work based on it,
|
||||||
|
under Section 2) in object code or executable form under the terms of
|
||||||
|
Sections 1 and 2 above provided that you also do one of the following:
|
||||||
|
|
||||||
|
a) Accompany it with the complete corresponding machine-readable
|
||||||
|
source code, which must be distributed under the terms of Sections
|
||||||
|
1 and 2 above on a medium customarily used for software interchange; or,
|
||||||
|
|
||||||
|
b) Accompany it with a written offer, valid for at least three
|
||||||
|
years, to give any third party, for a charge no more than your
|
||||||
|
cost of physically performing source distribution, a complete
|
||||||
|
machine-readable copy of the corresponding source code, to be
|
||||||
|
distributed under the terms of Sections 1 and 2 above on a medium
|
||||||
|
customarily used for software interchange; or,
|
||||||
|
|
||||||
|
c) Accompany it with the information you received as to the offer
|
||||||
|
to distribute corresponding source code. (This alternative is
|
||||||
|
allowed only for noncommercial distribution and only if you
|
||||||
|
received the program in object code or executable form with such
|
||||||
|
an offer, in accord with Subsection b above.)
|
||||||
|
|
||||||
|
The source code for a work means the preferred form of the work for
|
||||||
|
making modifications to it. For an executable work, complete source
|
||||||
|
code means all the source code for all modules it contains, plus any
|
||||||
|
associated interface definition files, plus the scripts used to
|
||||||
|
control compilation and installation of the executable. However, as a
|
||||||
|
special exception, the source code distributed need not include
|
||||||
|
anything that is normally distributed (in either source or binary
|
||||||
|
form) with the major components (compiler, kernel, and so on) of the
|
||||||
|
operating system on which the executable runs, unless that component
|
||||||
|
itself accompanies the executable.
|
||||||
|
|
||||||
|
If distribution of executable or object code is made by offering
|
||||||
|
access to copy from a designated place, then offering equivalent
|
||||||
|
access to copy the source code from the same place counts as
|
||||||
|
distribution of the source code, even though third parties are not
|
||||||
|
compelled to copy the source along with the object code.
|
||||||
|
|
||||||
|
4. You may not copy, modify, sublicense, or distribute the Program
|
||||||
|
except as expressly provided under this License. Any attempt
|
||||||
|
otherwise to copy, modify, sublicense or distribute the Program is
|
||||||
|
void, and will automatically terminate your rights under this License.
|
||||||
|
However, parties who have received copies, or rights, from you under
|
||||||
|
this License will not have their licenses terminated so long as such
|
||||||
|
parties remain in full compliance.
|
||||||
|
|
||||||
|
5. You are not required to accept this License, since you have not
|
||||||
|
signed it. However, nothing else grants you permission to modify or
|
||||||
|
distribute the Program or its derivative works. These actions are
|
||||||
|
prohibited by law if you do not accept this License. Therefore, by
|
||||||
|
modifying or distributing the Program (or any work based on the
|
||||||
|
Program), you indicate your acceptance of this License to do so, and
|
||||||
|
all its terms and conditions for copying, distributing or modifying
|
||||||
|
the Program or works based on it.
|
||||||
|
|
||||||
|
6. Each time you redistribute the Program (or any work based on the
|
||||||
|
Program), the recipient automatically receives a license from the
|
||||||
|
original licensor to copy, distribute or modify the Program subject to
|
||||||
|
these terms and conditions. You may not impose any further
|
||||||
|
restrictions on the recipients' exercise of the rights granted herein.
|
||||||
|
You are not responsible for enforcing compliance by third parties to
|
||||||
|
this License.
|
||||||
|
|
||||||
|
7. If, as a consequence of a court judgment or allegation of patent
|
||||||
|
infringement or for any other reason (not limited to patent issues),
|
||||||
|
conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot
|
||||||
|
distribute so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you
|
||||||
|
may not distribute the Program at all. For example, if a patent
|
||||||
|
license would not permit royalty-free redistribution of the Program by
|
||||||
|
all those who receive copies directly or indirectly through you, then
|
||||||
|
the only way you could satisfy both it and this License would be to
|
||||||
|
refrain entirely from distribution of the Program.
|
||||||
|
|
||||||
|
If any portion of this section is held invalid or unenforceable under
|
||||||
|
any particular circumstance, the balance of the section is intended to
|
||||||
|
apply and the section as a whole is intended to apply in other
|
||||||
|
circumstances.
|
||||||
|
|
||||||
|
It is not the purpose of this section to induce you to infringe any
|
||||||
|
patents or other property right claims or to contest validity of any
|
||||||
|
such claims; this section has the sole purpose of protecting the
|
||||||
|
integrity of the free software distribution system, which is
|
||||||
|
implemented by public license practices. Many people have made
|
||||||
|
generous contributions to the wide range of software distributed
|
||||||
|
through that system in reliance on consistent application of that
|
||||||
|
system; it is up to the author/donor to decide if he or she is willing
|
||||||
|
to distribute software through any other system and a licensee cannot
|
||||||
|
impose that choice.
|
||||||
|
|
||||||
|
This section is intended to make thoroughly clear what is believed to
|
||||||
|
be a consequence of the rest of this License.
|
||||||
|
|
||||||
|
8. If the distribution and/or use of the Program is restricted in
|
||||||
|
certain countries either by patents or by copyrighted interfaces, the
|
||||||
|
original copyright holder who places the Program under this License
|
||||||
|
may add an explicit geographical distribution limitation excluding
|
||||||
|
those countries, so that distribution is permitted only in or among
|
||||||
|
countries not thus excluded. In such case, this License incorporates
|
||||||
|
the limitation as if written in the body of this License.
|
||||||
|
|
||||||
|
9. The Free Software Foundation may publish revised and/or new versions
|
||||||
|
of the General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the Program
|
||||||
|
specifies a version number of this License which applies to it and "any
|
||||||
|
later version", you have the option of following the terms and conditions
|
||||||
|
either of that version or of any later version published by the Free
|
||||||
|
Software Foundation. If the Program does not specify a version number of
|
||||||
|
this License, you may choose any version ever published by the Free Software
|
||||||
|
Foundation.
|
||||||
|
|
||||||
|
10. If you wish to incorporate parts of the Program into other free
|
||||||
|
programs whose distribution conditions are different, write to the author
|
||||||
|
to ask for permission. For software which is copyrighted by the Free
|
||||||
|
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||||
|
make exceptions for this. Our decision will be guided by the two goals
|
||||||
|
of preserving the free status of all derivatives of our free software and
|
||||||
|
of promoting the sharing and reuse of software generally.
|
||||||
|
|
||||||
|
NO WARRANTY
|
||||||
|
|
||||||
|
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||||
|
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||||
|
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||||
|
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||||
|
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||||
|
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||||
|
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||||
|
REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||||
|
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||||
|
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||||
|
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||||
|
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||||
|
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||||
|
POSSIBILITY OF SUCH DAMAGES.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
convey the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along
|
||||||
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program is interactive, make it output a short notice like this
|
||||||
|
when it starts in an interactive mode:
|
||||||
|
|
||||||
|
Gnomovision version 69, Copyright (C) year name of author
|
||||||
|
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, the commands you use may
|
||||||
|
be called something other than `show w' and `show c'; they could even be
|
||||||
|
mouse-clicks or menu items--whatever suits your program.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or your
|
||||||
|
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||||
|
necessary. Here is a sample; alter the names:
|
||||||
|
|
||||||
|
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||||
|
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||||
|
|
||||||
|
<signature of Ty Coon>, 1 April 1989
|
||||||
|
Ty Coon, President of Vice
|
||||||
|
|
||||||
|
This General Public License does not permit incorporating your program into
|
||||||
|
proprietary programs. If your program is a subroutine library, you may
|
||||||
|
consider it more useful to permit linking proprietary applications with the
|
||||||
|
library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License.
|
136
README.md
Normal file
136
README.md
Normal file
|
@ -0,0 +1,136 @@
|
||||||
|
# GNOME Shell
|
||||||
|
|
||||||
|
GNOME Shell provides core user interface functions for the GNOME desktop,
|
||||||
|
like switching to windows and launching applications. GNOME Shell takes
|
||||||
|
advantage of the capabilities of modern graphics hardware and introduces
|
||||||
|
innovative user interface concepts to provide a visually attractive and
|
||||||
|
easy to use experience.
|
||||||
|
|
||||||
|
All interactions with the project should follow the [Code of Conduct][conduct].
|
||||||
|
|
||||||
|
[conduct]: https://conduct.gnome.org/
|
||||||
|
|
||||||
|
## Supported versions
|
||||||
|
|
||||||
|
Upstream gnome-shell only supports the most recent stable release series,
|
||||||
|
the previous stable release series, and the current development release
|
||||||
|
series. Any older stable release series are no longer supported, although
|
||||||
|
they may still receive backported security updates in long-term support
|
||||||
|
distributions. Such support is up to the distributions, though.
|
||||||
|
|
||||||
|
Please refer to the [schedule] to see when a new version will be released.
|
||||||
|
|
||||||
|
[schedule]: https://release.gnome.org/calendar
|
||||||
|
|
||||||
|
## Reporting bugs
|
||||||
|
|
||||||
|
Bugs should be reported to the [issue tracking system][bug-tracker].
|
||||||
|
|
||||||
|
The [GNOME handbook][bug-handbook] has useful information for creating
|
||||||
|
effective issue reports.
|
||||||
|
|
||||||
|
If you are using extensions, please confirm that an issue still happens
|
||||||
|
without extensions. To properly disable extensions you can use the
|
||||||
|
[extensions-app] and then restart your session. Disabling extensions
|
||||||
|
without a restart is not sufficient to rule out extensions as the
|
||||||
|
cause of a bug. If an issue can only be reproduced with a certain
|
||||||
|
extension, please file an issue report against that extension first.
|
||||||
|
|
||||||
|
Please note that the issue tracker is meant to be used for
|
||||||
|
actionable issues only.
|
||||||
|
|
||||||
|
For support questions, feedback on changes or general discussions,
|
||||||
|
you can use:
|
||||||
|
|
||||||
|
- the [#gnome-shell matrix room][matrix-room]
|
||||||
|
- the `Desktop` category or `shell` tag on [GNOME Discourse][discourse]
|
||||||
|
|
||||||
|
[bug-tracker]: https://gitlab.gnome.org/GNOME/gnome-shell/issues
|
||||||
|
[bug-handbook]: https://handbook.gnome.org/issues/reporting.html
|
||||||
|
[extensions-app]: https://apps.gnome.org/Extensions
|
||||||
|
[matrix-room]: https://matrix.to/#/#gnome-shell:gnome.org
|
||||||
|
[discourse]: https://discourse.gnome.org
|
||||||
|
|
||||||
|
## Feature requests
|
||||||
|
|
||||||
|
gnome-shell is a core compoment of the GNOME desktop experience.
|
||||||
|
As such, any changes in behavior or appearance only happen in
|
||||||
|
accordance with the [GNOME design team][design-team].
|
||||||
|
|
||||||
|
For major changes, it is best to start a discussion on [discourse]
|
||||||
|
and reach out on the [#gnome-design matrix room][design-room],
|
||||||
|
and only involve the issue tracker once agreement has been reached.
|
||||||
|
|
||||||
|
In particular mockups must be approved by the design team to be
|
||||||
|
considered for implementation.
|
||||||
|
|
||||||
|
For enhancements that are limited in scope and well-defined,
|
||||||
|
it is acceptable to directly open a feature request.
|
||||||
|
|
||||||
|
When in doubt, it is better to ask before opening an issue.
|
||||||
|
|
||||||
|
[design-team]: https://gitlab.gnome.org/Teams/Design
|
||||||
|
[discourse]: https://discourse.gnome.org
|
||||||
|
[design-room]: https://matrix.to/#/#gnome-design:gnome.org
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
To contribute, open merge requests at https://gitlab.gnome.org/GNOME/gnome-shell.
|
||||||
|
|
||||||
|
It can be useful to first look at the [GNOME handbook][mr-handbook].
|
||||||
|
|
||||||
|
If a change likely requires discussion beyond code review, it is probably better to
|
||||||
|
open an issue first, or follow the process for [feature requests](#feature-requests).
|
||||||
|
Otherwise, creating a separate issue is not required.
|
||||||
|
|
||||||
|
The following guidelines will help your change to be successfully merged:
|
||||||
|
|
||||||
|
* Keep the change as small as possible. If you can split it into multiple
|
||||||
|
merge requests, please do so.
|
||||||
|
* Use multiple commits. This makes it easier to review and helps to diagnose
|
||||||
|
bugs in the future.
|
||||||
|
* Use clear commit messages following the [conventions][commit-messages].
|
||||||
|
* Pay attention to the CI results. Merge requests cannot be merged until the
|
||||||
|
CI passes.
|
||||||
|
|
||||||
|
There's also a [small guide for newcomers][newcomers-contribution-guide] with
|
||||||
|
a few more basic tips and tricks.
|
||||||
|
|
||||||
|
[mr-handbook]: https://handbook.gnome.org/development/change-submission.html
|
||||||
|
[commit-messages]: docs/commit-messages.md
|
||||||
|
[newcomers-contribution-guide]: docs/newcomers-contribution-guide.md
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
* [Coding style and conventions for javascript][js-style]
|
||||||
|
* [Coding style and conventions for C code][c-style]
|
||||||
|
* [The GJS Developer Guide][gjs-guide]
|
||||||
|
* [Building and Running][building]
|
||||||
|
* [Debugging][debugging]
|
||||||
|
|
||||||
|
[js-style]: docs/js-coding-style.md
|
||||||
|
[c-style]: docs/c-coding-style.md
|
||||||
|
[gjs-guide]: https://gjs.guide
|
||||||
|
[building]: docs/building-and-running.md
|
||||||
|
[debugging]: docs/debugging.md
|
||||||
|
|
||||||
|
## API Reference
|
||||||
|
|
||||||
|
* [Meta][meta-docs]: Display server and window manager
|
||||||
|
* [St][st-docs]: Shell toolkit
|
||||||
|
* [Clutter][clutter-docs]: OpenGL based scene graph
|
||||||
|
* [Shell][shell-docs]: Non-ui shell objects and utilities
|
||||||
|
* See the [mutter page][mutter-docs] for additional documentation
|
||||||
|
|
||||||
|
[st-docs]: <https://gnome.pages.gitlab.gnome.org/gnome-shell/st/>
|
||||||
|
[shell-docs]: <https://gnome.pages.gitlab.gnome.org/gnome-shell/shell/>
|
||||||
|
[clutter-docs]: <https://mutter.gnome.org/clutter/>
|
||||||
|
[meta-docs]: <https://mutter.gnome.org/meta/>
|
||||||
|
[mutter-docs]: <https://mutter.gnome.org>
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
GNOME Shell is distributed under the terms of the GNU General Public License,
|
||||||
|
version 2 or later. See the [COPYING][license] file for details.
|
||||||
|
|
||||||
|
[license]: COPYING
|
47
config.h.meson
Normal file
47
config.h.meson
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
/* The prefix for our gettext translation domains. */
|
||||||
|
#mesondefine GETTEXT_PACKAGE
|
||||||
|
|
||||||
|
/* Version number of package */
|
||||||
|
#mesondefine VERSION
|
||||||
|
|
||||||
|
/* Version number of package */
|
||||||
|
#mesondefine PACKAGE_VERSION
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `fdwalk' function. */
|
||||||
|
#mesondefine HAVE_FDWALK
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `mallinfo' function. */
|
||||||
|
#mesondefine HAVE_MALLINFO
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `mallinfo2' function. */
|
||||||
|
#mesondefine HAVE_MALLINFO2
|
||||||
|
|
||||||
|
/* Define to 1 fi you have the <sys/resource.h> header file. */
|
||||||
|
#mesondefine HAVE_SYS_RESOURCE_H
|
||||||
|
|
||||||
|
/* Define if we have NetworkManager */
|
||||||
|
#mesondefine HAVE_NETWORKMANAGER
|
||||||
|
|
||||||
|
/* Define if we have Pipewire */
|
||||||
|
#mesondefine HAVE_PIPEWIRE
|
||||||
|
|
||||||
|
/* Define if we have systemd */
|
||||||
|
#mesondefine HAVE_SYSTEMD
|
||||||
|
|
||||||
|
/* Define if _NL_TIME_FIRST_WEEKDATE is available */
|
||||||
|
#mesondefine HAVE__NL_TIME_FIRST_WEEKDAY
|
||||||
|
|
||||||
|
/* Define if fdwalk is available in libc */
|
||||||
|
#mesondefine HAVE_FDWALK
|
||||||
|
|
||||||
|
/* Define if polkit defines autocleanup functions */
|
||||||
|
#mesondefine HAVE_POLKIT_AUTOCLEANUP
|
||||||
|
|
||||||
|
/* Define to 1 if the <elf.h> and <link.h> header file exist. */
|
||||||
|
#mesondefine HAVE_EXE_INTROSPECTION
|
||||||
|
|
||||||
|
/* Whether GNOME Shell is built with X11 support */
|
||||||
|
#mesondefine HAVE_X11
|
||||||
|
|
||||||
|
/* Whether GNOME Shell is built with X11 clients support */
|
||||||
|
#mesondefine HAVE_X11_CLIENT
|
6
data/00_org.gnome.shell.gschema.override
Normal file
6
data/00_org.gnome.shell.gschema.override
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
[org.gnome.mutter:GNOME]
|
||||||
|
attach-modal-dialogs=true
|
||||||
|
edge-tiling=true
|
||||||
|
dynamic-workspaces=true
|
||||||
|
workspaces-only-on-primary=true
|
||||||
|
focus-change-on-pointer-rest=true
|
81
data/50-gnome-shell-launchers.xml
Normal file
81
data/50-gnome-shell-launchers.xml
Normal file
|
@ -0,0 +1,81 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<KeyListEntries schema="org.gnome.shell.keybindings"
|
||||||
|
group="system"
|
||||||
|
name="Launchers"
|
||||||
|
wm_name="GNOME Shell"
|
||||||
|
package="gnome-shell">
|
||||||
|
|
||||||
|
<KeyListEntry name="switch-to-application-1"
|
||||||
|
description="Activate pinned app 1"
|
||||||
|
hidden="true"/>
|
||||||
|
|
||||||
|
<KeyListEntry name="switch-to-application-2"
|
||||||
|
description="Activate pinned app 2"
|
||||||
|
hidden="true"/>
|
||||||
|
|
||||||
|
<KeyListEntry name="switch-to-application-3"
|
||||||
|
description="Activate pinned app 3"
|
||||||
|
hidden="true"/>
|
||||||
|
|
||||||
|
<KeyListEntry name="switch-to-application-4"
|
||||||
|
description="Activate pinned app 4"
|
||||||
|
hidden="true"/>
|
||||||
|
|
||||||
|
<KeyListEntry name="switch-to-application-5"
|
||||||
|
description="Activate pinned app 5"
|
||||||
|
hidden="true"/>
|
||||||
|
|
||||||
|
<KeyListEntry name="switch-to-application-6"
|
||||||
|
description="Activate pinned app 6"
|
||||||
|
hidden="true"/>
|
||||||
|
|
||||||
|
<KeyListEntry name="switch-to-application-7"
|
||||||
|
description="Activate pinned app 7"
|
||||||
|
hidden="true"/>
|
||||||
|
|
||||||
|
<KeyListEntry name="switch-to-application-8"
|
||||||
|
description="Activate pinned app 8"
|
||||||
|
hidden="true"/>
|
||||||
|
|
||||||
|
<KeyListEntry name="switch-to-application-9"
|
||||||
|
description="Activate pinned app 9"
|
||||||
|
hidden="true"/>
|
||||||
|
|
||||||
|
<KeyListEntry name="open-new-window-application-1"
|
||||||
|
description="Open new window of pinned app 1"
|
||||||
|
hidden="true"/>
|
||||||
|
|
||||||
|
<KeyListEntry name="open-new-window-application-2"
|
||||||
|
description="Open new window of pinned app 2"
|
||||||
|
hidden="true"/>
|
||||||
|
|
||||||
|
<KeyListEntry name="open-new-window-application-3"
|
||||||
|
description="Open new window of pinned app 3"
|
||||||
|
hidden="true"/>
|
||||||
|
|
||||||
|
<KeyListEntry name="open-new-window-application-4"
|
||||||
|
description="Open new window of pinned app 4"
|
||||||
|
hidden="true"/>
|
||||||
|
|
||||||
|
<KeyListEntry name="open-new-window-application-5"
|
||||||
|
description="Open new window of pinned app 5"
|
||||||
|
hidden="true"/>
|
||||||
|
|
||||||
|
<KeyListEntry name="open-new-window-application-6"
|
||||||
|
description="Open new window of pinned app 6"
|
||||||
|
hidden="true"/>
|
||||||
|
|
||||||
|
<KeyListEntry name="open-new-window-application-7"
|
||||||
|
description="Open new window of pinned app 7"
|
||||||
|
hidden="true"/>
|
||||||
|
|
||||||
|
<KeyListEntry name="open-new-window-application-8"
|
||||||
|
description="Open new window of pinned app 8"
|
||||||
|
hidden="true"/>
|
||||||
|
|
||||||
|
<KeyListEntry name="open-new-window-application-9"
|
||||||
|
description="Open new window of pinned app 9"
|
||||||
|
hidden="true"/>
|
||||||
|
|
||||||
|
</KeyListEntries>
|
||||||
|
|
20
data/50-gnome-shell-screenshots.xml
Normal file
20
data/50-gnome-shell-screenshots.xml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<KeyListEntries schema="org.gnome.shell.keybindings"
|
||||||
|
group="system"
|
||||||
|
name="Screenshots"
|
||||||
|
wm_name="GNOME Shell"
|
||||||
|
package="gnome-shell">
|
||||||
|
|
||||||
|
<KeyListEntry name="show-screenshot-ui"
|
||||||
|
description="Take a screenshot interactively"/>
|
||||||
|
|
||||||
|
<KeyListEntry name="screenshot"
|
||||||
|
description="Take a screenshot"/>
|
||||||
|
|
||||||
|
<KeyListEntry name="screenshot-window"
|
||||||
|
description="Take a screenshot of a window"/>
|
||||||
|
|
||||||
|
<KeyListEntry name="show-screen-recording-ui"
|
||||||
|
description="Record a screencast interactively"/>
|
||||||
|
|
||||||
|
</KeyListEntries>
|
24
data/50-gnome-shell-system.xml
Normal file
24
data/50-gnome-shell-system.xml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<KeyListEntries schema="org.gnome.shell.keybindings"
|
||||||
|
group="system"
|
||||||
|
name="System"
|
||||||
|
wm_name="GNOME Shell"
|
||||||
|
package="gnome-shell">
|
||||||
|
|
||||||
|
<KeyListEntry name="toggle-message-tray"
|
||||||
|
description="Show the notification list"/>
|
||||||
|
|
||||||
|
<KeyListEntry name="toggle-quick-settings"
|
||||||
|
description="Open the quick settings menu"/>
|
||||||
|
|
||||||
|
<KeyListEntry name="focus-active-notification"
|
||||||
|
description="Focus the active notification"/>
|
||||||
|
|
||||||
|
<KeyListEntry name="toggle-overview"
|
||||||
|
description="Show the overview"/>
|
||||||
|
|
||||||
|
<KeyListEntry name="toggle-application-view"
|
||||||
|
description="Show all apps"/>
|
||||||
|
|
||||||
|
</KeyListEntries>
|
||||||
|
|
84
data/README.osk-layouts
Normal file
84
data/README.osk-layouts
Normal file
|
@ -0,0 +1,84 @@
|
||||||
|
Gnome-shell OSK layouts are extracted from CLDR layout definitions:
|
||||||
|
https://www.unicode.org/cldr/charts/latest/keyboards/layouts/index.html
|
||||||
|
|
||||||
|
To add new layouts from CLDR:
|
||||||
|
|
||||||
|
1) Run update-osk-layouts.sh
|
||||||
|
|
||||||
|
2) Modify JSON files to add extra keys, tweak appearance...
|
||||||
|
|
||||||
|
2) Do git add and git commit
|
||||||
|
|
||||||
|
JSON file format
|
||||||
|
================
|
||||||
|
|
||||||
|
Each JSON file describes a keymap for a certain language and layout,
|
||||||
|
it has the following structure:
|
||||||
|
|
||||||
|
- Root (Object)
|
||||||
|
|
||||||
|
Root object of a layout, has the following properties:
|
||||||
|
|
||||||
|
- levels (Array of Level): Levels in the keymap
|
||||||
|
- locale (String): Locale name for this keymap
|
||||||
|
- name (String): Human readable name for this keymap
|
||||||
|
|
||||||
|
- Level (Object)
|
||||||
|
|
||||||
|
A level defines the keys available on a keyboard level,
|
||||||
|
these are the key panels visible at a time. E.g. to type
|
||||||
|
uppercase levels or symbols.
|
||||||
|
|
||||||
|
Levels have the following properties:
|
||||||
|
|
||||||
|
- level (String): Name of the level, common names are
|
||||||
|
"", "shift", "opt" and "opt+shift".
|
||||||
|
- mode (String): Mode for this level, common modes are
|
||||||
|
"default", "latched" and "locked".
|
||||||
|
- rows (Array of Row): Array of rows of keys.
|
||||||
|
|
||||||
|
- Row (Array)
|
||||||
|
|
||||||
|
A row is an Array of Key.
|
||||||
|
|
||||||
|
- Key (Object)
|
||||||
|
|
||||||
|
A keyboard key. Keys have the following properties:
|
||||||
|
|
||||||
|
- iconName (String): Icon name to show on the key.
|
||||||
|
Keys with an icon name do not have a label.
|
||||||
|
- label (String): Label to show on the key.
|
||||||
|
- strings (Array of String): Strings to commit. If
|
||||||
|
label property does not exist, the first element
|
||||||
|
will be also the label. Extra elements are shown
|
||||||
|
in the extra keys popover.
|
||||||
|
- keyval (String): Hexadecimal keyval to emit as
|
||||||
|
emulated key presses. Committed strings are
|
||||||
|
preferred.
|
||||||
|
- leftOffset (Double): If set, the left offset of
|
||||||
|
this key, relative to the key immediately to the
|
||||||
|
left, or the start of the row. If not set, the key
|
||||||
|
will be implicitly located at the right of the
|
||||||
|
previous key in the row. Multiples of 0.5 are
|
||||||
|
accepted.
|
||||||
|
- width (Double): Relative width of the key in the
|
||||||
|
row. 1 is for a square key. Multiples of 0.5 are
|
||||||
|
accepted. The implicit default value is 1.
|
||||||
|
- height (Double): Relative height of the key in
|
||||||
|
the grid. The key will overflow downwards. Multiples
|
||||||
|
of 0.5 are accepted. The implicit default value is 1.
|
||||||
|
- level (Integer): Level that the key switches to.
|
||||||
|
See the levelSwitch action.
|
||||||
|
- action (string): Action performed by the key,
|
||||||
|
accepted actions are:
|
||||||
|
|
||||||
|
- hide: Hides the OSK
|
||||||
|
- languageMenu: Pops up the language selection
|
||||||
|
menu
|
||||||
|
- emoji: Switches to the emoji selection panel
|
||||||
|
- modifier: Handles the keyval as a modifier
|
||||||
|
key. This handles e.g. Ctrl+A as a sequence
|
||||||
|
of Ctrl press, A press, A release, Ctrl
|
||||||
|
release.
|
||||||
|
- delete: Deletes text backwards
|
||||||
|
- levelSwitch: Switches OSK to a different level
|
3
data/X-GNOME-Shell-System.directory.desktop.in
Normal file
3
data/X-GNOME-Shell-System.directory.desktop.in
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=System
|
||||||
|
Type=Directory
|
3
data/X-GNOME-Shell-Utilities.directory.desktop.in
Normal file
3
data/X-GNOME-Shell-Utilities.directory.desktop.in
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=Utilities
|
||||||
|
Type=Directory
|
40
data/cldr2json/README.md
Normal file
40
data/cldr2json/README.md
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
cldr2json
|
||||||
|
=========
|
||||||
|
|
||||||
|
This script converts Unicode CLDR android keyboard layouts to JSON usable by
|
||||||
|
GNOME Shell.
|
||||||
|
|
||||||
|
CLDR keyboard layouts can be found at
|
||||||
|
<http://www.unicode.org/Public/cldr/latest/keyboards.zip>
|
||||||
|
|
||||||
|
|
||||||
|
Usage
|
||||||
|
=====
|
||||||
|
|
||||||
|
./cldr2json <input file or directory> <output directory>
|
||||||
|
|
||||||
|
example:
|
||||||
|
|
||||||
|
./cldr2json cldr/keyboards/android/ json_layouts/
|
||||||
|
|
||||||
|
|
||||||
|
Keyboard layout mapping
|
||||||
|
=======================
|
||||||
|
|
||||||
|
Unicode CLDR layout identifiers are language codes, while XKB layout
|
||||||
|
identifiers are... something else. The mapping between the two currently uses
|
||||||
|
heuristic based on the layout descriptions, in this order:
|
||||||
|
|
||||||
|
- if the CLDR layout description matches an XKB layout description, chose its
|
||||||
|
XKB identifier
|
||||||
|
- if one word of the CLDR layout description matches an XKB layout
|
||||||
|
description, chose its XKB identifier
|
||||||
|
- if the CLDR layout description matches one word of an XKB layout description,
|
||||||
|
chose its XKB identifier
|
||||||
|
|
||||||
|
That doesn't always work. For instance it fails for "en" language, that should
|
||||||
|
match "us" XKB identifier. For such cases, there is a mapping in
|
||||||
|
LOCALE_TO_XKB_OVERRIDES at the top of the script. If you discover a weird
|
||||||
|
mapping of if you get a "failed to find XKB mapping for <locale>" warning then
|
||||||
|
please consider adding an override there.
|
||||||
|
|
212
data/cldr2json/cldr2json.py
Executable file
212
data/cldr2json/cldr2json.py
Executable file
|
@ -0,0 +1,212 @@
|
||||||
|
#!/usr/bin/python3
|
||||||
|
#
|
||||||
|
# Copyright 2015 Daiki Ueno <dueno@src.gnome.org>
|
||||||
|
# 2016 Parag Nemade <pnemade@redhat.com>
|
||||||
|
# 2017 Alan <alan@boum.org>
|
||||||
|
#
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Lesser General Public License as
|
||||||
|
# published by the Free Software Foundation; either version 2 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful, but
|
||||||
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
# Lesser General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Lesser General Public
|
||||||
|
# License along with this program; if not, see
|
||||||
|
# <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
import glob
|
||||||
|
import json
|
||||||
|
import locale
|
||||||
|
import logging
|
||||||
|
import os
|
||||||
|
import re
|
||||||
|
import sys
|
||||||
|
import xml.etree.ElementTree
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('GnomeDesktop', '3.0') # NOQA: E402
|
||||||
|
from gi.repository import GnomeDesktop
|
||||||
|
|
||||||
|
ESCAPE_PATTERN = re.compile(r'\\u\{([0-9A-Fa-f]+?)\}')
|
||||||
|
ISO_PATTERN = re.compile(r'[A-E]([0-9]+)')
|
||||||
|
|
||||||
|
LOCALE_TO_XKB_OVERRIDES = {
|
||||||
|
'af': 'za',
|
||||||
|
'en': 'us',
|
||||||
|
'en-GB': 'uk',
|
||||||
|
'es-US': 'latam',
|
||||||
|
'fr-CA': 'ca',
|
||||||
|
'hi': 'in+bolnagri',
|
||||||
|
'ky': 'kg',
|
||||||
|
'nl-BE': 'be',
|
||||||
|
'zu': None
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
def parse_single_key(value):
|
||||||
|
def unescape(m):
|
||||||
|
return chr(int(m.group(1), 16))
|
||||||
|
value = ESCAPE_PATTERN.sub(unescape, value)
|
||||||
|
return value
|
||||||
|
|
||||||
|
|
||||||
|
def parse_rows(keymap):
|
||||||
|
unsorted_rows = {}
|
||||||
|
for _map in keymap.iter('map'):
|
||||||
|
value = _map.get('to')
|
||||||
|
key = [parse_single_key(value)]
|
||||||
|
iso = _map.get('iso')
|
||||||
|
if not ISO_PATTERN.match(iso):
|
||||||
|
sys.stderr.write('invalid ISO key name: %s\n' % iso)
|
||||||
|
continue
|
||||||
|
if not iso[0] in unsorted_rows:
|
||||||
|
unsorted_rows[iso[0]] = []
|
||||||
|
unsorted_rows[iso[0]].append((int(iso[1:]), key))
|
||||||
|
# add subkeys
|
||||||
|
longPress = _map.get('longPress')
|
||||||
|
if longPress:
|
||||||
|
for value in longPress.split(' '):
|
||||||
|
subkey = parse_single_key(value)
|
||||||
|
key.append(subkey)
|
||||||
|
|
||||||
|
rows = []
|
||||||
|
for k, v in sorted(list(unsorted_rows.items()),
|
||||||
|
key=lambda x: x[0],
|
||||||
|
reverse=True):
|
||||||
|
row = []
|
||||||
|
for key in sorted(v, key=lambda x: x):
|
||||||
|
row.append({ 'strings': key[1] })
|
||||||
|
rows.append(row)
|
||||||
|
|
||||||
|
return rows
|
||||||
|
|
||||||
|
|
||||||
|
def convert_xml(tree):
|
||||||
|
root = {}
|
||||||
|
for xml_keyboard in tree.iter("keyboard"):
|
||||||
|
locale_full = xml_keyboard.get("locale")
|
||||||
|
locale, sep, end = locale_full.partition("-t-")
|
||||||
|
root["locale"] = locale
|
||||||
|
for xml_name in tree.iter("name"):
|
||||||
|
name = xml_name.get("value")
|
||||||
|
root["name"] = name
|
||||||
|
root["levels"] = []
|
||||||
|
# parse levels
|
||||||
|
for index, keymap in enumerate(tree.iter('keyMap')):
|
||||||
|
# FIXME: heuristics here
|
||||||
|
modifiers = keymap.get('modifiers')
|
||||||
|
if not modifiers:
|
||||||
|
mode = 'default'
|
||||||
|
modifiers = ''
|
||||||
|
elif 'shift' in modifiers.split(' '):
|
||||||
|
mode = 'latched'
|
||||||
|
modifiers = 'shift'
|
||||||
|
else:
|
||||||
|
mode = 'locked'
|
||||||
|
level = {}
|
||||||
|
level["level"] = modifiers
|
||||||
|
level["mode"] = mode
|
||||||
|
level["rows"] = parse_rows(keymap)
|
||||||
|
root["levels"].append(level)
|
||||||
|
return root
|
||||||
|
|
||||||
|
|
||||||
|
def locale_to_xkb(locale, name):
|
||||||
|
if locale in sorted(LOCALE_TO_XKB_OVERRIDES.keys()):
|
||||||
|
xkb = LOCALE_TO_XKB_OVERRIDES[locale]
|
||||||
|
logging.debug("override for %s → %s",
|
||||||
|
locale, xkb)
|
||||||
|
if xkb:
|
||||||
|
return xkb
|
||||||
|
else:
|
||||||
|
raise KeyError("layout %s explicitly disabled in overrides"
|
||||||
|
% locale)
|
||||||
|
xkb_names = sorted(name_to_xkb.keys())
|
||||||
|
if name in xkb_names:
|
||||||
|
return name_to_xkb[name]
|
||||||
|
else:
|
||||||
|
logging.debug("name %s failed" % name)
|
||||||
|
for sub_name in name.split(' '):
|
||||||
|
if sub_name in xkb_names:
|
||||||
|
xkb = name_to_xkb[sub_name]
|
||||||
|
logging.debug("dumb mapping failed but match with locale word: "
|
||||||
|
"%s (%s) → %s (%s)",
|
||||||
|
locale, name, xkb, sub_name)
|
||||||
|
return xkb
|
||||||
|
else:
|
||||||
|
logging.debug("sub_name failed")
|
||||||
|
for xkb_name in xkb_names:
|
||||||
|
for xkb_sub_name in xkb_name.split(' '):
|
||||||
|
if xkb_sub_name.strip('()') == name:
|
||||||
|
xkb = name_to_xkb[xkb_name]
|
||||||
|
logging.debug("dumb mapping failed but match with xkb word: "
|
||||||
|
"%s (%s) → %s (%s)",
|
||||||
|
locale, name, xkb, xkb_name)
|
||||||
|
return xkb
|
||||||
|
raise KeyError("failed to find XKB mapping for %s" % locale)
|
||||||
|
|
||||||
|
|
||||||
|
def convert_file(source_file, destination_path):
|
||||||
|
logging.info("Parsing %s", source_file)
|
||||||
|
|
||||||
|
itree = xml.etree.ElementTree.ElementTree()
|
||||||
|
itree.parse(source_file)
|
||||||
|
|
||||||
|
root = convert_xml(itree)
|
||||||
|
|
||||||
|
try:
|
||||||
|
xkb_name = locale_to_xkb(root["locale"], root["name"])
|
||||||
|
except KeyError as e:
|
||||||
|
logging.warning(e)
|
||||||
|
return False
|
||||||
|
destination_file = os.path.join(destination_path, xkb_name + ".json")
|
||||||
|
|
||||||
|
try:
|
||||||
|
with open(destination_file, 'x', encoding="utf-8") as dest_fd:
|
||||||
|
json.dump(root, dest_fd, ensure_ascii=False, indent=2, sort_keys=True)
|
||||||
|
except FileExistsError as e:
|
||||||
|
logging.info("File %s exists, not updating", destination_file)
|
||||||
|
return False
|
||||||
|
|
||||||
|
logging.debug("written %s", destination_file)
|
||||||
|
|
||||||
|
|
||||||
|
def load_xkb_mappings():
|
||||||
|
xkb = GnomeDesktop.XkbInfo()
|
||||||
|
layouts = xkb.get_all_layouts()
|
||||||
|
name_to_xkb = {}
|
||||||
|
|
||||||
|
for layout in layouts:
|
||||||
|
name = xkb.get_layout_info(layout).display_name
|
||||||
|
name_to_xkb[name] = layout
|
||||||
|
|
||||||
|
return name_to_xkb
|
||||||
|
|
||||||
|
|
||||||
|
locale.setlocale(locale.LC_ALL, "C")
|
||||||
|
name_to_xkb = load_xkb_mappings()
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
if "DEBUG" in os.environ:
|
||||||
|
logging.basicConfig(level=logging.DEBUG)
|
||||||
|
|
||||||
|
if len(sys.argv) < 2:
|
||||||
|
print("supply a CLDR keyboard file")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
if len(sys.argv) < 3:
|
||||||
|
print("supply an output directory")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
source = sys.argv[1]
|
||||||
|
destination = sys.argv[2]
|
||||||
|
if os.path.isfile(source):
|
||||||
|
convert_file(source, destination)
|
||||||
|
elif os.path.isdir(source):
|
||||||
|
for path in glob.glob(source + "/*-t-k0-android.xml"):
|
||||||
|
convert_file(path, destination)
|
0
data/cldr2json/test/__init__.py
Normal file
0
data/cldr2json/test/__init__.py
Normal file
138
data/cldr2json/test/data/fr-t-k0-android.xml
Normal file
138
data/cldr2json/test/data/fr-t-k0-android.xml
Normal file
|
@ -0,0 +1,138 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE keyboard SYSTEM "../dtd/ldmlKeyboard.dtd">
|
||||||
|
<keyboard locale="fr-t-k0-android">
|
||||||
|
<version platform="4.4" number="$Revision: 11914 $"/>
|
||||||
|
<names>
|
||||||
|
<name value="French"/>
|
||||||
|
</names>
|
||||||
|
<keyMap>
|
||||||
|
<map iso="D01" to="a" longPress="à â % æ á ä ã å ā ª"/> <!-- Q -->
|
||||||
|
<map iso="D02" to="z"/> <!-- W -->
|
||||||
|
<map iso="D03" to="e" longPress="é è ê ë % ę ė ē"/>
|
||||||
|
<map iso="D04" to="r"/>
|
||||||
|
<map iso="D05" to="t"/>
|
||||||
|
<map iso="D06" to="y" longPress="% ÿ"/>
|
||||||
|
<map iso="D07" to="u" longPress="ù û % ü ú ū"/>
|
||||||
|
<map iso="D08" to="i" longPress="î % ï ì í į ī"/>
|
||||||
|
<map iso="D09" to="o" longPress="ô œ % ö ò ó õ ø ō º"/>
|
||||||
|
<map iso="D10" to="p"/>
|
||||||
|
<map iso="C01" to="q"/> <!-- A -->
|
||||||
|
<map iso="C02" to="s"/>
|
||||||
|
<map iso="C03" to="d"/>
|
||||||
|
<map iso="C04" to="f"/>
|
||||||
|
<map iso="C05" to="g"/>
|
||||||
|
<map iso="C06" to="h"/>
|
||||||
|
<map iso="C07" to="j"/>
|
||||||
|
<map iso="C08" to="k"/>
|
||||||
|
<map iso="C09" to="l"/>
|
||||||
|
<map iso="C10" to="m"/> <!-- ; -->
|
||||||
|
<map iso="B01" to="w"/> <!-- Z -->
|
||||||
|
<map iso="B02" to="x"/>
|
||||||
|
<map iso="B03" to="c" longPress="ç ć č"/>
|
||||||
|
<map iso="B04" to="v"/>
|
||||||
|
<map iso="B05" to="b"/>
|
||||||
|
<map iso="B06" to="n"/>
|
||||||
|
<map iso="B07" to="'" longPress="‘ ’ ‹ ›"/> <!-- M -->
|
||||||
|
<map iso="A02" to=","/> <!-- (key to left of space) -->
|
||||||
|
<map iso="A03" to=" "/> <!-- space -->
|
||||||
|
<map iso="A04" to="." longPress="# ! , ? - : ' @"/> <!-- (key to right of space) -->
|
||||||
|
</keyMap>
|
||||||
|
<keyMap modifiers="shift caps">
|
||||||
|
<map iso="D01" to="A" longPress="À Â % Æ Á Ä Ã Å Ā ª"/> <!-- Q -->
|
||||||
|
<map iso="D02" to="Z"/> <!-- W -->
|
||||||
|
<map iso="D03" to="E" longPress="É È Ê Ë % Ę Ė Ē"/>
|
||||||
|
<map iso="D04" to="R"/>
|
||||||
|
<map iso="D05" to="T"/>
|
||||||
|
<map iso="D06" to="Y" longPress="% Ÿ"/>
|
||||||
|
<map iso="D07" to="U" longPress="Ù Û % Ü Ú Ū"/>
|
||||||
|
<map iso="D08" to="I" longPress="Î % Ï Ì Í Į Ī"/>
|
||||||
|
<map iso="D09" to="O" longPress="Ô Œ % Ö Ò Ó Õ Ø Ō º"/>
|
||||||
|
<map iso="D10" to="P"/>
|
||||||
|
<map iso="C01" to="Q"/> <!-- A -->
|
||||||
|
<map iso="C02" to="S"/>
|
||||||
|
<map iso="C03" to="D"/>
|
||||||
|
<map iso="C04" to="F"/>
|
||||||
|
<map iso="C05" to="G"/>
|
||||||
|
<map iso="C06" to="H"/>
|
||||||
|
<map iso="C07" to="J"/>
|
||||||
|
<map iso="C08" to="K"/>
|
||||||
|
<map iso="C09" to="L"/>
|
||||||
|
<map iso="C10" to="M"/> <!-- ; -->
|
||||||
|
<map iso="B01" to="W"/> <!-- Z -->
|
||||||
|
<map iso="B02" to="X"/>
|
||||||
|
<map iso="B03" to="C" longPress="Ç Ć Č"/>
|
||||||
|
<map iso="B04" to="V"/>
|
||||||
|
<map iso="B05" to="B"/>
|
||||||
|
<map iso="B06" to="N"/>
|
||||||
|
<map iso="B07" to="'" longPress="‘ ’ ‹ ›"/> <!-- M -->
|
||||||
|
<map iso="A02" to=","/> <!-- (key to left of space) -->
|
||||||
|
<map iso="A03" to=" "/> <!-- space -->
|
||||||
|
<map iso="A04" to="." longPress="# ! , ? - : ' @"/> <!-- (key to right of space) -->
|
||||||
|
</keyMap>
|
||||||
|
<keyMap modifiers="opt">
|
||||||
|
<map iso="D01" to="1" longPress="¹ ½ ⅓ ¼ ⅛"/> <!-- Q base=a -->
|
||||||
|
<map iso="D02" to="2" longPress="² ⅔"/> <!-- W base=z -->
|
||||||
|
<map iso="D03" to="3" longPress="³ ¾ ⅜"/> <!-- E -->
|
||||||
|
<map iso="D04" to="4" longPress="⁴"/> <!-- R -->
|
||||||
|
<map iso="D05" to="5" longPress="⅝"/> <!-- T -->
|
||||||
|
<map iso="D06" to="6"/> <!-- Y -->
|
||||||
|
<map iso="D07" to="7" longPress="⅞"/> <!-- U -->
|
||||||
|
<map iso="D08" to="8"/> <!-- I -->
|
||||||
|
<map iso="D09" to="9"/> <!-- O -->
|
||||||
|
<map iso="D10" to="0" longPress="ⁿ ∅"/> <!-- P -->
|
||||||
|
<map iso="C01" to="@"/> <!-- A base=q -->
|
||||||
|
<map iso="C02" to="#"/> <!-- S -->
|
||||||
|
<map iso="C03" to="€" longPress="¢ £ $ ¥ ₱"/> <!-- D -->
|
||||||
|
<map iso="C04" to="%" longPress="‰"/> <!-- F -->
|
||||||
|
<map iso="C05" to="&"/> <!-- G -->
|
||||||
|
<map iso="C06" to="-" longPress="_ – — ·"/> <!-- H -->
|
||||||
|
<map iso="C07" to="+" longPress="±"/> <!-- J -->
|
||||||
|
<map iso="C08" to="(" longPress="< { ["/> <!-- K -->
|
||||||
|
<map iso="C09" to=")" longPress="> } ]"/> <!-- L -->
|
||||||
|
<map iso="B01" to="*" longPress="† ‡ ★"/> <!-- Z base=w -->
|
||||||
|
<map iso="B02" to="\u{22}" longPress="“ ” « »"/> <!-- X to= " -->
|
||||||
|
<map iso="B03" to="'" longPress="‘ ’ ‹ ›"/> <!-- C -->
|
||||||
|
<map iso="B04" to=":"/> <!-- V -->
|
||||||
|
<map iso="B05" to=";"/> <!-- B -->
|
||||||
|
<map iso="B06" to="!" longPress="¡"/> <!-- N -->
|
||||||
|
<map iso="B07" to="?" longPress="¿"/> <!-- M base=' -->
|
||||||
|
<map iso="A00" to="_"/> <!-- (3 keys to left of space) -->
|
||||||
|
<map iso="A01" to="/"/> <!-- (2 keys to left of space) -->
|
||||||
|
<map iso="A02" to=" "/> <!-- (key to left of space) base=, -->
|
||||||
|
<map iso="A03" to=","/> <!-- space -->
|
||||||
|
<map iso="A04" to="." longPress="…"/> <!-- (key to right of space) -->
|
||||||
|
</keyMap>
|
||||||
|
<keyMap modifiers="opt+shift">
|
||||||
|
<map iso="D01" to="~"/> <!-- Q base=a -->
|
||||||
|
<map iso="D02" to="`"/> <!-- W base=z -->
|
||||||
|
<map iso="D03" to="|"/> <!-- E -->
|
||||||
|
<map iso="D04" to="•" longPress="♪ ♥ ♠ ♦ ♣"/> <!-- R -->
|
||||||
|
<map iso="D05" to="√"/> <!-- T -->
|
||||||
|
<map iso="D06" to="Π" longPress="π"/> <!-- Y -->
|
||||||
|
<map iso="D07" to="÷"/> <!-- U -->
|
||||||
|
<map iso="D08" to="×"/> <!-- I -->
|
||||||
|
<map iso="D09" to="¶" longPress="§"/> <!-- O -->
|
||||||
|
<map iso="D10" to="∆"/> <!-- P -->
|
||||||
|
<map iso="C01" to="£"/> <!-- A base=q -->
|
||||||
|
<map iso="C02" to="¥"/> <!-- S -->
|
||||||
|
<map iso="C03" to="$" longPress="¢"/> <!-- D -->
|
||||||
|
<map iso="C04" to="¢"/> <!-- F -->
|
||||||
|
<map iso="C05" to="^" longPress="↑ ↓ ← →"/> <!-- G -->
|
||||||
|
<map iso="C06" to="°" longPress="′ ″"/> <!-- H -->
|
||||||
|
<map iso="C07" to="=" longPress="≠ ≈ ∞"/> <!-- J -->
|
||||||
|
<map iso="C08" to="{"/> <!-- K -->
|
||||||
|
<map iso="C09" to="}"/> <!-- L -->
|
||||||
|
<map iso="B01" to="\"/> <!-- Z base=w -->
|
||||||
|
<map iso="B02" to="©"/> <!-- X -->
|
||||||
|
<map iso="B03" to="®"/> <!-- C -->
|
||||||
|
<map iso="B04" to="™"/> <!-- V -->
|
||||||
|
<map iso="B05" to="℅"/> <!-- B -->
|
||||||
|
<map iso="B06" to="["/> <!-- N -->
|
||||||
|
<map iso="B07" to="]"/> <!-- M base=' -->
|
||||||
|
<map iso="A00" to="<" longPress="‹ ≤ «"/> <!-- (3 keys to left of space) -->
|
||||||
|
<map iso="A01" to=">" longPress="› ≥ »"/> <!-- (2 keys to left of space) -->
|
||||||
|
<map iso="A02" to=" "/> <!-- (key to left of space) base=, -->
|
||||||
|
<map iso="A03" to=","/> <!-- space -->
|
||||||
|
<map iso="A04" to="." longPress="…"/> <!-- (key to right of space) -->
|
||||||
|
</keyMap>
|
||||||
|
</keyboard>
|
614
data/cldr2json/test/data/fr.json
Normal file
614
data/cldr2json/test/data/fr.json
Normal file
|
@ -0,0 +1,614 @@
|
||||||
|
{
|
||||||
|
"levels": [
|
||||||
|
{
|
||||||
|
"level": "",
|
||||||
|
"mode": "default",
|
||||||
|
"rows": [
|
||||||
|
[
|
||||||
|
[
|
||||||
|
"a",
|
||||||
|
"à",
|
||||||
|
"â",
|
||||||
|
"%",
|
||||||
|
"æ",
|
||||||
|
"á",
|
||||||
|
"ä",
|
||||||
|
"ã",
|
||||||
|
"å",
|
||||||
|
"ā",
|
||||||
|
"ª"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"z"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"e",
|
||||||
|
"é",
|
||||||
|
"è",
|
||||||
|
"ê",
|
||||||
|
"ë",
|
||||||
|
"%",
|
||||||
|
"ę",
|
||||||
|
"ė",
|
||||||
|
"ē"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"r"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"t"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"y",
|
||||||
|
"%",
|
||||||
|
"ÿ"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"u",
|
||||||
|
"ù",
|
||||||
|
"û",
|
||||||
|
"%",
|
||||||
|
"ü",
|
||||||
|
"ú",
|
||||||
|
"ū"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"i",
|
||||||
|
"î",
|
||||||
|
"%",
|
||||||
|
"ï",
|
||||||
|
"ì",
|
||||||
|
"í",
|
||||||
|
"į",
|
||||||
|
"ī"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"o",
|
||||||
|
"ô",
|
||||||
|
"œ",
|
||||||
|
"%",
|
||||||
|
"ö",
|
||||||
|
"ò",
|
||||||
|
"ó",
|
||||||
|
"õ",
|
||||||
|
"ø",
|
||||||
|
"ō",
|
||||||
|
"º"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"p"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
[
|
||||||
|
"q"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"s"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"d"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"f"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"g"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"h"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"j"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"k"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"l"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"m"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
[
|
||||||
|
"w"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"x"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"c",
|
||||||
|
"ç",
|
||||||
|
"ć",
|
||||||
|
"č"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"v"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"b"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"n"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"'",
|
||||||
|
"‘",
|
||||||
|
"’",
|
||||||
|
"‹",
|
||||||
|
"›"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
[
|
||||||
|
","
|
||||||
|
],
|
||||||
|
[
|
||||||
|
" "
|
||||||
|
],
|
||||||
|
[
|
||||||
|
".",
|
||||||
|
"#",
|
||||||
|
"!",
|
||||||
|
",",
|
||||||
|
"?",
|
||||||
|
"-",
|
||||||
|
":",
|
||||||
|
"'",
|
||||||
|
"@"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"level": "shift",
|
||||||
|
"mode": "latched",
|
||||||
|
"rows": [
|
||||||
|
[
|
||||||
|
[
|
||||||
|
"A",
|
||||||
|
"À",
|
||||||
|
"Â",
|
||||||
|
"%",
|
||||||
|
"Æ",
|
||||||
|
"Á",
|
||||||
|
"Ä",
|
||||||
|
"Ã",
|
||||||
|
"Å",
|
||||||
|
"Ā",
|
||||||
|
"ª"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"Z"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"E",
|
||||||
|
"É",
|
||||||
|
"È",
|
||||||
|
"Ê",
|
||||||
|
"Ë",
|
||||||
|
"%",
|
||||||
|
"Ę",
|
||||||
|
"Ė",
|
||||||
|
"Ē"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"R"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"T"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"Y",
|
||||||
|
"%",
|
||||||
|
"Ÿ"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"U",
|
||||||
|
"Ù",
|
||||||
|
"Û",
|
||||||
|
"%",
|
||||||
|
"Ü",
|
||||||
|
"Ú",
|
||||||
|
"Ū"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"I",
|
||||||
|
"Î",
|
||||||
|
"%",
|
||||||
|
"Ï",
|
||||||
|
"Ì",
|
||||||
|
"Í",
|
||||||
|
"Į",
|
||||||
|
"Ī"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"O",
|
||||||
|
"Ô",
|
||||||
|
"Œ",
|
||||||
|
"%",
|
||||||
|
"Ö",
|
||||||
|
"Ò",
|
||||||
|
"Ó",
|
||||||
|
"Õ",
|
||||||
|
"Ø",
|
||||||
|
"Ō",
|
||||||
|
"º"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"P"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
[
|
||||||
|
"Q"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"S"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"D"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"F"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"G"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"H"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"J"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"K"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"L"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"M"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
[
|
||||||
|
"W"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"X"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"C",
|
||||||
|
"Ç",
|
||||||
|
"Ć",
|
||||||
|
"Č"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"V"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"B"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"N"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"'",
|
||||||
|
"‘",
|
||||||
|
"’",
|
||||||
|
"‹",
|
||||||
|
"›"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
[
|
||||||
|
","
|
||||||
|
],
|
||||||
|
[
|
||||||
|
" "
|
||||||
|
],
|
||||||
|
[
|
||||||
|
".",
|
||||||
|
"#",
|
||||||
|
"!",
|
||||||
|
",",
|
||||||
|
"?",
|
||||||
|
"-",
|
||||||
|
":",
|
||||||
|
"'",
|
||||||
|
"@"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"level": "opt",
|
||||||
|
"mode": "locked",
|
||||||
|
"rows": [
|
||||||
|
[
|
||||||
|
[
|
||||||
|
"1",
|
||||||
|
"¹",
|
||||||
|
"½",
|
||||||
|
"⅓",
|
||||||
|
"¼",
|
||||||
|
"⅛"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"2",
|
||||||
|
"²",
|
||||||
|
"⅔"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"3",
|
||||||
|
"³",
|
||||||
|
"¾",
|
||||||
|
"⅜"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"4",
|
||||||
|
"⁴"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"5",
|
||||||
|
"⅝"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"6"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"7",
|
||||||
|
"⅞"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"8"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"9"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0",
|
||||||
|
"ⁿ",
|
||||||
|
"∅"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
[
|
||||||
|
"@"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"#"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"€",
|
||||||
|
"¢",
|
||||||
|
"£",
|
||||||
|
"$",
|
||||||
|
"¥",
|
||||||
|
"₱"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"%",
|
||||||
|
"‰"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"&"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"-",
|
||||||
|
"_",
|
||||||
|
"–",
|
||||||
|
"—",
|
||||||
|
"·"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"+",
|
||||||
|
"±"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"(",
|
||||||
|
"<",
|
||||||
|
"{",
|
||||||
|
"["
|
||||||
|
],
|
||||||
|
[
|
||||||
|
")",
|
||||||
|
">",
|
||||||
|
"}",
|
||||||
|
"]"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
[
|
||||||
|
"*",
|
||||||
|
"†",
|
||||||
|
"‡",
|
||||||
|
"★"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"\"",
|
||||||
|
"“",
|
||||||
|
"”",
|
||||||
|
"«",
|
||||||
|
"»"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"'",
|
||||||
|
"‘",
|
||||||
|
"’",
|
||||||
|
"‹",
|
||||||
|
"›"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
":"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
";"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"!",
|
||||||
|
"¡"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"?",
|
||||||
|
"¿"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
[
|
||||||
|
"_"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"/"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
" "
|
||||||
|
],
|
||||||
|
[
|
||||||
|
","
|
||||||
|
],
|
||||||
|
[
|
||||||
|
".",
|
||||||
|
"…"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"level": "opt+shift",
|
||||||
|
"mode": "locked",
|
||||||
|
"rows": [
|
||||||
|
[
|
||||||
|
[
|
||||||
|
"~"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"`"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"|"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"•",
|
||||||
|
"♪",
|
||||||
|
"♥",
|
||||||
|
"♠",
|
||||||
|
"♦",
|
||||||
|
"♣"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"√"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"Π",
|
||||||
|
"π"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"÷"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"×"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"¶",
|
||||||
|
"§"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"∆"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
[
|
||||||
|
"£"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"¥"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"$",
|
||||||
|
"¢"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"¢"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"^",
|
||||||
|
"↑",
|
||||||
|
"↓",
|
||||||
|
"←",
|
||||||
|
"→"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"°",
|
||||||
|
"′",
|
||||||
|
"″"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"=",
|
||||||
|
"≠",
|
||||||
|
"≈",
|
||||||
|
"∞"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"{"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"}"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
[
|
||||||
|
"\\"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"©"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"®"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"™"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"℅"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"["
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"]"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
[
|
||||||
|
"<",
|
||||||
|
"‹",
|
||||||
|
"≤",
|
||||||
|
"«"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
">",
|
||||||
|
"›",
|
||||||
|
"≥",
|
||||||
|
"»"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
" "
|
||||||
|
],
|
||||||
|
[
|
||||||
|
","
|
||||||
|
],
|
||||||
|
[
|
||||||
|
".",
|
||||||
|
"…"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"locale": "fr",
|
||||||
|
"name": "French"
|
||||||
|
}
|
212
data/cldr2json/test/test_cldr2json.py
Executable file
212
data/cldr2json/test/test_cldr2json.py
Executable file
|
@ -0,0 +1,212 @@
|
||||||
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
import json
|
||||||
|
import tempfile
|
||||||
|
import unittest
|
||||||
|
import xml.etree.ElementTree
|
||||||
|
|
||||||
|
import cldr2json
|
||||||
|
|
||||||
|
|
||||||
|
class TestParseSingleKey(unittest.TestCase):
|
||||||
|
def test_ascii(self):
|
||||||
|
self.assertEqual(cldr2json.parse_single_key("a"), "a")
|
||||||
|
|
||||||
|
def test_nonascii(self):
|
||||||
|
self.assertEqual(cldr2json.parse_single_key("Æ"), "Æ")
|
||||||
|
|
||||||
|
def test_twochars(self):
|
||||||
|
self.assertEqual(cldr2json.parse_single_key("ԵՒ"), "ԵՒ")
|
||||||
|
|
||||||
|
def test_decode(self):
|
||||||
|
self.assertEqual(cldr2json.parse_single_key("\\u{200D}"), "\u200d")
|
||||||
|
|
||||||
|
def test_decode_threechars(self):
|
||||||
|
self.assertEqual(cldr2json.parse_single_key("ज\\u{94D}ञ"), "ज\u094Dञ")
|
||||||
|
|
||||||
|
|
||||||
|
class TestParseRow(unittest.TestCase):
|
||||||
|
def test_parse_row(self):
|
||||||
|
xml_string = """
|
||||||
|
<keyMap>
|
||||||
|
<map iso="D01" to="a" longPress="à â % æ á ä ã å ā ª"/> <!-- Q -->
|
||||||
|
<map iso="D02" to="z"/> <!-- W -->
|
||||||
|
<map iso="D03" to="e" longPress="é è ê ë % ę ė ē"/>
|
||||||
|
<map iso="D04" to="r"/>
|
||||||
|
<map iso="D05" to="t"/>
|
||||||
|
<map iso="D06" to="y" longPress="% ÿ"/>
|
||||||
|
<map iso="D07" to="u" longPress="ù û % ü ú ū"/>
|
||||||
|
<map iso="D08" to="i" longPress="î % ï ì í į ī"/>
|
||||||
|
<map iso="D09" to="o" longPress="ô œ % ö ò ó õ ø ō º"/>
|
||||||
|
<map iso="D10" to="p"/>
|
||||||
|
<map iso="C01" to="q"/> <!-- A -->
|
||||||
|
<map iso="C02" to="s"/>
|
||||||
|
<map iso="C03" to="d"/>
|
||||||
|
<map iso="C04" to="f"/>
|
||||||
|
<map iso="C05" to="g"/>
|
||||||
|
<map iso="C06" to="h"/>
|
||||||
|
<map iso="C07" to="j"/>
|
||||||
|
<map iso="C08" to="k"/>
|
||||||
|
<map iso="C09" to="l"/>
|
||||||
|
<map iso="C10" to="m"/> <!-- ; -->
|
||||||
|
<map iso="B01" to="w"/> <!-- Z -->
|
||||||
|
<map iso="B02" to="x"/>
|
||||||
|
<map iso="B03" to="c" longPress="ç ć č"/>
|
||||||
|
<map iso="B04" to="v"/>
|
||||||
|
<map iso="B05" to="b"/>
|
||||||
|
<map iso="B06" to="n"/>
|
||||||
|
<map iso="B07" to="'" longPress="‘ ’ ‹ ›"/> <!-- M -->
|
||||||
|
<map iso="A02" to=","/> <!-- (key to left of space) -->
|
||||||
|
<map iso="A03" to=" "/> <!-- space -->
|
||||||
|
<map iso="A04" to="." longPress="# ! , ? - : ' @"/> <!-- (key to right of space) -->
|
||||||
|
</keyMap>
|
||||||
|
"""
|
||||||
|
xml_tree = xml.etree.ElementTree.XML(xml_string)
|
||||||
|
json = [[
|
||||||
|
['a', 'à', 'â', '%', 'æ', 'á', 'ä', 'ã', 'å', 'ā', 'ª'],
|
||||||
|
['z'],
|
||||||
|
['e', 'é', 'è', 'ê', 'ë', '%', 'ę', 'ė', 'ē'],
|
||||||
|
['r'],
|
||||||
|
['t'],
|
||||||
|
['y', '%', 'ÿ'],
|
||||||
|
['u', 'ù', 'û', '%', 'ü', 'ú', 'ū'],
|
||||||
|
['i', 'î', '%', 'ï', 'ì', 'í', 'į', 'ī'],
|
||||||
|
['o', 'ô', 'œ', '%', 'ö', 'ò', 'ó', 'õ', 'ø', 'ō', 'º'],
|
||||||
|
['p']
|
||||||
|
], [
|
||||||
|
['q'],
|
||||||
|
['s'],
|
||||||
|
['d'],
|
||||||
|
['f'],
|
||||||
|
['g'],
|
||||||
|
['h'],
|
||||||
|
['j'],
|
||||||
|
['k'],
|
||||||
|
['l'],
|
||||||
|
['m']
|
||||||
|
], [
|
||||||
|
['w'],
|
||||||
|
['x'],
|
||||||
|
['c', 'ç', 'ć', 'č'],
|
||||||
|
['v'],
|
||||||
|
['b'],
|
||||||
|
['n'],
|
||||||
|
["'", '‘', '’', '‹', '›']
|
||||||
|
], [
|
||||||
|
[','],
|
||||||
|
[' '],
|
||||||
|
['.', '#', '!', ',', '?', '-', ':', "'", '@']
|
||||||
|
]]
|
||||||
|
self.assertEqual(cldr2json.parse_rows(xml_tree), json)
|
||||||
|
|
||||||
|
|
||||||
|
class TestConvertXml(unittest.TestCase):
|
||||||
|
def test_convert_xml(self):
|
||||||
|
xml_string = """<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE keyboard SYSTEM "../dtd/ldmlKeyboard.dtd">
|
||||||
|
<keyboard locale="fr-t-k0-android">
|
||||||
|
<version platform="4.4" number="$Revision: 11914 $"/>
|
||||||
|
<names>
|
||||||
|
<name value="French"/>
|
||||||
|
</names>
|
||||||
|
<keyMap>
|
||||||
|
<map iso="D01" to="a" longPress="à â % æ á ä ã å ā ª"/> <!-- Q -->
|
||||||
|
</keyMap>
|
||||||
|
<keyMap modifiers="shift caps">
|
||||||
|
<map iso="D01" to="A" longPress="À Â % Æ Á Ä Ã Å Ā ª"/> <!-- Q -->
|
||||||
|
</keyMap>
|
||||||
|
<keyMap modifiers="opt">
|
||||||
|
<map iso="D01" to="1" longPress="¹ ½ ⅓ ¼ ⅛"/> <!-- Q base=a -->
|
||||||
|
</keyMap>
|
||||||
|
<keyMap modifiers="opt+shift">
|
||||||
|
<map iso="D01" to="~"/> <!-- Q base=a -->
|
||||||
|
</keyMap>
|
||||||
|
</keyboard>
|
||||||
|
"""
|
||||||
|
xml_tree = xml.etree.ElementTree.XML(xml_string)
|
||||||
|
json = {
|
||||||
|
"locale": "fr",
|
||||||
|
"name": "French",
|
||||||
|
"levels": [
|
||||||
|
{
|
||||||
|
"level": "",
|
||||||
|
"mode": "default",
|
||||||
|
"rows": [
|
||||||
|
[
|
||||||
|
['a', 'à', 'â', '%', 'æ', 'á', 'ä', 'ã', 'å', 'ā', 'ª'],
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"level": "shift",
|
||||||
|
"mode": "latched",
|
||||||
|
"rows": [
|
||||||
|
[
|
||||||
|
['A', 'À', 'Â', '%', 'Æ', 'Á', 'Ä', 'Ã', 'Å', 'Ā', 'ª'],
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"level": "opt",
|
||||||
|
"mode": "locked",
|
||||||
|
"rows": [
|
||||||
|
[
|
||||||
|
["1", "¹", "½", "⅓", "¼", "⅛"],
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"level": "opt+shift",
|
||||||
|
"mode": "locked",
|
||||||
|
"rows": [
|
||||||
|
[
|
||||||
|
["~"],
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
self.assertEqual(cldr2json.convert_xml(xml_tree), json)
|
||||||
|
|
||||||
|
|
||||||
|
class TestConvertFile(unittest.TestCase):
|
||||||
|
def test_fr(self):
|
||||||
|
outdir = tempfile.mkdtemp()
|
||||||
|
cldr2json.convert_file("test/data/fr-t-k0-android.xml", outdir)
|
||||||
|
with open("test/data/fr.json", encoding="utf-8") as expected_json_fd:
|
||||||
|
expected_json = json.load(expected_json_fd)
|
||||||
|
with open(outdir + "/fr.json", encoding="utf-8") as actual_json_fd:
|
||||||
|
actual_json = json.load(actual_json_fd)
|
||||||
|
self.assertEqual(expected_json, actual_json)
|
||||||
|
|
||||||
|
|
||||||
|
class TestLocaleToXKB(unittest.TestCase):
|
||||||
|
def test_simple(self):
|
||||||
|
self.assertEqual(cldr2json.locale_to_xkb("fr", "French"),
|
||||||
|
"fr")
|
||||||
|
|
||||||
|
def test_fallback(self):
|
||||||
|
self.assertEqual(cldr2json.locale_to_xkb("nb", "Norwegian Bokmål"),
|
||||||
|
"no")
|
||||||
|
|
||||||
|
def test_fallback2(self):
|
||||||
|
self.assertEqual(cldr2json.locale_to_xkb("km", "Khmer"),
|
||||||
|
"kh")
|
||||||
|
|
||||||
|
def test_override(self):
|
||||||
|
self.assertEqual(cldr2json.locale_to_xkb("en-GB",
|
||||||
|
"English Great Britain"),
|
||||||
|
"uk")
|
||||||
|
|
||||||
|
|
||||||
|
class LoadXKBMapplings(unittest.TestCase):
|
||||||
|
def test_dictionnary(self):
|
||||||
|
self.assertIsInstance(cldr2json.load_xkb_mappings(), dict)
|
||||||
|
|
||||||
|
def test_mapping(self):
|
||||||
|
mapping = cldr2json.load_xkb_mappings()
|
||||||
|
self.assertEqual(mapping["French"], "fr")
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
11
data/dbus-interfaces/meson.build
Normal file
11
data/dbus-interfaces/meson.build
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
dbus_interfaces = [
|
||||||
|
'org.gnome.Shell.Extensions.xml',
|
||||||
|
'org.gnome.Shell.Introspect.xml',
|
||||||
|
'org.gnome.Shell.PadOsd.xml',
|
||||||
|
'org.gnome.Shell.Screencast.xml',
|
||||||
|
'org.gnome.Shell.Screenshot.xml',
|
||||||
|
'org.gnome.Shell.ScreenTime.xml',
|
||||||
|
'org.gnome.ShellSearchProvider.xml',
|
||||||
|
'org.gnome.ShellSearchProvider2.xml'
|
||||||
|
]
|
||||||
|
install_data(dbus_interfaces, install_dir: ifacedir)
|
5
data/dbus-interfaces/net.hadess.SensorProxy.xml
Normal file
5
data/dbus-interfaces/net.hadess.SensorProxy.xml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<node>
|
||||||
|
<interface name="net.hadess.SensorProxy">
|
||||||
|
<property name="HasAccelerometer" type="b" access="read"/>
|
||||||
|
</interface>
|
||||||
|
</node>
|
46
data/dbus-interfaces/net.hadess.SwitcherooControl.xml
Normal file
46
data/dbus-interfaces/net.hadess.SwitcherooControl.xml
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
|
||||||
|
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
||||||
|
|
||||||
|
<node>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
net.hadess.SwitcherooControl:
|
||||||
|
@short_description: D-Bus proxy to access dual-GPU controls.
|
||||||
|
|
||||||
|
After checking the availability of two switchable GPUs in the machine,
|
||||||
|
check the value of net.hadess.SwitcherooControl.HasDualGpu to see
|
||||||
|
if running applications on the discrete GPU should be offered.
|
||||||
|
|
||||||
|
The object path will be "/net/hadess/SwitcherooControl".
|
||||||
|
-->
|
||||||
|
<interface name="net.hadess.SwitcherooControl">
|
||||||
|
<!--
|
||||||
|
HasDualGpu:
|
||||||
|
|
||||||
|
Whether two switchable GPUs are present on the system. This property
|
||||||
|
has been obsoleted in favour of the "NumGPUs" property.
|
||||||
|
-->
|
||||||
|
<property name="HasDualGpu" type="b" access="read"/>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
NumGPUs:
|
||||||
|
|
||||||
|
The number of GPUs available on the system. Note that while having no
|
||||||
|
GPUs is unlikely, consumers of this API should probably not throw errors
|
||||||
|
if that were the case.
|
||||||
|
-->
|
||||||
|
<property name="NumGPUs" type="u" access="read"/>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
GPUs:
|
||||||
|
|
||||||
|
An array of key-pair values representing each GPU. The key named "Name" (s)
|
||||||
|
will contain a user-facing name for the GPU, the "Environment" (as) key will
|
||||||
|
contain an array of even number of strings, each being an environment
|
||||||
|
variable to set to use the GPU, followed by its value, the "Default" (b) key
|
||||||
|
will tag the default (usually integrated) GPU.
|
||||||
|
-->
|
||||||
|
<property name="GPUs" type="aa{sv}" access="read"/>
|
||||||
|
|
||||||
|
</interface>
|
||||||
|
</node>
|
78
data/dbus-interfaces/net.reactivated.Fprint.Device.xml
Normal file
78
data/dbus-interfaces/net.reactivated.Fprint.Device.xml
Normal file
|
@ -0,0 +1,78 @@
|
||||||
|
<!DOCTYPE node PUBLIC
|
||||||
|
"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
|
||||||
|
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
||||||
|
|
||||||
|
<node>
|
||||||
|
<interface name="net.reactivated.Fprint.Device">
|
||||||
|
<method name="ListEnrolledFingers">
|
||||||
|
<arg type="s" name="username" direction="in">
|
||||||
|
</arg>
|
||||||
|
<arg type="as" name="enrolled_fingers" direction="out">
|
||||||
|
</arg>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<method name="DeleteEnrolledFingers">
|
||||||
|
<arg type="s" name="username" direction="in">
|
||||||
|
</arg>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<method name="DeleteEnrolledFingers2">
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<method name="Claim">
|
||||||
|
<arg type="s" name="username" direction="in">
|
||||||
|
</arg>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<method name="Release">
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<method name="VerifyStart">
|
||||||
|
<arg type="s" name="finger_name" direction="in">
|
||||||
|
</arg>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<method name="VerifyStop">
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<signal name="VerifyFingerSelected">
|
||||||
|
<arg type="s" name="finger_name">
|
||||||
|
</arg>
|
||||||
|
</signal>
|
||||||
|
|
||||||
|
<signal name="VerifyStatus">
|
||||||
|
<arg type="s" name="result">
|
||||||
|
</arg>
|
||||||
|
|
||||||
|
<arg type="b" name="done">
|
||||||
|
</arg>
|
||||||
|
|
||||||
|
</signal>
|
||||||
|
|
||||||
|
<method name="EnrollStart">
|
||||||
|
<arg type="s" name="finger_name" direction="in">
|
||||||
|
</arg>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<method name="EnrollStop">
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<signal name="EnrollStatus">
|
||||||
|
<arg type="s" name="result">
|
||||||
|
</arg>
|
||||||
|
|
||||||
|
<arg type="b" name="done">
|
||||||
|
</arg>
|
||||||
|
</signal>
|
||||||
|
|
||||||
|
<property name="name" type="s" access="read">
|
||||||
|
</property>
|
||||||
|
|
||||||
|
<property name="num-enroll-stages" type="i" access="read">
|
||||||
|
</property>
|
||||||
|
|
||||||
|
<property name="scan-type" type="s" access="read">
|
||||||
|
</property>
|
||||||
|
|
||||||
|
</interface>
|
||||||
|
</node>
|
18
data/dbus-interfaces/net.reactivated.Fprint.Manager.xml
Normal file
18
data/dbus-interfaces/net.reactivated.Fprint.Manager.xml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
<!DOCTYPE node PUBLIC
|
||||||
|
"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
|
||||||
|
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
||||||
|
<node>
|
||||||
|
<interface name="net.reactivated.Fprint.Manager">
|
||||||
|
|
||||||
|
<method name="GetDevices">
|
||||||
|
<arg type="ao" name="devices" direction="out">
|
||||||
|
</arg>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<method name="GetDefaultDevice">
|
||||||
|
<arg type="o" name="device" direction="out">
|
||||||
|
</arg>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
</interface>
|
||||||
|
</node>
|
32
data/dbus-interfaces/org.Gtk.MountOperationHandler.xml
Normal file
32
data/dbus-interfaces/org.Gtk.MountOperationHandler.xml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.Gtk.MountOperationHandler">
|
||||||
|
<method name="AskPassword">
|
||||||
|
<arg type="s" direction="in" name="object_id"/>
|
||||||
|
<arg type="s" direction="in" name="message"/>
|
||||||
|
<arg type="s" direction="in" name="icon_name"/>
|
||||||
|
<arg type="s" direction="in" name="default_user"/>
|
||||||
|
<arg type="s" direction="in" name="default_domain"/>
|
||||||
|
<arg type="u" direction="in" name="flags"/>
|
||||||
|
<arg type="u" direction="out" name="response"/>
|
||||||
|
<arg type="a{sv}" direction="out" name="response_details"/>
|
||||||
|
</method>
|
||||||
|
<method name="AskQuestion">
|
||||||
|
<arg type="s" direction="in" name="object_id"/>
|
||||||
|
<arg type="s" direction="in" name="message"/>
|
||||||
|
<arg type="s" direction="in" name="icon_name"/>
|
||||||
|
<arg type="as" direction="in" name="choices"/>
|
||||||
|
<arg type="u" direction="out" name="response"/>
|
||||||
|
<arg type="a{sv}" direction="out" name="response_details"/>
|
||||||
|
</method>
|
||||||
|
<method name="ShowProcesses">
|
||||||
|
<arg type="s" direction="in" name="object_id"/>
|
||||||
|
<arg type="s" direction="in" name="message"/>
|
||||||
|
<arg type="s" direction="in" name="icon_name"/>
|
||||||
|
<arg type="ai" direction="in" name="application_pids"/>
|
||||||
|
<arg type="as" direction="in" name="choices"/>
|
||||||
|
<arg type="u" direction="out" name="response"/>
|
||||||
|
<arg type="a{sv}" direction="out" name="response_details"/>
|
||||||
|
</method>
|
||||||
|
<method name="Close"/>
|
||||||
|
</interface>
|
||||||
|
</node>
|
12
data/dbus-interfaces/org.freedesktop.Application.xml
Normal file
12
data/dbus-interfaces/org.freedesktop.Application.xml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.freedesktop.Application">
|
||||||
|
<method name="ActivateAction">
|
||||||
|
<arg type="s" direction="in"/>
|
||||||
|
<arg type="av" direction="in"/>
|
||||||
|
<arg type="a{sv}" direction="in"/>
|
||||||
|
</method>
|
||||||
|
<method name="Activate">
|
||||||
|
<arg type="a{sv}" direction="in"/>
|
||||||
|
</method>
|
||||||
|
</interface>
|
||||||
|
</node>
|
16
data/dbus-interfaces/org.freedesktop.DBus.xml
Normal file
16
data/dbus-interfaces/org.freedesktop.DBus.xml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.freedesktop.DBus">
|
||||||
|
<method name="ListNames">
|
||||||
|
<arg type="as" direction="out" name="names"/>
|
||||||
|
</method>
|
||||||
|
<method name="GetConnectionUnixProcessID">
|
||||||
|
<arg type="s" direction="in"/>
|
||||||
|
<arg type="u" direction="out"/>
|
||||||
|
</method>
|
||||||
|
<signal name="NameOwnerChanged">
|
||||||
|
<arg type="s" direction="out" name="name"/>
|
||||||
|
<arg type="s" direction="out" name="oldOwner"/>
|
||||||
|
<arg type="s" direction="out" name="newOwner"/>
|
||||||
|
</signal>
|
||||||
|
</interface>
|
||||||
|
</node>
|
11
data/dbus-interfaces/org.freedesktop.GeoClue2.Agent.xml
Normal file
11
data/dbus-interfaces/org.freedesktop.GeoClue2.Agent.xml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.freedesktop.GeoClue2.Agent">
|
||||||
|
<property name="MaxAccuracyLevel" type="u" access="read"/>
|
||||||
|
<method name="AuthorizeApp">
|
||||||
|
<arg name="desktop_id" type="s" direction="in"/>
|
||||||
|
<arg name="req_accuracy_level" type="u" direction="in"/>
|
||||||
|
<arg name="authorized" type="b" direction="out"/>
|
||||||
|
<arg name="allowed_accuracy_level" type="u" direction="out"/>
|
||||||
|
</method>
|
||||||
|
</interface>
|
||||||
|
</node>
|
|
@ -0,0 +1,9 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.freedesktop.GeoClue2.Manager">
|
||||||
|
<property name="InUse" type="b" access="read"/>
|
||||||
|
<property name="AvailableAccuracyLevel" type="u" access="read"/>
|
||||||
|
<method name="AddAgent">
|
||||||
|
<arg name="id" type="s" direction="in"/>
|
||||||
|
</method>
|
||||||
|
</interface>
|
||||||
|
</node>
|
|
@ -0,0 +1,13 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.freedesktop.ModemManager.Modem.Cdma">
|
||||||
|
<method name="GetSignalQuality">
|
||||||
|
<arg type="u" direction="out"/>
|
||||||
|
</method>
|
||||||
|
<method name="GetServingSystem">
|
||||||
|
<arg type="(usu)" direction="out"/>
|
||||||
|
</method>
|
||||||
|
<signal name="SignalQuality">
|
||||||
|
<arg type="u" direction="out"/>
|
||||||
|
</signal>
|
||||||
|
</interface>
|
||||||
|
</node>
|
|
@ -0,0 +1,19 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.freedesktop.ModemManager.Modem.Gsm.Network">
|
||||||
|
<method name="GetRegistrationInfo">
|
||||||
|
<arg type="(uss)" direction="out"/>
|
||||||
|
</method>
|
||||||
|
<method name="GetSignalQuality">
|
||||||
|
<arg type="u" direction="out"/>
|
||||||
|
</method>
|
||||||
|
<property name="AccessTechnology" type="u" access="read"/>
|
||||||
|
<signal name="SignalQuality">
|
||||||
|
<arg type="u" direction="out"/>
|
||||||
|
</signal>
|
||||||
|
<signal name="RegistrationInfo">
|
||||||
|
<arg type="u" direction="out"/>
|
||||||
|
<arg type="s" direction="out"/>
|
||||||
|
<arg type="s" direction="out"/>
|
||||||
|
</signal>
|
||||||
|
</interface>
|
||||||
|
</node>
|
|
@ -0,0 +1,6 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.freedesktop.ModemManager1.Modem.Modem3gpp">
|
||||||
|
<property name="OperatorCode" type="s" access="read"/>
|
||||||
|
<property name="OperatorName" type="s" access="read"/>
|
||||||
|
</interface>
|
||||||
|
</node>
|
|
@ -0,0 +1,5 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.freedesktop.ModemManager1.Modem.ModemCdma">
|
||||||
|
<property name="Sid" type="u" access="read"/>
|
||||||
|
</interface>
|
||||||
|
</node>
|
|
@ -0,0 +1,5 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.freedesktop.ModemManager1.Modem">
|
||||||
|
<property name="SignalQuality" type="(ub)" access="read"/>
|
||||||
|
</interface>
|
||||||
|
</node>
|
39
data/dbus-interfaces/org.freedesktop.Notifications.xml
Normal file
39
data/dbus-interfaces/org.freedesktop.Notifications.xml
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.freedesktop.Notifications">
|
||||||
|
<method name="Notify">
|
||||||
|
<arg type="s" direction="in"/>
|
||||||
|
<arg type="u" direction="in"/>
|
||||||
|
<arg type="s" direction="in"/>
|
||||||
|
<arg type="s" direction="in"/>
|
||||||
|
<arg type="s" direction="in"/>
|
||||||
|
<arg type="as" direction="in"/>
|
||||||
|
<arg type="a{sv}" direction="in"/>
|
||||||
|
<arg type="i" direction="in"/>
|
||||||
|
<arg type="u" direction="out"/>
|
||||||
|
</method>
|
||||||
|
<method name="CloseNotification">
|
||||||
|
<arg type="u" direction="in"/>
|
||||||
|
</method>
|
||||||
|
<method name="GetCapabilities">
|
||||||
|
<arg type="as" direction="out"/>
|
||||||
|
</method>
|
||||||
|
<method name="GetServerInformation">
|
||||||
|
<arg type="s" direction="out"/>
|
||||||
|
<arg type="s" direction="out"/>
|
||||||
|
<arg type="s" direction="out"/>
|
||||||
|
<arg type="s" direction="out"/>
|
||||||
|
</method>
|
||||||
|
<signal name="NotificationClosed">
|
||||||
|
<arg type="u"/>
|
||||||
|
<arg type="u"/>
|
||||||
|
</signal>
|
||||||
|
<signal name="ActionInvoked">
|
||||||
|
<arg type="u"/>
|
||||||
|
<arg type="s"/>
|
||||||
|
</signal>
|
||||||
|
<signal name="ActivationToken">
|
||||||
|
<arg type="u"/>
|
||||||
|
<arg type="s"/>
|
||||||
|
</signal>
|
||||||
|
</interface>
|
||||||
|
</node>
|
13
data/dbus-interfaces/org.freedesktop.PackageKit.Offline.xml
Normal file
13
data/dbus-interfaces/org.freedesktop.PackageKit.Offline.xml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.freedesktop.PackageKit.Offline">
|
||||||
|
<property name="UpdatePrepared" type="b" access="read"/>
|
||||||
|
<property name="UpdateTriggered" type="b" access="read"/>
|
||||||
|
<property name="UpgradePrepared" type="b" access="read"/>
|
||||||
|
<property name="UpgradeTriggered" type="b" access="read"/>
|
||||||
|
<property name="PreparedUpgrade" type="a{sv}" access="read"/>
|
||||||
|
<method name="Trigger">
|
||||||
|
<arg type="s" name="action" direction="in"/>
|
||||||
|
</method>
|
||||||
|
<method name="Cancel"/>
|
||||||
|
</interface>
|
||||||
|
</node>
|
11
data/dbus-interfaces/org.freedesktop.UPower.Device.xml
Normal file
11
data/dbus-interfaces/org.freedesktop.UPower.Device.xml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.freedesktop.UPower.Device">
|
||||||
|
<property name="Type" type="u" access="read"/>
|
||||||
|
<property name="State" type="u" access="read"/>
|
||||||
|
<property name="Percentage" type="d" access="read"/>
|
||||||
|
<property name="TimeToEmpty" type="x" access="read"/>
|
||||||
|
<property name="TimeToFull" type="x" access="read"/>
|
||||||
|
<property name="IsPresent" type="b" access="read"/>
|
||||||
|
<property name="IconName" type="s" access="read"/>
|
||||||
|
</interface>
|
||||||
|
</node>
|
147
data/dbus-interfaces/org.freedesktop.UPower.PowerProfiles.xml
Normal file
147
data/dbus-interfaces/org.freedesktop.UPower.PowerProfiles.xml
Normal file
|
@ -0,0 +1,147 @@
|
||||||
|
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
|
||||||
|
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
||||||
|
|
||||||
|
<node>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
org.freedesktop.UPower.PowerProfiles:
|
||||||
|
@short_description: Power Profiles daemon
|
||||||
|
|
||||||
|
The power-profiles-daemon API is meant to be used by parts of the OS or
|
||||||
|
desktop environment to switch system power profiles based on user choice,
|
||||||
|
or user intent.
|
||||||
|
|
||||||
|
OS components would typically use the "Profiles" property to construct
|
||||||
|
their UI (2 or 3 profiles available), and monitor the "ActiveProfile"
|
||||||
|
and the "PerformanceDegraded" properties to update that UI. The UI
|
||||||
|
would try to set the "ActiveProfile" property if the user selected
|
||||||
|
a different one.
|
||||||
|
|
||||||
|
Note that the reason why the project exists and how it is different from
|
||||||
|
existing projects is explained <ulink href=" https://gitlab.freedesktop.org/hadess/power-profiles-daemon/-/blob/master/README.md">
|
||||||
|
in the project's README file</ulink>.
|
||||||
|
|
||||||
|
The object path will be "/org/freedesktop/UPower/PowerProfiles".
|
||||||
|
-->
|
||||||
|
<interface name="org.freedesktop.UPower.PowerProfiles">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
HoldProfile:
|
||||||
|
|
||||||
|
This forces the passed profile (either 'power-saver' or 'performance')
|
||||||
|
to be activated until either the caller quits, "ReleaseProfile" is
|
||||||
|
called, or the "ActiveProfile" is changed by the user.
|
||||||
|
|
||||||
|
This should be used programmatically by OS components when, eg. high-
|
||||||
|
performance workloads are started with the "performance" profile, or
|
||||||
|
battery will soon be critically low with the "power-saver" profile.
|
||||||
|
|
||||||
|
When conflicting profiles are requested to be held, the 'power-saver' profile
|
||||||
|
will be activated in preference to the 'performance' profile.
|
||||||
|
|
||||||
|
Those holds will be automatically cancelled if the user manually switches
|
||||||
|
to another profile, and the "ProfileReleased" signal will be emitted.
|
||||||
|
-->
|
||||||
|
<method name="HoldProfile">
|
||||||
|
<arg name="profile" type="s" direction="in"/>
|
||||||
|
<arg name="reason" type="s" direction="in"/>
|
||||||
|
<arg name="application_id" type="s" direction="in" />
|
||||||
|
<arg name="cookie" type="u" direction="out"/>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
ReleaseProfile:
|
||||||
|
|
||||||
|
This removes the hold that was set on a profile.
|
||||||
|
-->
|
||||||
|
<method name="ReleaseProfile">
|
||||||
|
<arg name="cookie" type="u" direction="in"/>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
ProfileReleased:
|
||||||
|
|
||||||
|
This signal will be emitted if the profile is released because the
|
||||||
|
"ActiveProfile" was manually changed. The signal will only be emitted
|
||||||
|
to the process that originally called "HoldProfile".
|
||||||
|
-->
|
||||||
|
<signal name="ProfileReleased">
|
||||||
|
<arg name="cookie" type="u" direction="out"/>
|
||||||
|
</signal>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
ActiveProfile:
|
||||||
|
|
||||||
|
The type of the currently active profile. It might change automatically
|
||||||
|
if a profile is held, using the "HoldProfile" function.
|
||||||
|
-->
|
||||||
|
<property name="ActiveProfile" type="s" access="readwrite"/>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
PerformanceInhibited:
|
||||||
|
|
||||||
|
This property is deprecated, and unused since version 0.9.
|
||||||
|
-->
|
||||||
|
<property name="PerformanceInhibited" type="s" access="read"/>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
PerformanceDegraded:
|
||||||
|
|
||||||
|
This will be set if the performance power profile is running in degraded
|
||||||
|
mode, with the value being used to identify the reason for that degradation.
|
||||||
|
As new reasons can be added, it is recommended that front-ends show a generic
|
||||||
|
reason if they do not recognise the value. Possible values are:
|
||||||
|
- "lap-detected" (the computer is sitting on the user's lap)
|
||||||
|
- "high-operating-temperature" (the computer is close to overheating)
|
||||||
|
- "" (the empty string, if not performance is not degraded)
|
||||||
|
-->
|
||||||
|
<property name="PerformanceDegraded" type="s" access="read"/>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Profiles:
|
||||||
|
|
||||||
|
An array of key-pair values representing each profile. The key named
|
||||||
|
"Driver" (s) identifies the power-profiles-daemon backend code used to
|
||||||
|
implement the profile.
|
||||||
|
|
||||||
|
The key named "Profile" (s) will be one of:
|
||||||
|
- "power-saver" (battery saving profile)
|
||||||
|
- "balanced" (the default profile)
|
||||||
|
- "performance" (a profile that does not care about noise or battery consumption)
|
||||||
|
|
||||||
|
Only one of each type of profile will be listed, with the daemon choosing the
|
||||||
|
more appropriate "driver" for each profile type.
|
||||||
|
|
||||||
|
This list is guaranteed to be sorted in the same order that the profiles
|
||||||
|
are listed above.
|
||||||
|
-->
|
||||||
|
<property name="Profiles" type="aa{sv}" access="read"/>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Actions:
|
||||||
|
|
||||||
|
An array of strings listing each one of the "actions" implemented in
|
||||||
|
the running daemon. This is used by API users to figure out whether
|
||||||
|
particular functionality is available in a version of the daemon.
|
||||||
|
-->
|
||||||
|
<property name="Actions" type="as" access="read"/>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
ActiveProfileHolds:
|
||||||
|
|
||||||
|
A list of dictionaries representing the current profile holds.
|
||||||
|
The keys in the dict are "ApplicationId", "Profile" and "Reason",
|
||||||
|
and correspond to the "application_id", "profile" and "reason" arguments
|
||||||
|
passed to the HoldProfile() method.
|
||||||
|
-->
|
||||||
|
<property name="ActiveProfileHolds" type="aa{sv}" access="read"/>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Version:
|
||||||
|
|
||||||
|
The version of the power-profiles-daemon software.
|
||||||
|
-->
|
||||||
|
<property name="Version" type="s" access="read"/>
|
||||||
|
|
||||||
|
</interface>
|
||||||
|
</node>
|
5
data/dbus-interfaces/org.freedesktop.UPower.xml
Normal file
5
data/dbus-interfaces/org.freedesktop.UPower.xml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.freedesktop.UPower">
|
||||||
|
<property name="OnBattery" type="b" access="read"/>
|
||||||
|
</interface>
|
||||||
|
</node>
|
64
data/dbus-interfaces/org.freedesktop.background.Monitor.xml
Normal file
64
data/dbus-interfaces/org.freedesktop.background.Monitor.xml
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2022 Endless OS Foundation, LLC
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Author: Georges Basile Stavracas Neto <georges@endlessos.org>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
|
||||||
|
<!--
|
||||||
|
org.freedesktop.background.Monitor:
|
||||||
|
@short_description: Background applications monitor
|
||||||
|
|
||||||
|
This interface provides APIs related to applications
|
||||||
|
that are running in the background.
|
||||||
|
|
||||||
|
This documentation describes version 1 of this interface.
|
||||||
|
-->
|
||||||
|
<interface name="org.freedesktop.background.Monitor">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
BackgroundApps:
|
||||||
|
|
||||||
|
The list of applications that are considered to be running in
|
||||||
|
background. The following keys are supported:
|
||||||
|
|
||||||
|
<variablelist>
|
||||||
|
<varlistentry>
|
||||||
|
<term>app_id s</term>
|
||||||
|
<listitem><para>
|
||||||
|
App id of the application.
|
||||||
|
</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term>instance s</term>
|
||||||
|
<listitem><para>
|
||||||
|
The Flatpak instance of the application.
|
||||||
|
</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term>message s</term>
|
||||||
|
<listitem><para>
|
||||||
|
Status message reported by the application. Optional.
|
||||||
|
</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
</variablelist>
|
||||||
|
-->
|
||||||
|
<property name="BackgroundApps" type="aa{sv}" access="read"/>
|
||||||
|
|
||||||
|
<property name="version" type="u" access="read"/>
|
||||||
|
</interface>
|
||||||
|
</node>
|
18
data/dbus-interfaces/org.freedesktop.bolt1.Device.xml
Normal file
18
data/dbus-interfaces/org.freedesktop.bolt1.Device.xml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.freedesktop.bolt1.Device">
|
||||||
|
<property name="Uid" type="s" access="read"></property>
|
||||||
|
<property name="Name" type="s" access="read"></property>
|
||||||
|
<property name="Vendor" type="s" access="read"></property>
|
||||||
|
<property name="Type" type="s" access="read"></property>
|
||||||
|
<property name="Status" type="s" access="read"></property>
|
||||||
|
<property name="Parent" type="s" access="read"></property>
|
||||||
|
<property name="SysfsPath" type="s" access="read"></property>
|
||||||
|
<property name="Stored" type="b" access="read"></property>
|
||||||
|
<property name="Policy" type="s" access="read"></property>
|
||||||
|
<property name="Key" type="s" access="read"></property>
|
||||||
|
<property name="Label" type="s" access="read"></property>
|
||||||
|
<property name="ConnectTime" type="t" access="read"></property>
|
||||||
|
<property name="AuthorizeTime" type="t" access="read"></property>
|
||||||
|
<property name="StoreTime" type="t" access="read"></property>
|
||||||
|
</interface>
|
||||||
|
</node>
|
15
data/dbus-interfaces/org.freedesktop.bolt1.Manager.xml
Normal file
15
data/dbus-interfaces/org.freedesktop.bolt1.Manager.xml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.freedesktop.bolt1.Manager">
|
||||||
|
<property name="Probing" type="b" access="read"></property>
|
||||||
|
<property name="AuthMode" type="s" access="readwrite"></property>
|
||||||
|
<method name="EnrollDevice">
|
||||||
|
<arg type="s" name="uid" direction="in"/>
|
||||||
|
<arg type="s" name="policy" direction="in"/>
|
||||||
|
<arg type="s" name="flags" direction="in"/>
|
||||||
|
<arg name="device" direction="out" type="o"/>
|
||||||
|
</method>
|
||||||
|
<signal name="DeviceAdded">
|
||||||
|
<arg name="device" type="o"/>
|
||||||
|
</signal>
|
||||||
|
</interface>
|
||||||
|
</node>
|
15
data/dbus-interfaces/org.freedesktop.impl.portal.Access.xml
Normal file
15
data/dbus-interfaces/org.freedesktop.impl.portal.Access.xml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.freedesktop.impl.portal.Access">
|
||||||
|
<method name="AccessDialog">
|
||||||
|
<arg type="o" name="handle" direction="in"/>
|
||||||
|
<arg type="s" name="app_id" direction="in"/>
|
||||||
|
<arg type="s" name="parent_window" direction="in"/>
|
||||||
|
<arg type="s" name="title" direction="in"/>
|
||||||
|
<arg type="s" name="subtitle" direction="in"/>
|
||||||
|
<arg type="s" name="body" direction="in"/>
|
||||||
|
<arg type="a{sv}" name="options" direction="in"/>
|
||||||
|
<arg type="u" name="response" direction="out"/>
|
||||||
|
<arg type="a{sv}" name="results" direction="out"/>
|
||||||
|
</method>
|
||||||
|
</interface>
|
||||||
|
</node>
|
|
@ -0,0 +1,31 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.freedesktop.impl.portal.PermissionStore">
|
||||||
|
<method name="Lookup">
|
||||||
|
<arg name="table" type="s" direction="in"/>
|
||||||
|
<arg name="id" type="s" direction="in"/>
|
||||||
|
<arg name="permissions" type="a{sas}" direction="out"/>
|
||||||
|
<arg name="data" type="v" direction="out"/>
|
||||||
|
</method>
|
||||||
|
<method name="Set">
|
||||||
|
<arg name="table" type="s" direction="in"/>
|
||||||
|
<arg name="create" type="b" direction="in"/>
|
||||||
|
<arg name="id" type="s" direction="in"/>
|
||||||
|
<arg name="app_permissions" type="a{sas}" direction="in"/>
|
||||||
|
<arg name="data" type="v" direction="in"/>
|
||||||
|
</method>
|
||||||
|
<method name="SetPermission">
|
||||||
|
<arg name='table' type='s' direction='in'/>
|
||||||
|
<arg name='create' type='b' direction='in'/>
|
||||||
|
<arg name='id' type='s' direction='in'/>
|
||||||
|
<arg name='app' type='s' direction='in'/>
|
||||||
|
<arg name='permissions' type='as' direction='in'/>
|
||||||
|
</method>
|
||||||
|
<signal name="Changed">
|
||||||
|
<arg name="table" type="s" direction="out"/>
|
||||||
|
<arg name="id" type="s" direction="out"/>
|
||||||
|
<arg name="deleted" type="b" direction="out"/>
|
||||||
|
<arg name="data" type="v" direction="out"/>
|
||||||
|
<arg name="permissions" type="a{sas}" direction="out"/>
|
||||||
|
</signal>
|
||||||
|
</interface>
|
||||||
|
</node>
|
|
@ -0,0 +1,5 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.freedesktop.impl.portal.Request">
|
||||||
|
<method name="Close"/>
|
||||||
|
</interface>
|
||||||
|
</node>
|
37
data/dbus-interfaces/org.freedesktop.login1.Manager.xml
Normal file
37
data/dbus-interfaces/org.freedesktop.login1.Manager.xml
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.freedesktop.login1.Manager">
|
||||||
|
<method name="Suspend">
|
||||||
|
<arg type="b" direction="in"/>
|
||||||
|
</method>
|
||||||
|
<method name="CanSuspend">
|
||||||
|
<arg type="s" direction="out"/>
|
||||||
|
</method>
|
||||||
|
<method name="Inhibit">
|
||||||
|
<arg type="s" direction="in"/>
|
||||||
|
<arg type="s" direction="in"/>
|
||||||
|
<arg type="s" direction="in"/>
|
||||||
|
<arg type="s" direction="in"/>
|
||||||
|
<arg type="h" direction="out"/>
|
||||||
|
</method>
|
||||||
|
<method name="GetSession">
|
||||||
|
<arg type="s" direction="in"/>
|
||||||
|
<arg type="o" direction="out"/>
|
||||||
|
</method>
|
||||||
|
<method name="GetUser">
|
||||||
|
<arg type="u" direction="in"/>
|
||||||
|
<arg type="o" direction="out"/>
|
||||||
|
</method>
|
||||||
|
<method name="ListSessions">
|
||||||
|
<arg name="sessions" type="a(susso)" direction="out"/>
|
||||||
|
</method>
|
||||||
|
<method name="CanRebootToBootLoaderMenu">
|
||||||
|
<arg type="s" direction="out"/>
|
||||||
|
</method>
|
||||||
|
<method name="SetRebootToBootLoaderMenu">
|
||||||
|
<arg type="t" direction="in"/>
|
||||||
|
</method>
|
||||||
|
<signal name="PrepareForSleep">
|
||||||
|
<arg type="b" direction="out"/>
|
||||||
|
</signal>
|
||||||
|
</interface>
|
||||||
|
</node>
|
16
data/dbus-interfaces/org.freedesktop.login1.Session.xml
Normal file
16
data/dbus-interfaces/org.freedesktop.login1.Session.xml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.freedesktop.login1.Session">
|
||||||
|
<signal name="Lock"/>
|
||||||
|
<signal name="Unlock"/>
|
||||||
|
<property name="Active" type="b" access="read"/>
|
||||||
|
<property name="Class" type="s" access="read"/>
|
||||||
|
<property name="Id" type="s" access="read"/>
|
||||||
|
<property name="Name" type="s" access="read"/>
|
||||||
|
<property name="Remote" type="b" access="read"/>
|
||||||
|
<property name="State" type="s" access="read"/>
|
||||||
|
<property name="Type" type="s" access="read"/>
|
||||||
|
<method name="SetLockedHint">
|
||||||
|
<arg type="b" direction="in"/>
|
||||||
|
</method>
|
||||||
|
</interface>
|
||||||
|
</node>
|
8
data/dbus-interfaces/org.freedesktop.login1.User.xml
Normal file
8
data/dbus-interfaces/org.freedesktop.login1.User.xml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.freedesktop.login1.User">
|
||||||
|
<property name="Display" type="(so)" access="read"/>
|
||||||
|
<property name="IdleHint" type="b" access="read"/>
|
||||||
|
<property name="Sessions" type="a(so)" access="read"/>
|
||||||
|
<property name="State" type="s" access="read"/>
|
||||||
|
</interface>
|
||||||
|
</node>
|
13
data/dbus-interfaces/org.freedesktop.realmd.Provider.xml
Normal file
13
data/dbus-interfaces/org.freedesktop.realmd.Provider.xml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.freedesktop.realmd.Provider">
|
||||||
|
<property name="Name" type="s" access="read"/>
|
||||||
|
<property name="Version" type="s" access="read"/>
|
||||||
|
<property name="Realms" type="ao" access="read"/>
|
||||||
|
<method name="Discover">
|
||||||
|
<arg name="string" type="s" direction="in"/>
|
||||||
|
<arg name="options" type="a{sv}" direction="in"/>
|
||||||
|
<arg name="relevance" type="i" direction="out"/>
|
||||||
|
<arg name="realm" type="ao" direction="out"/>
|
||||||
|
</method>
|
||||||
|
</interface>
|
||||||
|
</node>
|
20
data/dbus-interfaces/org.freedesktop.realmd.Realm.xml
Normal file
20
data/dbus-interfaces/org.freedesktop.realmd.Realm.xml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.freedesktop.realmd.Realm">
|
||||||
|
<property name="Name" type="s" access="read"/>
|
||||||
|
<property name="Configured" type="s" access="read"/>
|
||||||
|
<property name="Details" type="a(ss)" access="read"/>
|
||||||
|
<property name="LoginFormats" type="as" access="read"/>
|
||||||
|
<property name="LoginPolicy" type="s" access="read"/>
|
||||||
|
<property name="PermittedLogins" type="as" access="read"/>
|
||||||
|
<property name="SupportedInterfaces" type="as" access="read"/>
|
||||||
|
<method name="ChangeLoginPolicy">
|
||||||
|
<arg name="login_policy" type="s" direction="in"/>
|
||||||
|
<arg name="permitted_add" type="as" direction="in"/>
|
||||||
|
<arg name="permitted_remove" type="as" direction="in"/>
|
||||||
|
<arg name="options" type="a{sv}" direction="in"/>
|
||||||
|
</method>
|
||||||
|
<method name="Deconfigure">
|
||||||
|
<arg name="options" type="a{sv}" direction="in"/>
|
||||||
|
</method>
|
||||||
|
</interface>
|
||||||
|
</node>
|
15
data/dbus-interfaces/org.freedesktop.realmd.Service.xml
Normal file
15
data/dbus-interfaces/org.freedesktop.realmd.Service.xml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.freedesktop.realmd.Service">
|
||||||
|
<method name="Cancel">
|
||||||
|
<arg name="operation" type="s" direction="in"/>
|
||||||
|
</method>
|
||||||
|
<method name="Release"/>
|
||||||
|
<method name="SetLocale">
|
||||||
|
<arg name="locale" type="s" direction="in"/>
|
||||||
|
</method>
|
||||||
|
<signal name="Diagnostics">
|
||||||
|
<arg name="data" type="s"/>
|
||||||
|
<arg name="operation" type="s"/>
|
||||||
|
</signal>
|
||||||
|
</interface>
|
||||||
|
</node>
|
191
data/dbus-interfaces/org.gnome.Mutter.ScreenCast.xml
Normal file
191
data/dbus-interfaces/org.gnome.Mutter.ScreenCast.xml
Normal file
|
@ -0,0 +1,191 @@
|
||||||
|
<!DOCTYPE node PUBLIC
|
||||||
|
'-//freedesktop//DTD D-BUS Object Introspection 1.0//EN'
|
||||||
|
'http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd'>
|
||||||
|
<node>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
org.gnome.Mutter.ScreenCast:
|
||||||
|
@short_description: Screen cast interface
|
||||||
|
|
||||||
|
This API is private and not intended to be used outside of the integrated
|
||||||
|
system that uses libmutter. No compatibility between versions are
|
||||||
|
promised.
|
||||||
|
-->
|
||||||
|
<interface name="org.gnome.Mutter.ScreenCast">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
CreateSession:
|
||||||
|
@properties: Properties
|
||||||
|
@session_path: Path to the new session object
|
||||||
|
|
||||||
|
* "remote-desktop-session-id" (s): The ID of a remote desktop session.
|
||||||
|
Remote desktop driven screen casts
|
||||||
|
are started and stopped by the remote
|
||||||
|
desktop session.
|
||||||
|
* "disable-animations" (b): Set to "true" if the screen cast application
|
||||||
|
would prefer animations to be globally
|
||||||
|
disabled, while the session is running. Default
|
||||||
|
is "false". Available since version 3.
|
||||||
|
-->
|
||||||
|
<method name="CreateSession">
|
||||||
|
<arg name="properties" type="a{sv}" direction="in" />
|
||||||
|
<arg name="session_path" type="o" direction="out" />
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Version:
|
||||||
|
@short_description: API version
|
||||||
|
-->
|
||||||
|
<property name="Version" type="i" access="read" />
|
||||||
|
|
||||||
|
</interface>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
org.gnome.Mutter.ScreenCast.Session:
|
||||||
|
@short_description: Screen cast session
|
||||||
|
-->
|
||||||
|
<interface name="org.gnome.Mutter.ScreenCast.Session">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Start:
|
||||||
|
|
||||||
|
Start the screen cast session
|
||||||
|
-->
|
||||||
|
<method name="Start" />
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Stop:
|
||||||
|
|
||||||
|
Stop the screen cast session
|
||||||
|
-->
|
||||||
|
<method name="Stop" />
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Closed:
|
||||||
|
|
||||||
|
The session has closed.
|
||||||
|
-->
|
||||||
|
<signal name="Closed" />
|
||||||
|
|
||||||
|
<!--
|
||||||
|
RecordMonitor:
|
||||||
|
@connector: Connector of the monitor to record
|
||||||
|
@properties: Properties
|
||||||
|
@stream_path: Path to the new stream object
|
||||||
|
|
||||||
|
Record a single monitor.
|
||||||
|
|
||||||
|
Available @properties include:
|
||||||
|
|
||||||
|
* "cursor-mode" (u): Cursor mode. Default: 'hidden' (see below)
|
||||||
|
Available since API version 2.
|
||||||
|
* "is-recording" (b): Whether this is a screen recording. May be
|
||||||
|
be used for choosing panel icon.
|
||||||
|
Default: false. Available since API version 4.
|
||||||
|
|
||||||
|
Available cursor mode values:
|
||||||
|
|
||||||
|
0: hidden - cursor is not included in the stream
|
||||||
|
1: embedded - cursor is included in the framebuffer
|
||||||
|
2: metadata - cursor is included as metadata in the PipeWire stream
|
||||||
|
-->
|
||||||
|
<method name="RecordMonitor">
|
||||||
|
<arg name="connector" type="s" direction="in" />
|
||||||
|
<arg name="properties" type="a{sv}" direction="in" />
|
||||||
|
<arg name="stream_path" type="o" direction="out" />
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
RecordWindow:
|
||||||
|
@properties: Properties used determining what window to select
|
||||||
|
@stream_path: Path to the new stream object
|
||||||
|
|
||||||
|
Supported since API version 2.
|
||||||
|
|
||||||
|
Record a single window. The cursor will not be included.
|
||||||
|
|
||||||
|
Available @properties include:
|
||||||
|
|
||||||
|
* "window-id" (t): Id of the window to record.
|
||||||
|
* "cursor-mode" (u): Cursor mode. Default: 'hidden' (see RecordMonitor).
|
||||||
|
* "is-recording" (b): Whether this is a screen recording. May be
|
||||||
|
be used for choosing panel icon.
|
||||||
|
Default: false. Available since API version 4.
|
||||||
|
|
||||||
|
-->
|
||||||
|
<method name="RecordWindow">
|
||||||
|
<arg name="properties" type="a{sv}" direction="in" />
|
||||||
|
<arg name="stream_path" type="o" direction="out" />
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
RecordArea:
|
||||||
|
@x: X position of the recorded area
|
||||||
|
@y: Y position of the recorded area
|
||||||
|
@width: width of the recorded area
|
||||||
|
@height: height of the recorded area
|
||||||
|
@properties: Properties
|
||||||
|
@stream_path: Path to the new stream object
|
||||||
|
|
||||||
|
Record an area of the stage. The coordinates are in stage coordinates.
|
||||||
|
The size of the stream does not necessarily match the size of the
|
||||||
|
recorded area, and will depend on DPI scale of the affected monitors.
|
||||||
|
|
||||||
|
Available @properties include:
|
||||||
|
|
||||||
|
* "cursor-mode" (u): Cursor mode. Default: 'hidden' (see below)
|
||||||
|
Available since API version 2.
|
||||||
|
* "is-recording" (b): Whether this is a screen recording. May be
|
||||||
|
be used for choosing panel icon.
|
||||||
|
Default: false. Available since API version 4.
|
||||||
|
|
||||||
|
Available cursor mode values:
|
||||||
|
|
||||||
|
0: hidden - cursor is not included in the stream
|
||||||
|
1: embedded - cursor is included in the framebuffer
|
||||||
|
2: metadata - cursor is included as metadata in the PipeWire stream
|
||||||
|
-->
|
||||||
|
<method name="RecordArea">
|
||||||
|
<arg name="x" type="i" direction="in" />
|
||||||
|
<arg name="y" type="i" direction="in" />
|
||||||
|
<arg name="width" type="i" direction="in" />
|
||||||
|
<arg name="height" type="i" direction="in" />
|
||||||
|
<arg name="properties" type="a{sv}" direction="in" />
|
||||||
|
<arg name="stream_path" type="o" direction="out" />
|
||||||
|
</method>
|
||||||
|
</interface>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
org.gnome.Mutter.ScreenCast.Stream:
|
||||||
|
@short_description: Screen cast stream
|
||||||
|
-->
|
||||||
|
<interface name="org.gnome.Mutter.ScreenCast.Stream">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
PipeWireStreamAdded:
|
||||||
|
@short_description: Pipewire stream added
|
||||||
|
|
||||||
|
A signal emitted when PipeWire stream for the screen cast stream has
|
||||||
|
been created. The @node_id corresponds to the PipeWire stream node.
|
||||||
|
-->
|
||||||
|
<signal name="PipeWireStreamAdded">
|
||||||
|
<annotation name="org.gtk.GDBus.C.Name" value="pipewire-stream-added"/>
|
||||||
|
<arg name="node_id" type="u" direction="out" />
|
||||||
|
</signal>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Parameters:
|
||||||
|
@short_description: Optional stream parameters
|
||||||
|
|
||||||
|
Available parameters include:
|
||||||
|
|
||||||
|
* "position" (ii): Position of the source of the stream in the
|
||||||
|
compositor coordinate space.
|
||||||
|
* "size" (ii): Size of the source of the stream in the compositor
|
||||||
|
coordinate space.
|
||||||
|
-->
|
||||||
|
<property name="Parameters" type="a{sv}" access="read" />
|
||||||
|
|
||||||
|
</interface>
|
||||||
|
|
||||||
|
</node>
|
18
data/dbus-interfaces/org.gnome.ScreenSaver.xml
Normal file
18
data/dbus-interfaces/org.gnome.ScreenSaver.xml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.gnome.ScreenSaver">
|
||||||
|
<method name="Lock"/>
|
||||||
|
<method name="GetActive">
|
||||||
|
<arg type="b" direction="out" name="active"/>
|
||||||
|
</method>
|
||||||
|
<method name="SetActive">
|
||||||
|
<arg type="b" direction="in" name="value"/>
|
||||||
|
</method>
|
||||||
|
<method name="GetActiveTime">
|
||||||
|
<arg type="u" direction="out" name="value"/>
|
||||||
|
</method>
|
||||||
|
<signal name="ActiveChanged">
|
||||||
|
<arg name="new_value" type="b"/>
|
||||||
|
</signal>
|
||||||
|
<signal name="WakeUpScreen"/>
|
||||||
|
</interface>
|
||||||
|
</node>
|
|
@ -0,0 +1,16 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.gnome.SessionManager.EndSessionDialog">
|
||||||
|
<method name="Open">
|
||||||
|
<arg type="u" direction="in"/>
|
||||||
|
<arg type="u" direction="in"/>
|
||||||
|
<arg type="u" direction="in"/>
|
||||||
|
<arg type="ao" direction="in"/>
|
||||||
|
</method>
|
||||||
|
<method name="Close"/>
|
||||||
|
<signal name="ConfirmedLogout"/>
|
||||||
|
<signal name="ConfirmedReboot"/>
|
||||||
|
<signal name="ConfirmedShutdown"/>
|
||||||
|
<signal name="Canceled"/>
|
||||||
|
<signal name="Closed"/>
|
||||||
|
</interface>
|
||||||
|
</node>
|
13
data/dbus-interfaces/org.gnome.SessionManager.Inhibitor.xml
Normal file
13
data/dbus-interfaces/org.gnome.SessionManager.Inhibitor.xml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.gnome.SessionManager.Inhibitor">
|
||||||
|
<method name="GetAppId">
|
||||||
|
<arg type="s" direction="out"/>
|
||||||
|
</method>
|
||||||
|
<method name="GetFlags">
|
||||||
|
<arg type="u" direction="out"/>
|
||||||
|
</method>
|
||||||
|
<method name="GetReason">
|
||||||
|
<arg type="s" direction="out"/>
|
||||||
|
</method>
|
||||||
|
</interface>
|
||||||
|
</node>
|
11
data/dbus-interfaces/org.gnome.SessionManager.Presence.xml
Normal file
11
data/dbus-interfaces/org.gnome.SessionManager.Presence.xml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.gnome.SessionManager.Presence">
|
||||||
|
<method name="SetStatus">
|
||||||
|
<arg type="u" direction="in"/>
|
||||||
|
</method>
|
||||||
|
<property name="status" type="u" access="readwrite"/>
|
||||||
|
<signal name="StatusChanged">
|
||||||
|
<arg type="u" direction="out"/>
|
||||||
|
</signal>
|
||||||
|
</interface>
|
||||||
|
</node>
|
23
data/dbus-interfaces/org.gnome.SessionManager.xml
Normal file
23
data/dbus-interfaces/org.gnome.SessionManager.xml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.gnome.SessionManager">
|
||||||
|
<method name="Logout">
|
||||||
|
<arg type="u" direction="in"/>
|
||||||
|
</method>
|
||||||
|
<method name="Shutdown"/>
|
||||||
|
<method name="Reboot"/>
|
||||||
|
<method name="CanShutdown">
|
||||||
|
<arg type="b" direction="out"/>
|
||||||
|
</method>
|
||||||
|
<method name="IsInhibited">
|
||||||
|
<arg type="u" direction="in"/>
|
||||||
|
<arg type="b" direction="out"/>
|
||||||
|
</method>
|
||||||
|
<property name="SessionIsActive" type="b" access="read"/>
|
||||||
|
<signal name="InhibitorAdded">
|
||||||
|
<arg type="o" direction="out"/>
|
||||||
|
</signal>
|
||||||
|
<signal name="InhibitorRemoved">
|
||||||
|
<arg type="o" direction="out"/>
|
||||||
|
</signal>
|
||||||
|
</interface>
|
||||||
|
</node>
|
6
data/dbus-interfaces/org.gnome.SettingsDaemon.Color.xml
Normal file
6
data/dbus-interfaces/org.gnome.SettingsDaemon.Color.xml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.gnome.SettingsDaemon.Color">
|
||||||
|
<property name="DisabledUntilTomorrow" type="b" access="readwrite"/>
|
||||||
|
<property name="NightLightActive" type="b" access="read"/>
|
||||||
|
</interface>
|
||||||
|
</node>
|
|
@ -0,0 +1,7 @@
|
||||||
|
<node>
|
||||||
|
<interface name='org.gnome.SettingsDaemon.Power.Keyboard'>
|
||||||
|
<property name='Brightness' type='i' access='readwrite'/>
|
||||||
|
<property name='Steps' type='i' access='read'/>
|
||||||
|
</interface>
|
||||||
|
</node>
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.gnome.SettingsDaemon.Power.Screen">
|
||||||
|
<property name="Brightness" type="i" access="readwrite"/>
|
||||||
|
</interface>
|
||||||
|
</node>
|
11
data/dbus-interfaces/org.gnome.SettingsDaemon.Rfkill.xml
Normal file
11
data/dbus-interfaces/org.gnome.SettingsDaemon.Rfkill.xml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.gnome.SettingsDaemon.Rfkill">
|
||||||
|
<property name="AirplaneMode" type="b" access="readwrite"/>
|
||||||
|
<property name="HasAirplaneMode" type="b" access="read"/>
|
||||||
|
<property name="HardwareAirplaneMode" type="b" access="read"/>
|
||||||
|
<property name="BluetoothAirplaneMode" type="b" access="readwrite"/>
|
||||||
|
<property name="BluetoothHasAirplaneMode" type="b" access="read"/>
|
||||||
|
<property name="BluetoothHardwareAirplaneMode" type="b" access="readwrite"/>
|
||||||
|
<property name="ShouldShowAirplaneMode" type="b" access="read"/>
|
||||||
|
</interface>
|
||||||
|
</node>
|
13
data/dbus-interfaces/org.gnome.SettingsDaemon.Wacom.xml
Normal file
13
data/dbus-interfaces/org.gnome.SettingsDaemon.Wacom.xml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.gnome.SettingsDaemon.Wacom">
|
||||||
|
<method name="SetGroupModeLED">
|
||||||
|
<arg name="device_path" direction="in" type="s"/>
|
||||||
|
<arg name="group" direction="in" type="u"/>
|
||||||
|
<arg name="mode" direction="in" type="u"/>
|
||||||
|
</method>
|
||||||
|
<method name="SetOLEDLabels">
|
||||||
|
<arg name="device_path" direction="in" type="s"/>
|
||||||
|
<arg name="labels" direction="in" type="as"/>
|
||||||
|
</method>
|
||||||
|
</interface>
|
||||||
|
</node>
|
|
@ -0,0 +1,12 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.gnome.Shell.AudioDeviceSelection">
|
||||||
|
<method name="Open">
|
||||||
|
<arg name="devices" direction="in" type="as"/>
|
||||||
|
</method>
|
||||||
|
<method name="Close">
|
||||||
|
</method>
|
||||||
|
<signal name="DeviceSelected">
|
||||||
|
<arg name="device" type="s"/>
|
||||||
|
</signal>
|
||||||
|
</interface>
|
||||||
|
</node>
|
19
data/dbus-interfaces/org.gnome.Shell.CalendarServer.xml
Normal file
19
data/dbus-interfaces/org.gnome.Shell.CalendarServer.xml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.gnome.Shell.CalendarServer">
|
||||||
|
<method name="SetTimeRange">
|
||||||
|
<arg type="x" name="since" direction="in"/>
|
||||||
|
<arg type="x" name="until" direction="in"/>
|
||||||
|
<arg type="b" name="force_reload" direction="in"/>
|
||||||
|
</method>
|
||||||
|
<signal name="EventsAddedOrUpdated">
|
||||||
|
<arg type="a(ssxxa{sv})" name="events" direction="out"/>
|
||||||
|
</signal>
|
||||||
|
<signal name="EventsRemoved">
|
||||||
|
<arg type="as" name="ids" direction="out"/>
|
||||||
|
</signal>
|
||||||
|
<signal name="ClientDisappeared">
|
||||||
|
<arg type="s" name="source_uid" direction="out"/>
|
||||||
|
</signal>
|
||||||
|
<property name="HasCalendars" type="b" access="read" />
|
||||||
|
</interface>
|
||||||
|
</node>
|
15
data/dbus-interfaces/org.gnome.Shell.ClocksIntegration.xml
Normal file
15
data/dbus-interfaces/org.gnome.Shell.ClocksIntegration.xml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<node>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
org.gnome.Shell.ClocksIntegration:
|
||||||
|
@short_description: Clocks integration interface
|
||||||
|
|
||||||
|
The interface used for exporting location settings to GNOME Shell's
|
||||||
|
world clocks integration.
|
||||||
|
-->
|
||||||
|
<interface name="org.gnome.Shell.ClocksIntegration">
|
||||||
|
|
||||||
|
<property name="Locations" type="av" access="read"/>
|
||||||
|
|
||||||
|
</interface>
|
||||||
|
</node>
|
274
data/dbus-interfaces/org.gnome.Shell.Extensions.xml
Normal file
274
data/dbus-interfaces/org.gnome.Shell.Extensions.xml
Normal file
|
@ -0,0 +1,274 @@
|
||||||
|
<!DOCTYPE node PUBLIC
|
||||||
|
'-//freedesktop//DTD D-BUS Object Introspection 1.0//EN'
|
||||||
|
'http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd'>
|
||||||
|
<node>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
org.gnome.Shell.Extensions:
|
||||||
|
@short_description: Extensions interface
|
||||||
|
|
||||||
|
The interface used to query and manage extensions.
|
||||||
|
-->
|
||||||
|
<interface name="org.gnome.Shell.Extensions">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
ListExtensions:
|
||||||
|
@extensions: A dictionary of extension infos
|
||||||
|
|
||||||
|
Get a list of installed extensions. The returned @extensions
|
||||||
|
dictionary maps extension UUIDs to info vardicts. See
|
||||||
|
GetExtensionInfo() for documentation on possible keys.
|
||||||
|
-->
|
||||||
|
<method name="ListExtensions">
|
||||||
|
<arg type="a{sa{sv}}" direction="out" name="extensions"/>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
GetExtensionInfo:
|
||||||
|
@uuid: The UUID of the extension
|
||||||
|
@info: The returned extension info
|
||||||
|
|
||||||
|
The information returned in the @info vardict depends on the
|
||||||
|
metadata the extension provides, however it is guaranteed to
|
||||||
|
contain the following keys:
|
||||||
|
|
||||||
|
<variablelist>
|
||||||
|
<varlistentry>
|
||||||
|
<term>uuid s</term>
|
||||||
|
<listitem><para>The UUID of the extension</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>name s</term>
|
||||||
|
<listitem><para>The name of the extension</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>description s</term>
|
||||||
|
<listitem><para>
|
||||||
|
A short summary that describes what the extension does
|
||||||
|
</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>shell-version as</term>
|
||||||
|
<listitem><para>An array of support shell versions</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>type d</term>
|
||||||
|
<listitem><para>
|
||||||
|
The type of extension:
|
||||||
|
<simplelist>
|
||||||
|
<member>1: SYSTEM</member>
|
||||||
|
<member>2: PER_USER</member>
|
||||||
|
</simplelist>
|
||||||
|
</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>state d</term>
|
||||||
|
<listitem><para>
|
||||||
|
The state the extension is in:
|
||||||
|
<simplelist>
|
||||||
|
<member>1: ACTIVE</member>
|
||||||
|
<member>2: INACTIVE</member>
|
||||||
|
<member>3: ERROR</member>
|
||||||
|
<member>4: OUT_OF_DATE</member>
|
||||||
|
<member>5: DOWNLOADING</member>
|
||||||
|
<member>6: INITIALIZED</member>
|
||||||
|
<member>7: DEACTIVATING</member>
|
||||||
|
<member>8: ACTIVATING</member>
|
||||||
|
<member>99: UNINSTALLED</member>
|
||||||
|
</simplelist>
|
||||||
|
</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>path s</term>
|
||||||
|
<listitem><para>The extension directory</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>error s</term>
|
||||||
|
<listitem><para>The most recent error caught in init(), enable() or disable()</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>hasPrefs b</term>
|
||||||
|
<listitem><para>Whether the extension includes preference UI</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
</variablelist>
|
||||||
|
|
||||||
|
By convention, many extensions will also include the following keys:
|
||||||
|
<variablelist>
|
||||||
|
<varlistentry>
|
||||||
|
<term>version d</term>
|
||||||
|
<listitem><para>The extension version</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>version-name s</term>
|
||||||
|
<listitem><para>The extension version name</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>url s</term>
|
||||||
|
<listitem><para>The URL to the extension homepage or repository</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>settings-schema s</term>
|
||||||
|
<listitem><para>The ID of a bundled GSettings schema</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>gettext-domain s</term>
|
||||||
|
<listitem><para>The domain used for translations</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
</variablelist>
|
||||||
|
-->
|
||||||
|
<method name="GetExtensionInfo">
|
||||||
|
<arg type="s" direction="in" name="uuid"/>
|
||||||
|
<arg type="a{sv}" direction="out" name="info"/>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
GetExtensionErrors:
|
||||||
|
@uuid: The UUID of the extension
|
||||||
|
@errors: The returned errors
|
||||||
|
|
||||||
|
Get the list of errors that caused the extension
|
||||||
|
to be in ERROR state.
|
||||||
|
-->
|
||||||
|
<method name="GetExtensionErrors">
|
||||||
|
<arg type="s" direction="in" name="uuid"/>
|
||||||
|
<arg type="as" direction="out" name="errors"/>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
InstallRemoteExtension:
|
||||||
|
@uuid: The UUID of the extension
|
||||||
|
@result: The result of the operation
|
||||||
|
|
||||||
|
Download and install an extension.
|
||||||
|
-->
|
||||||
|
<method name="InstallRemoteExtension">
|
||||||
|
<arg type="s" direction="in" name="uuid"/>
|
||||||
|
<arg type="s" direction="out" name="result"/>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
UninstallExtension:
|
||||||
|
@uuid: The UUID of the extension
|
||||||
|
@success: Whether the operation was successful
|
||||||
|
|
||||||
|
Uninstall an extension.
|
||||||
|
-->
|
||||||
|
<method name="UninstallExtension">
|
||||||
|
<arg type="s" direction="in" name="uuid"/>
|
||||||
|
<arg type="b" direction="out" name="success"/>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
ReloadExtension:
|
||||||
|
@uuid: The UUID of the extension
|
||||||
|
|
||||||
|
Reload an extension.
|
||||||
|
-->
|
||||||
|
<method name="ReloadExtension">
|
||||||
|
<arg type="s" direction="in" name="uuid"/>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
EnableExtension:
|
||||||
|
@uuid: The UUID of the extension
|
||||||
|
@success: Whether the operation was successful
|
||||||
|
|
||||||
|
Enable an extension.
|
||||||
|
-->
|
||||||
|
<method name="EnableExtension">
|
||||||
|
<arg type="s" direction="in" name="uuid"/>
|
||||||
|
<arg type="b" direction="out" name="success"/>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
DisableExtension:
|
||||||
|
@uuid: The UUID of the extension
|
||||||
|
@success: Whether the operation was successful
|
||||||
|
|
||||||
|
Disable an extension.
|
||||||
|
-->
|
||||||
|
<method name="DisableExtension">
|
||||||
|
<arg type="s" direction="in" name="uuid"/>
|
||||||
|
<arg type="b" direction="out" name="success"/>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
LaunchExtensionPrefs:
|
||||||
|
Deprecated for OpenExtensionPrefs
|
||||||
|
-->
|
||||||
|
<method name="LaunchExtensionPrefs">
|
||||||
|
<arg type="s" direction="in" name="uuid"/>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
OpenExtensionPrefs:
|
||||||
|
@uuid: The UUID of the extension
|
||||||
|
@parent_window: Identifier for the application window
|
||||||
|
@options: Vardict with further options
|
||||||
|
|
||||||
|
Opens the prefs dialog of extension @uuid.
|
||||||
|
|
||||||
|
The following @options are recognized:
|
||||||
|
|
||||||
|
<variablelist>
|
||||||
|
<varlistentry>
|
||||||
|
<term>modal b</term>
|
||||||
|
<listitem>
|
||||||
|
<para>Whether the prefs window should be modal, default: false</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
</variablelist>
|
||||||
|
-->
|
||||||
|
<method name="OpenExtensionPrefs">
|
||||||
|
<arg type="s" direction="in" name="uuid"/>
|
||||||
|
<arg type="s" direction="in" name="parent_window"/>
|
||||||
|
<arg type="a{sv}" direction="in" name="options"/>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
CheckForUpdates:
|
||||||
|
Update all extensions for which updates are available
|
||||||
|
-->
|
||||||
|
<method name="CheckForUpdates"/>
|
||||||
|
|
||||||
|
<signal name="ExtensionStateChanged">
|
||||||
|
<arg type="s" name="uuid"/>
|
||||||
|
<arg type="a{sv}" name="state"/>
|
||||||
|
</signal>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
ExtensionStatusChanged:
|
||||||
|
Deprecated for ExtensionStateChanged
|
||||||
|
-->
|
||||||
|
<signal name="ExtensionStatusChanged">
|
||||||
|
<arg type="s" name="uuid"/>
|
||||||
|
<arg type="i" name="state"/>
|
||||||
|
<arg type="s" name="error"/>
|
||||||
|
</signal>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
ShellVersion:
|
||||||
|
The GNOME Shell version
|
||||||
|
-->
|
||||||
|
<property name="ShellVersion" type="s" access="read"/>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
UserExtensionsEnabled:
|
||||||
|
Whether user extensions are enabled
|
||||||
|
-->
|
||||||
|
<property name="UserExtensionsEnabled" type="b" access="readwrite"/>
|
||||||
|
|
||||||
|
</interface>
|
||||||
|
</node>
|
8
data/dbus-interfaces/org.gnome.Shell.HotplugSniffer.xml
Normal file
8
data/dbus-interfaces/org.gnome.Shell.HotplugSniffer.xml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.gnome.Shell.HotplugSniffer">
|
||||||
|
<method name="SniffURI">
|
||||||
|
<arg type="s" direction="in"/>
|
||||||
|
<arg type="as" direction="out"/>
|
||||||
|
</method>
|
||||||
|
</interface>
|
||||||
|
</node>
|
89
data/dbus-interfaces/org.gnome.Shell.Introspect.xml
Normal file
89
data/dbus-interfaces/org.gnome.Shell.Introspect.xml
Normal file
|
@ -0,0 +1,89 @@
|
||||||
|
<!DOCTYPE node PUBLIC
|
||||||
|
'-//freedesktop//DTD D-BUS Object Introspection 1.0//EN'
|
||||||
|
'http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd'>
|
||||||
|
<node>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
org.gnome.Shell.Introspect:
|
||||||
|
@short_description: Introspection interface
|
||||||
|
|
||||||
|
The interface used to introspect the state of Shell, such as running
|
||||||
|
applications, currently active application, etc.
|
||||||
|
-->
|
||||||
|
<interface name="org.gnome.Shell.Introspect">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
RunningApplicationsChanged:
|
||||||
|
@short_description: Notifies when the running applications changes
|
||||||
|
-->
|
||||||
|
<signal name="RunningApplicationsChanged" />
|
||||||
|
|
||||||
|
<!--
|
||||||
|
WindowsChanged:
|
||||||
|
@short_description: Notifies when any window opens or closes
|
||||||
|
-->
|
||||||
|
<signal name="WindowsChanged" />
|
||||||
|
|
||||||
|
<!--
|
||||||
|
GetRunningApplications:
|
||||||
|
@short_description: Retrieves the description of all running applications
|
||||||
|
|
||||||
|
Each application is associated by an application ID. The details of
|
||||||
|
each application consists of a varlist of keys and values. Available
|
||||||
|
keys are listed below.
|
||||||
|
|
||||||
|
'active-on-seats' - (as) list of seats the application is active on
|
||||||
|
(a seat only has at most one active
|
||||||
|
application)
|
||||||
|
-->
|
||||||
|
<method name="GetRunningApplications">
|
||||||
|
<arg name="apps" direction="out" type="a{sa{sv}}" />
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
GetWindows:
|
||||||
|
@short_description: Retrieves the current list of windows and their properties
|
||||||
|
|
||||||
|
A window is exposed as:
|
||||||
|
* t ID: unique ID of the window
|
||||||
|
* a{sv} properties: high-level properties
|
||||||
|
|
||||||
|
Known properties:
|
||||||
|
|
||||||
|
- "title" (s): (readonly) title of the window
|
||||||
|
- "app-id" (s): (readonly) application ID of the window
|
||||||
|
- "wm-class" (s): (readonly) class of the window
|
||||||
|
- "client-type" (u): (readonly) 0 for Wayland, 1 for X11
|
||||||
|
- "is-hidden" (b): (readonly) if the window is currently hidden
|
||||||
|
- "has-focus" (b): (readonly) if the window currently have
|
||||||
|
keyboard focus
|
||||||
|
- "width" (u): (readonly) width of the window
|
||||||
|
- "height" (u): (readonly) height of the window
|
||||||
|
-->
|
||||||
|
<method name="GetWindows">
|
||||||
|
<arg name="windows" direction="out" type="a{ta{sv}}" />
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
AnimationsEnabled:
|
||||||
|
@short_description: Whether the shell animations are enabled
|
||||||
|
|
||||||
|
By default determined by the org.gnome.desktop.interface enable-animations
|
||||||
|
gsetting, but may be overridden, e.g. if there is an active screen cast or
|
||||||
|
remote desktop session that asked for animations to be disabled.
|
||||||
|
|
||||||
|
Since: 2
|
||||||
|
-->
|
||||||
|
<property name="AnimationsEnabled" type="b" access="read"/>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
ScreenSize:
|
||||||
|
@short_description: The size of the screen
|
||||||
|
|
||||||
|
Since: 3
|
||||||
|
-->
|
||||||
|
<property name="ScreenSize" type="(ii)" access="read"/>
|
||||||
|
|
||||||
|
<property name="version" type="u" access="read"/>
|
||||||
|
</interface>
|
||||||
|
</node>
|
28
data/dbus-interfaces/org.gnome.Shell.PadOsd.xml
Normal file
28
data/dbus-interfaces/org.gnome.Shell.PadOsd.xml
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
<!DOCTYPE node PUBLIC
|
||||||
|
'-//freedesktop//DTD D-BUS Object Introspection 1.0//EN'
|
||||||
|
'http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd'>
|
||||||
|
<node>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
org.gnome.Shell.PadOSD:
|
||||||
|
@short_description: Pad OSD interface
|
||||||
|
|
||||||
|
The interface used to show button map OSD on pad devices.
|
||||||
|
-->
|
||||||
|
<interface name='org.gnome.Shell.Wacom.PadOsd'>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Show:
|
||||||
|
@device_node: device node file, usually in /dev/input/...
|
||||||
|
@edition_mode: whether toggling edition mode on when showing
|
||||||
|
|
||||||
|
Shows the pad button map OSD for the requested device, the OSD
|
||||||
|
will be shown according the current device settings (output
|
||||||
|
mapping, left handed mode, ...)
|
||||||
|
-->
|
||||||
|
<method name='Show'>
|
||||||
|
<arg name='device_node' direction='in' type='o'/>
|
||||||
|
<arg name='edition_mode' direction='in' type='b'/>
|
||||||
|
</method>
|
||||||
|
</interface>
|
||||||
|
</node>
|
15
data/dbus-interfaces/org.gnome.Shell.PerfHelper.xml
Normal file
15
data/dbus-interfaces/org.gnome.Shell.PerfHelper.xml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.gnome.Shell.PerfHelper">
|
||||||
|
<method name="Exit"/>
|
||||||
|
<method name="CreateWindow">
|
||||||
|
<arg type="i" direction="in"/>
|
||||||
|
<arg type="i" direction="in"/>
|
||||||
|
<arg type="b" direction="in"/>
|
||||||
|
<arg type="b" direction="in"/>
|
||||||
|
<arg type="b" direction="in"/>
|
||||||
|
<arg type="b" direction="in"/>
|
||||||
|
</method>
|
||||||
|
<method name="WaitWindows"/>
|
||||||
|
<method name="DestroyWindows"/>
|
||||||
|
</interface>
|
||||||
|
</node>
|
19
data/dbus-interfaces/org.gnome.Shell.PortalHelper.xml
Normal file
19
data/dbus-interfaces/org.gnome.Shell.PortalHelper.xml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.gnome.Shell.PortalHelper">
|
||||||
|
<method name="Authenticate">
|
||||||
|
<arg name="connection" type="o" direction="in"/>
|
||||||
|
<arg name="url" type="s" direction="in"/>
|
||||||
|
<arg name="timestamp" type="u" direction="in"/>
|
||||||
|
</method>
|
||||||
|
<method name="Close">
|
||||||
|
<arg name="connection" type="o" direction="in"/>
|
||||||
|
</method>
|
||||||
|
<method name="Refresh">
|
||||||
|
<arg name="connection" type="o" direction="in"/>
|
||||||
|
</method>
|
||||||
|
<signal name="Done">
|
||||||
|
<arg type="o" name="connection"/>
|
||||||
|
<arg type="u" name="result"/>
|
||||||
|
</signal>
|
||||||
|
</interface>
|
||||||
|
</node>
|
38
data/dbus-interfaces/org.gnome.Shell.ScreenTime.xml
Normal file
38
data/dbus-interfaces/org.gnome.Shell.ScreenTime.xml
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
<!DOCTYPE node PUBLIC
|
||||||
|
'-//freedesktop//DTD D-BUS Object Introspection 1.0//EN'
|
||||||
|
'http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd'>
|
||||||
|
<!--
|
||||||
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
SPDX-FileCopyrightText: 2024 GNOME Foundation, Inc.
|
||||||
|
-->
|
||||||
|
<node>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
org.gnome.Shell.ScreenTime:
|
||||||
|
@short_description: Screen Time interface
|
||||||
|
|
||||||
|
The interface used to access Screen Time and Break Reminders usage data.
|
||||||
|
-->
|
||||||
|
<interface name="org.gnome.Shell.ScreenTime">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
State:
|
||||||
|
|
||||||
|
The state of the break manager.
|
||||||
|
- 0: Break reminders are disabled.
|
||||||
|
- 1: Break reminders are enabled, user is active, no break is needed yet.
|
||||||
|
- 2: A break is needed and the user is taking it.
|
||||||
|
- 3: A break is needed but the user is still active.
|
||||||
|
-->
|
||||||
|
<property name="State" type="u" access="read"/>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
LastBreakEndTime:
|
||||||
|
|
||||||
|
The time (in wall clock seconds since the Unix epoch) when the most
|
||||||
|
recent break ended. If there have been no breaks so far, zero is
|
||||||
|
returned.
|
||||||
|
-->
|
||||||
|
<property name="LastBreakEndTime" type="t" access="read"/>
|
||||||
|
</interface>
|
||||||
|
</node>
|
101
data/dbus-interfaces/org.gnome.Shell.Screencast.xml
Normal file
101
data/dbus-interfaces/org.gnome.Shell.Screencast.xml
Normal file
|
@ -0,0 +1,101 @@
|
||||||
|
<!DOCTYPE node PUBLIC
|
||||||
|
'-//freedesktop//DTD D-BUS Object Introspection 1.0//EN'
|
||||||
|
'http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd'>
|
||||||
|
<node>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
org.gnome.Shell.Screencast:
|
||||||
|
@short_description: Screencast interface
|
||||||
|
|
||||||
|
The interface used to record screen contents.
|
||||||
|
-->
|
||||||
|
<interface name="org.gnome.Shell.Screencast">
|
||||||
|
<property name="ScreencastSupported" type="b" access="read"/>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Screencast:
|
||||||
|
@file_template: the template for the filename to use
|
||||||
|
@options: a dictionary of optional parameters
|
||||||
|
@success: whether the screencast was started successfully
|
||||||
|
@filename_used: the file where the screencast is being saved
|
||||||
|
|
||||||
|
Records a screencast of the whole screen and saves it
|
||||||
|
(by default) as webm video under a filename derived from
|
||||||
|
@file_template. The template is either a relative or absolute
|
||||||
|
filename which may contain some escape sequences - %d and %t
|
||||||
|
will be replaced by the start date and time of the recording.
|
||||||
|
If a relative name is used, the screencast will be saved in the
|
||||||
|
$XDG_VIDEOS_DIR if it exists, or the home directory otherwise.
|
||||||
|
The actual filename of the saved video is returned in @filename_used.
|
||||||
|
The set of optional parameters in @options currently consists of:
|
||||||
|
'draw-cursor'(b): whether the cursor should be included in the
|
||||||
|
recording (true)
|
||||||
|
'framerate'(i): the number of frames per second that should be
|
||||||
|
recorded if possible (30)
|
||||||
|
'pipeline'(s): the GStreamer pipeline used to encode recordings
|
||||||
|
in gst-launch format; if not specified, the
|
||||||
|
recorder will produce vp8 (webm) video (unset)
|
||||||
|
-->
|
||||||
|
<method name="Screencast">
|
||||||
|
<arg type="s" direction="in" name="file_template"/>
|
||||||
|
<arg type="a{sv}" direction="in" name="options"/>
|
||||||
|
<arg type="b" direction="out" name="success"/>
|
||||||
|
<arg type="s" direction="out" name="filename_used"/>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
ScreencastArea:
|
||||||
|
@x: the X coordinate of the area to capture
|
||||||
|
@y: the Y coordinate of the area to capture
|
||||||
|
@width: the width of the area to capture
|
||||||
|
@height: the height of the area to capture
|
||||||
|
@file_template: the template for the filename to use
|
||||||
|
@options: a dictionary of optional parameters
|
||||||
|
@success: whether the screencast was started successfully
|
||||||
|
@filename_used: the file where the screencast is being saved
|
||||||
|
|
||||||
|
Records a screencast of the passed in area and saves it
|
||||||
|
(by default) as webm video under a filename derived from
|
||||||
|
@file_template. The template is either a relative or absolute
|
||||||
|
filename which may contain some escape sequences - %d and %t
|
||||||
|
will be replaced by the start date and time of the recording.
|
||||||
|
If a relative name is used, the screencast will be saved in the
|
||||||
|
$XDG_VIDEOS_DIR if it exists, or the home directory otherwise.
|
||||||
|
The actual filename of the saved video is returned in @filename_used.
|
||||||
|
The set of optional parameters in @options currently consists of:
|
||||||
|
'draw-cursor'(b): whether the cursor should be included in the
|
||||||
|
recording (true)
|
||||||
|
'framerate'(i): the number of frames per second that should be
|
||||||
|
recorded if possible (30)
|
||||||
|
'pipeline'(s): the GStreamer pipeline used to encode recordings
|
||||||
|
in gst-launch format; if not specified, the
|
||||||
|
recorder will produce vp8 (webm) video (unset)
|
||||||
|
-->
|
||||||
|
<method name="ScreencastArea">
|
||||||
|
<arg type="i" direction="in" name="x"/>
|
||||||
|
<arg type="i" direction="in" name="y"/>
|
||||||
|
<arg type="i" direction="in" name="width"/>
|
||||||
|
<arg type="i" direction="in" name="height"/>
|
||||||
|
<arg type="s" direction="in" name="file_template"/>
|
||||||
|
<arg type="a{sv}" direction="in" name="options"/>
|
||||||
|
<arg type="b" direction="out" name="success"/>
|
||||||
|
<arg type="s" direction="out" name="filename_used"/>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
StopScreencast:
|
||||||
|
@success: whether stopping the recording was successful
|
||||||
|
|
||||||
|
Stop the recording started by either Screencast or ScreencastArea.
|
||||||
|
-->
|
||||||
|
<method name="StopScreencast">
|
||||||
|
<arg type="b" direction="out" name="success"/>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<signal name="Error">
|
||||||
|
<arg type="s" name="name"/>
|
||||||
|
<arg type="s" name="message"/>
|
||||||
|
</signal>
|
||||||
|
|
||||||
|
</interface>
|
||||||
|
</node>
|
161
data/dbus-interfaces/org.gnome.Shell.Screenshot.xml
Normal file
161
data/dbus-interfaces/org.gnome.Shell.Screenshot.xml
Normal file
|
@ -0,0 +1,161 @@
|
||||||
|
<!DOCTYPE node PUBLIC
|
||||||
|
'-//freedesktop//DTD D-BUS Object Introspection 1.0//EN'
|
||||||
|
'http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd'>
|
||||||
|
<node>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
org.gnome.Shell.Screenshot:
|
||||||
|
@short_description: Screenshot interface
|
||||||
|
|
||||||
|
The interface used to capture pictures of the screen contents.
|
||||||
|
-->
|
||||||
|
<interface name="org.gnome.Shell.Screenshot">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
InteractiveScreenshot:
|
||||||
|
@success: whether the screenshot was captured
|
||||||
|
@uri: the file where the screenshot was saved
|
||||||
|
|
||||||
|
Shows Shell's interactive screenshot dialog, and lets the
|
||||||
|
user take an interactive screenshot, which is then returned
|
||||||
|
in @filename as png image. It returns a boolean indicating
|
||||||
|
whether the operation was successful or not. The URI of the
|
||||||
|
screenshot will be returned in @uri.
|
||||||
|
-->
|
||||||
|
<method name="InteractiveScreenshot">
|
||||||
|
<arg type="b" direction="out" name="success"/>
|
||||||
|
<arg type="s" direction="out" name="uri"/>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Screenshot:
|
||||||
|
@filename: The filename for the screenshot
|
||||||
|
@include_cursor: Whether to include the cursor image or not
|
||||||
|
@flash: Whether to flash the screen or not
|
||||||
|
@success: whether the screenshot was captured
|
||||||
|
@filename_used: the file where the screenshot was saved
|
||||||
|
|
||||||
|
Takes a screenshot of the whole screen and saves it
|
||||||
|
in @filename as png image, it returns a boolean
|
||||||
|
indicating whether the operation was successful or not.
|
||||||
|
@filename can either be an absolute path or a basename, in
|
||||||
|
which case the screenshot will be saved in the $XDG_PICTURES_DIR
|
||||||
|
or the home directory if it doesn't exist. The filename used
|
||||||
|
to save the screenshot will be returned in @filename_used.
|
||||||
|
-->
|
||||||
|
<method name="Screenshot">
|
||||||
|
<arg type="b" direction="in" name="include_cursor"/>
|
||||||
|
<arg type="b" direction="in" name="flash"/>
|
||||||
|
<arg type="s" direction="in" name="filename"/>
|
||||||
|
<arg type="b" direction="out" name="success"/>
|
||||||
|
<arg type="s" direction="out" name="filename_used"/>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
ScreenshotWindow:
|
||||||
|
@include_frame: Whether to include the frame or not
|
||||||
|
@include_cursor: Whether to include the cursor image or not
|
||||||
|
@flash: Whether to flash the window area or not
|
||||||
|
@filename: The filename for the screenshot
|
||||||
|
@success: whether the screenshot was captured
|
||||||
|
@filename_used: the file where the screenshot was saved
|
||||||
|
|
||||||
|
Takes a screenshot of the focused window (optionally omitting the frame)
|
||||||
|
and saves it in @filename as png image, it returns a boolean
|
||||||
|
indicating whether the operation was successful or not.
|
||||||
|
@filename can either be an absolute path or a basename, in
|
||||||
|
which case the screenshot will be saved in the $XDG_PICTURES_DIR
|
||||||
|
or the home directory if it doesn't exist. The filename used
|
||||||
|
to save the screenshot will be returned in @filename_used.
|
||||||
|
-->
|
||||||
|
<method name="ScreenshotWindow">
|
||||||
|
<arg type="b" direction="in" name="include_frame"/>
|
||||||
|
<arg type="b" direction="in" name="include_cursor"/>
|
||||||
|
<arg type="b" direction="in" name="flash"/>
|
||||||
|
<arg type="s" direction="in" name="filename"/>
|
||||||
|
<arg type="b" direction="out" name="success"/>
|
||||||
|
<arg type="s" direction="out" name="filename_used"/>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
ScreenshotArea:
|
||||||
|
@x: the X coordinate of the area to capture
|
||||||
|
@y: the Y coordinate of the area to capture
|
||||||
|
@width: the width of the area to capture
|
||||||
|
@height: the height of the area to capture
|
||||||
|
@flash: whether to flash the area or not
|
||||||
|
@filename: the filename for the screenshot
|
||||||
|
@success: whether the screenshot was captured
|
||||||
|
@filename_used: the file where the screenshot was saved
|
||||||
|
|
||||||
|
Takes a screenshot of the passed in area and saves it
|
||||||
|
in @filename as png image, it returns a boolean
|
||||||
|
indicating whether the operation was successful or not.
|
||||||
|
@filename can either be an absolute path or a basename, in
|
||||||
|
which case the screenshot will be saved in the $XDG_PICTURES_DIR
|
||||||
|
or the home directory if it doesn't exist. The filename used
|
||||||
|
to save the screenshot will be returned in @filename_used.
|
||||||
|
-->
|
||||||
|
<method name="ScreenshotArea">
|
||||||
|
<arg type="i" direction="in" name="x"/>
|
||||||
|
<arg type="i" direction="in" name="y"/>
|
||||||
|
<arg type="i" direction="in" name="width"/>
|
||||||
|
<arg type="i" direction="in" name="height"/>
|
||||||
|
<arg type="b" direction="in" name="flash"/>
|
||||||
|
<arg type="s" direction="in" name="filename"/>
|
||||||
|
<arg type="b" direction="out" name="success"/>
|
||||||
|
<arg type="s" direction="out" name="filename_used"/>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
PickColor:
|
||||||
|
|
||||||
|
Picks a color and returns the result.
|
||||||
|
|
||||||
|
The @result vardict contains:
|
||||||
|
<variablelist>
|
||||||
|
<varlistentry>
|
||||||
|
<term>color (ddd)</term>
|
||||||
|
<listitem><para>The color, RGB values in the range [0,1].</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
</variablelist>
|
||||||
|
-->
|
||||||
|
<method name="PickColor">
|
||||||
|
<arg type="a{sv}" direction="out" name="result"/>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
FlashArea:
|
||||||
|
@x: the X coordinate of the area to flash
|
||||||
|
@y: the Y coordinate of the area to flash
|
||||||
|
@width: the width of the area to flash
|
||||||
|
@height: the height of the area to flash
|
||||||
|
|
||||||
|
Renders a flash spot effect in the specified rectangle of the screen.
|
||||||
|
-->
|
||||||
|
<method name="FlashArea">
|
||||||
|
<arg type="i" direction="in" name="x"/>
|
||||||
|
<arg type="i" direction="in" name="y"/>
|
||||||
|
<arg type="i" direction="in" name="width"/>
|
||||||
|
<arg type="i" direction="in" name="height"/>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
SelectArea:
|
||||||
|
@x: the X coordinate of the selected area
|
||||||
|
@y: the Y coordinate of the selected area
|
||||||
|
@width: the width of the selected area
|
||||||
|
@height: the height of the selected area
|
||||||
|
|
||||||
|
Interactively allows the user to select a rectangular area of
|
||||||
|
the screen, and returns its coordinates.
|
||||||
|
-->
|
||||||
|
<method name="SelectArea">
|
||||||
|
<arg type="i" direction="out" name="x"/>
|
||||||
|
<arg type="i" direction="out" name="y"/>
|
||||||
|
<arg type="i" direction="out" name="width"/>
|
||||||
|
<arg type="i" direction="out" name="height"/>
|
||||||
|
</method>
|
||||||
|
|
||||||
|
</interface>
|
||||||
|
</node>
|
8
data/dbus-interfaces/org.gnome.Shell.Wacom.PadOsd.xml
Normal file
8
data/dbus-interfaces/org.gnome.Shell.Wacom.PadOsd.xml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.gnome.Shell.Wacom.PadOsd">
|
||||||
|
<method name="Show">
|
||||||
|
<arg name="device_node" direction="in" type="o"/>
|
||||||
|
<arg name="edition_mode" direction="in" type="b"/>
|
||||||
|
</method>
|
||||||
|
</interface>
|
||||||
|
</node>
|
16
data/dbus-interfaces/org.gnome.Shell.WeatherIntegration.xml
Normal file
16
data/dbus-interfaces/org.gnome.Shell.WeatherIntegration.xml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
<node>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
org.gnome.Shell.WeatherIntegration:
|
||||||
|
@short_description: Weather integration interface
|
||||||
|
|
||||||
|
The interface used for exporting location settings to GNOME Shell's
|
||||||
|
weather integration.
|
||||||
|
-->
|
||||||
|
<interface name="org.gnome.Shell.WeatherIntegration">
|
||||||
|
|
||||||
|
<property name="AutomaticLocation" type="b" access="read"/>
|
||||||
|
<property name="Locations" type="av" access="read"/>
|
||||||
|
|
||||||
|
</interface>
|
||||||
|
</node>
|
51
data/dbus-interfaces/org.gnome.Shell.xml
Normal file
51
data/dbus-interfaces/org.gnome.Shell.xml
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.gnome.Shell">
|
||||||
|
<method name="Eval">
|
||||||
|
<arg type="s" direction="in" name="script"/>
|
||||||
|
<arg type="b" direction="out" name="success"/>
|
||||||
|
<arg type="s" direction="out" name="result"/>
|
||||||
|
</method>
|
||||||
|
<method name="FocusSearch"/>
|
||||||
|
<method name="ShowOSD">
|
||||||
|
<arg type="a{sv}" direction="in" name="params"/>
|
||||||
|
</method>
|
||||||
|
<method name="ShowMonitorLabels">
|
||||||
|
<arg type="a{sv}" direction="in" name="params"/>
|
||||||
|
</method>
|
||||||
|
<method name="HideMonitorLabels"/>
|
||||||
|
<method name="FocusApp">
|
||||||
|
<arg type="s" direction="in" name="id"/>
|
||||||
|
</method>
|
||||||
|
<method name="ShowApplications"/>
|
||||||
|
<method name="GrabAccelerator">
|
||||||
|
<arg type="s" direction="in" name="accelerator"/>
|
||||||
|
<arg type="u" direction="in" name="modeFlags"/>
|
||||||
|
<arg type="u" direction="in" name="grabFlags"/>
|
||||||
|
<arg type="u" direction="out" name="action"/>
|
||||||
|
</method>
|
||||||
|
<method name="GrabAccelerators">
|
||||||
|
<arg type="a(suu)" direction="in" name="accelerators"/>
|
||||||
|
<arg type="au" direction="out" name="actions"/>
|
||||||
|
</method>
|
||||||
|
<method name="UngrabAccelerator">
|
||||||
|
<arg type="u" direction="in" name="action"/>
|
||||||
|
<arg type="b" direction="out" name="success"/>
|
||||||
|
</method>
|
||||||
|
<method name="UngrabAccelerators">
|
||||||
|
<arg type="au" direction="in" name="action"/>
|
||||||
|
<arg type="b" direction="out" name="success"/>
|
||||||
|
</method>
|
||||||
|
<method name="ScreenTransition"/>
|
||||||
|
<signal name="AcceleratorActivated">
|
||||||
|
<arg name="action" type="u"/>
|
||||||
|
<arg name="parameters" type="a{sv}"/>
|
||||||
|
</signal>
|
||||||
|
<signal name="AcceleratorDeactivated">
|
||||||
|
<arg name="action" type="u"/>
|
||||||
|
<arg name="parameters" type="a{sv}"/>
|
||||||
|
</signal>
|
||||||
|
<property name="Mode" type="s" access="read"/>
|
||||||
|
<property name="OverviewActive" type="b" access="readwrite"/>
|
||||||
|
<property name="ShellVersion" type="s" access="read"/>
|
||||||
|
</interface>
|
||||||
|
</node>
|
73
data/dbus-interfaces/org.gnome.ShellSearchProvider.xml
Normal file
73
data/dbus-interfaces/org.gnome.ShellSearchProvider.xml
Normal file
|
@ -0,0 +1,73 @@
|
||||||
|
<!DOCTYPE node PUBLIC
|
||||||
|
'-//freedesktop//DTD D-BUS Object Introspection 1.0//EN'
|
||||||
|
'http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd'>
|
||||||
|
<node>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
org.gnome.Shell.SearchProvider:
|
||||||
|
@short_description: Search provider interface
|
||||||
|
|
||||||
|
The interface used for integrating into GNOME Shell's search
|
||||||
|
interface. This interface is deprecated, and org.gnome.Shell.SearchProvider2 should be used instead.
|
||||||
|
-->
|
||||||
|
<interface name="org.gnome.Shell.SearchProvider">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
GetInitialResultSet:
|
||||||
|
@terms: Array of search terms, which the provider should treat as logical AND.
|
||||||
|
@results: An array of result identifier strings representing items which match the given search terms. Identifiers must be unique within the provider's domain, but other than that may be chosen freely by the provider.
|
||||||
|
|
||||||
|
Called when the user first begins a search.
|
||||||
|
-->
|
||||||
|
<method name="GetInitialResultSet">
|
||||||
|
<arg type="as" name="terms" direction="in" />
|
||||||
|
<arg type="as" name="results" direction="out" />
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
GetSubsearchResultSet:
|
||||||
|
@previous_results: Array of results previously returned by GetInitialResultSet().
|
||||||
|
@terms: Array of updated search terms, which the provider should treat as logical AND.
|
||||||
|
@results: An array of result identifier strings representing items which match the given search terms. Identifiers must be unique within the provider's domain, but other than that may be chosen freely by the provider.
|
||||||
|
|
||||||
|
Called when a search is performed which is a "subsearch" of
|
||||||
|
the previous search, e.g. the method may return less results, but
|
||||||
|
not more or different results.
|
||||||
|
|
||||||
|
This allows search providers to only search through the previous
|
||||||
|
result set, rather than possibly performing a full re-query.
|
||||||
|
-->
|
||||||
|
<method name="GetSubsearchResultSet">
|
||||||
|
<arg type="as" name="previous_results" direction="in" />
|
||||||
|
<arg type="as" name="terms" direction="in" />
|
||||||
|
<arg type="as" name="results" direction="out" />
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
GetResultMetas:
|
||||||
|
@identifiers: An array of result identifiers as returned by GetInitialResultSet() or GetSubsearchResultSet()
|
||||||
|
@metas: A dictionary describing the given search result, containing a human-readable 'name' (string), along with the result identifier this meta is for, 'id' (string). Optionally, either 'gicon' (a serialized GIcon) or 'icon-data' (raw image data as (iiibiiay) - width, height, rowstride, has-alpha, bits per sample, channels, data) can be specified if the result can be better served with a thumbnail of the content (such as with images). A 'description' field (string) may also be specified if more context would help the user find the desired result.
|
||||||
|
|
||||||
|
Return an array of meta data used to display each given result
|
||||||
|
-->
|
||||||
|
<method name="GetResultMetas">
|
||||||
|
<arg type="as" name="identifiers" direction="in" />
|
||||||
|
<arg type="aa{sv}" name="metas" direction="out" />
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
ActivateResult:
|
||||||
|
@identifier: A result identifier as returned by GetInitialResultSet() or GetSubsearchResultSet()
|
||||||
|
|
||||||
|
Called when the users chooses a given result. The result should
|
||||||
|
be displayed in the application associated with the corresponding
|
||||||
|
provider.
|
||||||
|
|
||||||
|
This method is deprecated, and providers should implement ActivateResult2()
|
||||||
|
instead.
|
||||||
|
-->
|
||||||
|
<method name="ActivateResult">
|
||||||
|
<arg type="s" name="identifier" direction="in" />
|
||||||
|
</method>
|
||||||
|
</interface>
|
||||||
|
</node>
|
87
data/dbus-interfaces/org.gnome.ShellSearchProvider2.xml
Normal file
87
data/dbus-interfaces/org.gnome.ShellSearchProvider2.xml
Normal file
|
@ -0,0 +1,87 @@
|
||||||
|
<!DOCTYPE node PUBLIC
|
||||||
|
'-//freedesktop//DTD D-BUS Object Introspection 1.0//EN'
|
||||||
|
'http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd'>
|
||||||
|
<node>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
org.gnome.Shell.SearchProvider2:
|
||||||
|
@short_description: Search provider interface
|
||||||
|
|
||||||
|
The interface used for integrating into GNOME Shell's search
|
||||||
|
interface (version 2).
|
||||||
|
-->
|
||||||
|
<interface name="org.gnome.Shell.SearchProvider2">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
GetInitialResultSet:
|
||||||
|
@terms: Array of search terms, which the provider should treat as logical AND.
|
||||||
|
@results: An array of result identifier strings representing items which match the given search terms. Identifiers must be unique within the provider's domain, but other than that may be chosen freely by the provider.
|
||||||
|
|
||||||
|
Called when the user first begins a search.
|
||||||
|
-->
|
||||||
|
<method name="GetInitialResultSet">
|
||||||
|
<arg type="as" name="terms" direction="in" />
|
||||||
|
<arg type="as" name="results" direction="out" />
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
GetSubsearchResultSet:
|
||||||
|
@previous_results: Array of results previously returned by GetInitialResultSet().
|
||||||
|
@terms: Array of updated search terms, which the provider should treat as logical AND.
|
||||||
|
@results: An array of result identifier strings representing items which match the given search terms. Identifiers must be unique within the provider's domain, but other than that may be chosen freely by the provider.
|
||||||
|
|
||||||
|
Called when a search is performed which is a "subsearch" of
|
||||||
|
the previous search, e.g. the method may return less results, but
|
||||||
|
not more or different results.
|
||||||
|
|
||||||
|
This allows search providers to only search through the previous
|
||||||
|
result set, rather than possibly performing a full re-query.
|
||||||
|
-->
|
||||||
|
<method name="GetSubsearchResultSet">
|
||||||
|
<arg type="as" name="previous_results" direction="in" />
|
||||||
|
<arg type="as" name="terms" direction="in" />
|
||||||
|
<arg type="as" name="results" direction="out" />
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
GetResultMetas:
|
||||||
|
@identifiers: An array of result identifiers as returned by GetInitialResultSet() or GetSubsearchResultSet()
|
||||||
|
@metas: A dictionary describing the given search result, containing a human-readable 'name' (string), along with the result identifier this meta is for, 'id' (string). Optionally, 'icon' (a serialized GIcon as obtained by g_icon_serialize) can be specified if the result can be better served with a thumbnail of the content (such as with images). 'gicon' (a serialized GIcon as obtained by g_icon_to_string) or 'icon-data' (raw image data as (iiibiiay) - width, height, rowstride, has-alpha, bits per sample, channels, data) are deprecated values that can also be used for that purpose. A 'description' field (string) may also be specified if more context would help the user find the desired result.
|
||||||
|
|
||||||
|
Return an array of meta data used to display each given result
|
||||||
|
-->
|
||||||
|
<method name="GetResultMetas">
|
||||||
|
<arg type="as" name="identifiers" direction="in" />
|
||||||
|
<arg type="aa{sv}" name="metas" direction="out" />
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
ActivateResult:
|
||||||
|
@identifier: A result identifier as returned by GetInitialResultSet() or GetSubsearchResultSet()
|
||||||
|
@terms: Array of search terms, which the provider should treat as logical AND.
|
||||||
|
@timestamp: A timestamp of the user interaction that triggered this call
|
||||||
|
|
||||||
|
Called when the users chooses a given result. The result should
|
||||||
|
be displayed in the application associated with the corresponding
|
||||||
|
provider. The provided search terms can be used to allow launching a full search in
|
||||||
|
the application.
|
||||||
|
-->
|
||||||
|
<method name="ActivateResult">
|
||||||
|
<arg type="s" name="identifier" direction="in" />
|
||||||
|
<arg type="as" name="terms" direction="in" />
|
||||||
|
<arg type="u" name="timestamp" direction="in" />
|
||||||
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
LaunchSearch:
|
||||||
|
@terms: Array of search terms, which the provider should treat as logical AND.
|
||||||
|
@timestamp: A timestamp of the user interaction that triggered this call
|
||||||
|
|
||||||
|
Asks the search provider to launch a full search in the application for the provided terms.
|
||||||
|
-->
|
||||||
|
<method name="LaunchSearch">
|
||||||
|
<arg type="as" name="terms" direction="in" />
|
||||||
|
<arg type="u" name="timestamp" direction="in" />
|
||||||
|
</method>
|
||||||
|
</interface>
|
||||||
|
</node>
|
20
data/dbus-interfaces/org.gtk.Notifications.xml
Normal file
20
data/dbus-interfaces/org.gtk.Notifications.xml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.gtk.Notifications">
|
||||||
|
<method name="AddNotification">
|
||||||
|
<arg name="app_id" type="s" direction="in"/>
|
||||||
|
<arg name="id" type="s" direction="in"/>
|
||||||
|
<arg name="notification" type="a{sv}" direction="in"/>
|
||||||
|
</method>
|
||||||
|
<method name="RemoveNotification">
|
||||||
|
<arg name="app_id" type="s" direction="in"/>
|
||||||
|
<arg name="id" type="s" direction="in"/>
|
||||||
|
</method>
|
||||||
|
<signal name="ActionInvoked">
|
||||||
|
<arg name="app_id" type="s"/>
|
||||||
|
<arg name="id" type="s"/>
|
||||||
|
<arg name="action" type="s"/>
|
||||||
|
<arg name="parameter" type="av"/>
|
||||||
|
<arg name="platform_data" type="a{sv}"/>
|
||||||
|
</signal>
|
||||||
|
</interface>
|
||||||
|
</node>
|
12
data/dbus-interfaces/org.mpris.MediaPlayer2.Player.xml
Normal file
12
data/dbus-interfaces/org.mpris.MediaPlayer2.Player.xml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.mpris.MediaPlayer2.Player">
|
||||||
|
<method name="PlayPause"/>
|
||||||
|
<method name="Next"/>
|
||||||
|
<method name="Previous"/>
|
||||||
|
<property name="CanGoNext" type="b" access="read"/>
|
||||||
|
<property name="CanGoPrevious" type="b" access="read"/>
|
||||||
|
<property name="CanPlay" type="b" access="read"/>
|
||||||
|
<property name="Metadata" type="a{sv}" access="read"/>
|
||||||
|
<property name="PlaybackStatus" type="s" access="read"/>
|
||||||
|
</interface>
|
||||||
|
</node>
|
8
data/dbus-interfaces/org.mpris.MediaPlayer2.xml
Normal file
8
data/dbus-interfaces/org.mpris.MediaPlayer2.xml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<node>
|
||||||
|
<interface name="org.mpris.MediaPlayer2">
|
||||||
|
<method name="Raise"/>
|
||||||
|
<property name="CanRaise" type="b" access="read"/>
|
||||||
|
<property name="DesktopEntry" type="s" access="read"/>
|
||||||
|
<property name="Identity" type="s" access="read"/>
|
||||||
|
</interface>
|
||||||
|
</node>
|
17
data/default-apps/app-grid.txt
Normal file
17
data/default-apps/app-grid.txt
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
org.gnome.Geary.desktop
|
||||||
|
org.gnome.Contacts.desktop
|
||||||
|
org.gnome.Weather.desktop
|
||||||
|
org.gnome.clocks.desktop
|
||||||
|
org.gnome.Maps.desktop
|
||||||
|
org.gnome.Music.desktop
|
||||||
|
simple-scan.desktop
|
||||||
|
org.gnome.Settings.desktop
|
||||||
|
org.gnome.Boxes.desktop
|
||||||
|
org.gnome.Totem.desktop
|
||||||
|
org.gnome.Snapshot.desktop
|
||||||
|
org.gnome.Characters.desktop
|
||||||
|
Utilities # folder
|
||||||
|
System # folder
|
||||||
|
org.gnome.Console.desktop
|
||||||
|
org.gnome.Tour.desktop
|
||||||
|
yelp.desktop
|
6
data/default-apps/dash.txt
Normal file
6
data/default-apps/dash.txt
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
org.gnome.Epiphany.desktop
|
||||||
|
org.gnome.Calendar.desktop
|
||||||
|
org.gnome.Nautilus.desktop
|
||||||
|
org.gnome.Software.desktop
|
||||||
|
org.gnome.TextEditor.desktop
|
||||||
|
org.gnome.Calculator.desktop
|
10
data/default-apps/system-folder.txt
Normal file
10
data/default-apps/system-folder.txt
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
nm-connection-editor.desktop # Advanced Network Configuration
|
||||||
|
org.gnome.DejaDup.desktop # Backups
|
||||||
|
org.gnome.baobab.desktop # Disk Usage Analyzer
|
||||||
|
org.gnome.DiskUtility.desktop # Disks
|
||||||
|
org.gnome.Logs.desktop # Logs
|
||||||
|
org.freedesktop.MalcontentControl.desktop # Parental Controls
|
||||||
|
org.freedesktop.GnomeAbrt.desktop # Problem Reporting
|
||||||
|
org.gnome.tweaks.desktop # Tweaks
|
||||||
|
org.gnome.Sysprof.desktop # Sysprof
|
||||||
|
org.gnome.SystemMonitor.desktop # System Monitor
|
8
data/default-apps/utilities-folder.txt
Normal file
8
data/default-apps/utilities-folder.txt
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# Sorted by name as shown in menus, not filename
|
||||||
|
org.gnome.Decibels # Audio Player
|
||||||
|
org.gnome.Connections.desktop # Connections
|
||||||
|
org.gnome.Evince.desktop # Document Viewer
|
||||||
|
org.gnome.FileRoller.desktop # File Roller
|
||||||
|
org.gnome.font-viewer.desktop # Fonts
|
||||||
|
org.gnome.Loupe.desktop # Image Viewer
|
||||||
|
org.gnome.seahorse.Application.desktop # Passwords and Keys
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue