1
0
mirror of https://gitlab.gnome.org/GNOME/nautilus synced 2024-06-30 23:46:35 +00:00
Commit Graph

137 Commits

Author SHA1 Message Date
António Fernandes
83d595afa3 application: Initialize service channel display
This is going to allow the upcoming FileChooser portal implementation
to attach its window as a modal dialog to client applications, even
if they use different display servers (X11 and Wayland).
2024-06-23 00:04:05 +01:00
António Fernandes
972d717816 flatpak: Request access to more tracker graphs
Batch rename dialog doesn't offer metadata while running as flatpak.

This is because we do not request access to the graphs where that
metadata lives.

Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/1819
2024-06-12 10:46:19 +00:00
António Fernandes
0e6e3946eb general: React to tracker projects rename
Tracker SPARQL is now TinySPARQL. Tracker Miners is now LocalSearch.

The old DBus and library APIs still work so there is no rush there.

But the executables and git repositories need to be updated now.

https://discourse.gnome.org/t/renaming-tracker-git-and-tracker-sparql-git-and-changing-default-branch/21461
2024-06-12 10:46:19 +00:00
Corey Berla
79c1bee16b flatpak: Tempoarily disable landlock in tracker-miners
landlock is set to auto, but that causes our pipelines to fail because
when landlock.h is detected, but is disabled in the kernel, the build
errors.  The suggested route is to use explicit build options.

Related: https://gitlab.gnome.org/GNOME/tracker-miners/-/merge_requests/508
2024-02-15 23:48:01 +00:00
Peter Eisenmann
ec0291d371 Revert "flatpak manifest: Pin tracker-miners"
The concerns of an unstable tracker-sparql version not being
available in the SDK no longer apply. Thus, revert commit
8d1b02c125.
2023-11-12 23:43:41 +01:00
António Fernandes
8d1b02c125 flatpak manifest: Pin tracker-miners
It has recently started to depend on unstable version of tracker-sparql
e02ecb3171

In due time, that should be available in the SDK, but we are moving to fast to wait for that, so let's unblock our CI pipeline.
2023-11-06 13:24:30 +00:00
Khalid Abu Shawarib
4425df0966 build: bump gexiv dependency to 0.14.2
This resolves an issue with GPS coordinates not showing
when there's no altitude number.

See: 634df09f85
2023-09-11 13:27:13 +03:00
Corey Berla
3970705d15 previewer: Enable use of NautilusPreviewerDevel
Nautilus uses NautilusPreviewer regardless of if we are using the
development or default profile.  Now that Sushi has introduced a
nightly version, let's default the Nautilus nightly version to use
Sushi nightly when available.  If NautilusPreviewerDevel is not
available then fall back to NautilusPreviewer
2023-07-01 21:40:51 +00:00
Corey Berla
5331a63250 flatpak: Build without vala bindings
vala bindings were removed in [1] which is causing out pipelines to
fail.  We don't need them anyways, so disable the build options for
libportal and libcloudproviders.

[1] 6a9ed593d3
2023-06-27 09:17:36 -07:00
Jordan Petridis
ea693f82ce flatpak: Fix default branch of nautilus 2023-05-26 11:35:44 +00:00
Jordan Petridis
9f4ab27d21 flatpak: Add run-tests and test-args to the manifest 2023-05-26 11:35:44 +00:00
Carlos Garnacho
9ff35c642d flatpak: Fix Tracker3 access to portal
At some point, the flatpak command line interface changed so it is not
possible to add multiple values to a same key with a single --add-policy
call. Doing this now results in a single value added, with the ';'
escaped, this breaks Tracker portal access and results in Nautilus resorting
to the built-in miner instance.

It is however possible to call --add-policy multiple times to make
a multi-valued key, this restores the intended behavior and provides
access to the two tracker:FileSystem and tracker:Documents graphs.
Adapt the flatpak manifest to do this.

Closes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/2838
2023-04-21 07:26:32 +00:00
Ondrej Holy
cb8ed0c48f flatpak: Remove --talk-name=org.gtk.vfs
The `--talk-name=org.gtk.vfs` statement should not be used in manifests
as there is no service with such name. The `--talk-name=org.gtk.vfs.*`
statement should be pretty enough for the GVfs access. See:
https://docs.flatpak.org/en/latest/sandbox-permissions.html#gvfs-access
Let's drop that statement.
2023-03-02 15:37:45 +00:00
Ondrej Holy
1569af12df flatpak: Use -Dbattery_detection=none for tracker-miners
The flatpak jobs are broken currently, because the tracker-miners project
fails to build due to missing upower-glib depenedency. It is used to tweak
the behavior when running on battery. It used to be automatically disabled
until the following MR:
https://gitlab.gnome.org/GNOME/nautilus/-/merge_requests/1121. I suppose
it is safe to disable this functionality as our flatpak isn't meant for
production. Let's explicitely disable that to fix our pipeline.
2023-02-07 09:17:28 +00:00
António Fernandes
52ae389530 flatpak: Remove YAML manifest
It's been added expecting Builder would support it, such that we could
drop the JSON manifest. 3b8f238624

But it didn't happen so far https://gitlab.gnome.org/GNOME/gnome-builder/-/issues/520

Since then we have been maintaining both files in sync, which is a waste
of effort at best, and a risk of the product of each manifest becoming 
different, at worst.

Now that the CI uses the JSON manifest, we can just drop the YAML one.
2022-12-21 12:38:24 +00:00
Bastien Nocera
5dcda946b7 flatpak: Fix build after options changes in libportal
See https://github.com/flatpak/libportal/pull/104
2022-12-10 17:04:56 +01:00
António Fernandes
735b6aae88 flatpak: Allow to talk with sushi over DBus
Otherwise, the previewing functionality doesn't work while sandboxed.
2022-09-01 08:58:57 +01:00
Ondrej Holy
9dcb29db7b flatpak: Add libcloudproviders dependency
The libcloudproviders dependency is now mandatory. Let's add it in
the manifest.
2022-08-06 12:40:58 +00:00
Corey Berla
5362729e69 flatpak: Allow talk to org.gnome.Console for terminal launching 2022-08-04 22:30:38 +00:00
Corey Berla
42cfa365fb flatpak: Enable talk to org.gtk.MountOperationHandler
When unmounting a volume from the sidebar, there's a feature to also
empty the trash, which is crashing because of an x11 dependency in
GTK.  It turns out that that dependency is only if you can't
communicate with the org.gtkMountOperationHandler dbus interface.
Add talk-name to the flatpak manifest.
2022-07-30 14:50:50 +00:00
Corey Berla
b5997110e2 flatpak: Add access to filesystem /tmp
filesystem=host blacklists /tmp.  We are going to want to
save a temporary archive for the Email To function.
If we save it outside of the /tmp directory, it could
end up wasting a lot of disk space.  Allow access
to /tmp
2022-07-21 21:19:11 +00:00
Corey Berla
d219b85d61 dbus-launcher: Launch programs via DBUS
Nautilus launches external programs (i.e. Settings & gnome-disks)
directly via the commandline which doesn't work in flatpaks.
Create new module nautilus-dbus-launcher to allow for launching
these programs via DBus.  nautilus-application holds ono a
singleton instance of the dbus launcher (similar to undo manager
and tag manager) so we don't need to create proxies over and over again.
2022-07-14 22:09:29 +00:00
Georges Basile Stavracas Neto
a5d25f37d6 flatpak: Allow accessing the GPU
By giving the --device=dri permission, Nautilus can access
the GPU. This wasn't a big deal with GTK3, but on GTK4 that
enabled hardware-accelerated rendering via OpenGL, and it
makes a noticeable difference in terms of CPU usage and
perceived performance.
2022-02-10 07:49:44 +00:00
Christopher Davis
502c4d8f76 flatpak: Use main branch for libportal
libportal changed the name of their primary branch to
`main`. `flatpak` can't automatically handle `main`,
so we need to specify it manually.

Should fix the recent CI failures.
2022-02-09 08:43:05 +00:00
António Fernandes
e358c2343c general: Switch to GTK4
The new major version of the toolkit is a requirement to fix old issues and enable future enhancements.

Update symbols and adapt logic to API changes.
Update and simplify UI definitions.
Update local copy of places sidebar and places view.
Replace dependencies with their GTK4-compatible successors.
Make a minimum changes required to build and run, with known
regressions to be fixed in future commits.

For a detailed breakup of the changes, see the 36 commits-deep
log leading to d5763facb1e5045251171ed1273dca0859f3542f.

This is the main part of https://gitlab.gnome.org/GNOME/nautilus/-/issues/276
2022-01-09 01:25:39 +00:00
António Fernandes
55cfd66ccc general: Add libportal-gtk3 dependency
The portal-gtk3.h header has been moved into a separate library which
binds gtk3 explicitly.

https://github.com/flatpak/libportal/pull/53
2021-12-25 16:29:44 +01:00
António Fernandes
87b93eb803 Revert "general: Add libportal-gtk3 dependency"
This reverts commit ae752ea078
2021-12-21 23:30:27 +00:00
António Fernandes
ae752ea078 general: Add libportal-gtk3 dependency
The portal-gtk3.h header has been moved into a separate library which
binds gtk3 explicitly.

https://github.com/flatpak/libportal/pull/53
2021-12-21 17:42:27 +00:00
Nishal Kulkarni
0dfaaaeecd extensions/image-properties: Replace deprecated functions
Build log contains deprecation warnings for gexiv2 functions.
Replaced `gexiv2_metadata_has_tag()` with
`gexiv2_metadata_try_has_tag()` and `gexiv2_metadata_get_orientation()`
with `gexiv2_metadata_try_get_orientation()`

Closes: #2033
2021-12-04 22:54:14 +00:00
António Fernandes
b2c67de28a flatpak: Pin libportal dependency
Changes in libportal main branch break the CI and require dependency
changes which we shouldn't make on stable branch.

(cherry picked from commit 67927cb09b)
2021-11-08 20:18:06 +00:00
Ondrej Holy
78275a7180 ci: Remove flatpak master job
The flatpak master job seems to be redundant currently. It uses the same
image as flatpak devel and their .yml files are equal. The two flatpak jobs
are relict from the times when GNOME SDK was unstable and broke CI often,
which is no more true. Let's remove the flatpak master job.
2021-10-11 06:45:26 +00:00
Ondrej Holy
f5b9018f2c flatpak: Pin gexiv2 and exiv2 dependencies to fix build
The flatpak build currently fails because of gexiv2 build failure, which is
a problem for our contributors and among others breaks our CI pipeline. The
potential fix is available already for a couple of days on
https://gitlab.gnome.org/GNOME/gexiv2/-/merge_requests/63 but not yet merged.
Let's temporarily pin the gexiv2 and exiv2 dependencies to the stable branches
to fix those issues.
2021-09-17 12:56:00 +02:00
António Fernandes
7d188272c8 flatpak: Disable build options for gexiv2
We already disable introspection, which is required by the vapi and
python3 options.

We don't really on either and this is breaking the CI.


(cherry picked from commit 46579d08b0b1183aa36544e0e949a6d42c53ce84)
2021-08-15 20:14:06 +00:00
Ondrej Holy
82f4d0cd94 Switch to meson for gnome-autoar
Relates: https://gitlab.gnome.org/GNOME/gnome-autoar/-/merge_requests/11
2021-08-10 11:20:25 +00:00
Ondrej Holy
8c5fa3eb08 extensions/image-properties: Replace deprecated symbols
The build log contains warnings about deprecated gexiv2 functions. Let's
port to the new API, unpin exiv3 and gexiv2 dependencies in flatpak manifests
and bump the build dependency accordingly to get rid of the warnings.
2021-07-09 15:46:59 +02:00
Ondrej Holy
ca845f2b3c flatpak: Drop network requirement
The network access is no more needed for gvfs support as it currently
uses named sockets instead of abstract ones. It is enough to allow access
to `xdg-run/gvfsd` folder, where the named sockets reside. I'm not aware
of other reasons for allowing network access. Let's drop the network
access. This also workarounds "Too many open files" errors caused by
leftover sockets (GNOME/gvfs#542).

Relates: https://gitlab.gnome.org/GNOME/gvfs/-/issues/515
2021-04-11 22:33:20 +00:00
Felipe Borges
7cab1cd762 build, flatpak: Add libportal dependency
Fixes #795
2020-11-18 15:30:13 +00:00
Sam Thursfield
034a6a3394 flatpak: Update for Tracker Miners 3
Tracker 3 is provided in the Flatpak SDK, see
https://gitlab.gnome.org/GNOME/gnome-build-meta/-/merge_requests/630.

We still build tracker-miners inside the Flatpak bundle, so that the
org.freedesktop.Tracker3.Miner.Files settings schema is available, and
so that the tests that depend on Tracker can pass as part of the CI
build.

Access to the host's miners is controlled by the new
org.freedesktop.Tracker.portal process provided in Tracker 3.
2020-09-02 18:50:17 +02:00
Ondrej Holy
7868470694 flatpak: Build all tests by default
The flatpak template has been changed recently and MESON_ARGS variable
doesn't have any effect currently. Let's drop MESON_ARGS and move the
build options into the manifests directly (ie. -Dtests=all).

See:
https://gitlab.gnome.org/GNOME/citemplates/blob/master/flatpak/flatpak_ci_initiative.yml
https://mail.gnome.org/archives/desktop-devel-list/2020-April/thread.html
2020-05-10 22:59:32 +00:00
Ondrej Holy
0c91a64a43 flatpak: Remove unused gcovr module
The coverage is not computed since the commit a5a405d. Let's remove
the unused gcovr module also.
2020-04-05 16:22:26 +00:00
António Fernandes
65c338384c flatpak: Fix typos
Pipeline failed.

Cause: invalid URLs resulting from faulty select-copy-paste operation.
2020-03-09 21:27:14 +00:00
António Fernandes
90cc5fed28 flatpak: Unpin tracker[-miners]
We've pinned to specific versions, because their
git master branches have API-breaking changes.

Instead, let's follow from the tracker[-miners]-2.3 branches, where 
the stable API is still maintained.
2020-03-09 21:15:28 +00:00
Ondrej Holy
68f63d2c40 flatpak: Use also tracker-miners 2.3.2
tracker-miners master requires tracker-testutils 2.0, but they are not
provided by tracker 2.3.2 and tracker master provides just version 3.0.
Let's use tracker-miners 2.3.2 to workaround this issue.
2020-02-21 12:30:22 +01:00
Ondrej Holy
5b7192c34f flatpak: Use tracker 2.3.2 as tracker-miners requires old API
Flatpak generation fails currently because tracker-miners still requires
tracker API version 2.0. Let's use tracker 2.3.2, until tracker-miners
will be ported to 3.0.
2020-02-21 12:01:28 +01:00
Ondrej Holy
5a74959caf flatpak: Use default libdir location for tracker
I don't see any reason to manually specify libdir for tracker as
it seemingly uses the same directory by default. Let's remove that
redundant definition.
2020-02-21 12:01:28 +01:00
António Fernandes
d95a616116 flatpak: Unpin most dependencies
We are near 3.36, so let's update the dependencies.

gexiv2 git master is failing to build locally, so I've 
updated it to the latest tag that builds locally.
2020-02-06 20:28:17 +00:00
António Fernandes
cdd9ce790f flatpak: Drop '(Development)' app name prefix
The prefix is not localized, and tends to ellipsize the name.

With the introduction of an icon for the development profile, there is
enough visual distinction in the app grip.

So, drop the prefix.

Part of https://gitlab.gnome.org/GNOME/Initiatives/issues/12
2019-10-13 17:17:53 +01:00
Ondrej Holy
7d3ae8755d ci: Update gexiv2 meson options to fix flatpak master
The -Ddisable-introspection gexiv2 meson option was renamed to -Dintrospection.
25a03fe69c

Let's reflect this in the org.gnome.NautilusMaster.yml file to fix the flatpak
master job as it currenty fails with "OSError: [Errno 30] Read-only file system:
'/usr/lib/python3.7/site-packages/gi/overrides/GExiv2.py'" error.
2019-10-13 15:09:50 +00:00
António Fernandes
81dd339634 flatpak: Update to 3.34 runtime
Also, bundle intltool, because the 3.34 Sdk doesn't include it but
tracker-miners still depends on it.

Intltool lines taken from https://github.com/flathub/shared-modules.git
2019-09-18 21:46:20 +01:00
Jordan Petridis
45fc00c5c3
flatpak: fix the yml manifests to better reflect json structure
See !467
2019-07-02 18:42:07 +03:00