Commit graph

32 commits

Author SHA1 Message Date
António Fernandes f193c9a637 portal: Introduce implementation stub
From now on nautilus claims to implement the FileChooser portal.

For now it's a lie. But the next few commits will make it true.
2024-07-24 15:35:19 +02:00
António Fernandes 47687ba66b appdata: Use non-legacy file extension
https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#spec-component-location
2024-01-10 17:12:00 +00:00
António Fernandes 979891166a appdata: Use build date between releases
Although build date is wrong for releases, we still need a date between
releases to pass appstream validation.

Partly revert commit b7e44006b6

To make it easy for future releases, provide copy-pastable templates and
introduce release type attributes.

In the future we may want to use the new "snapshot" type and drop the
date, as per https://github.com/ximion/appstream/issues/570

Reference: https://www.freedesktop.org/software/appstream/docs/sect-Metadata-Releases.html
2024-01-10 17:12:00 +00:00
António Fernandes b7e44006b6 appdata: Don't generate release date based on current date
The release date should not change. The date of build is not the date
of release.
2024-01-08 01:58:32 +00:00
Sabri Ünal 0a1740a0c9 appdata: Improve appdata for AppStream 1.0
- Add the `<developer><name>` tag
- Mark the `<developer_name>` tag as deprecated
- Use appstreamcli to validate appdata
2023-12-23 18:30:54 +03:00
Peter Eisenmann 5a4fc5664e build: autappdata build version
As suggested by @naheemsays on Matrix and inspired by
775dbec2e6
2023-10-05 08:26:07 +02:00
Maximiliano Sandoval R 035a95ea19
meson: Update to 0.59 2022-02-28 22:20:17 +01:00
Albert Vaca Cintora 42b0362e98 build: Remove incorrect i18n.merge_file argument
The positional argument was being silently ignored until meson 0.60.0 where
it fails with "ERROR: Function does not take positional arguments".

See: https://github.com/mesonbuild/meson/issues/9441
2021-10-26 13:58:38 +00:00
Ondrej Holy 7b469dfa87 ci: Use lineup-parameters python script
The lineup-parameters.c is hard to use with meson. Let's use the python
rewrite from
https://gitlab.gnome.org/GNOME/epiphany/-/blob/master/data/lineup-parameters
instead.
2021-10-11 06:45:26 +00:00
Ondrej Holy b3d68fbbf8 ci: Specify test dependencies to fix pipeline
The `validate-desktop`, `validate-desktop-autorun-software` and
`validate-appdata` meson tests fail currently because of the updated meson.
This is because of the recent change, which requires explicit specification
of dependencies. Let's specify them to fix the pipeline.

https://gitlab.gnome.org/GNOME/gnome-build-meta/-/issues/372
2021-04-21 10:47:58 +02:00
Sam Thursfield f9c79fce6d Use Tracker Miners inside Flatpak when not available on the host
This means the Nautilus flatpak will be able to use Tracker on systems
which don't have Tracker 3 available on the host. It comes at a cost of
increased resource consumption inside the Flatpak due running an extra
indexer process there.
2020-09-02 18:50:17 +02:00
Sam Thursfield 7712c2c7e1 Port to Tracker 3
Mostly the port is straightforward, we connect to tracker-miner-fs
explicitly over D-Bus instead of the centralized tracker-store daemon
we connected to previously.

The search-engine-tracker test is now isolated from the user's real
Tracker index using the `tracker-sandbox` script provided by Tracker,
and it lets tracker-miner-fs index the test file rather than trying
to synthesize the expected database contents.

There are more changes in nautilus-tag-manager.c.  Until now, starred
file information was stored in the tracker-miner-fs database. This has
some downsides, firstly the data is deleted if someone runs `tracker
reset --hard`, secondly it isn't possible to do this from inside a
Flatpak sandbox with Tracker 3.0.  because the

This commit changes the NautilusTagManager to set up a private
database inside XDG_DATA_HOME/nautilus/tags. This stores the starred
file information. The database is managed with Tracker, which allows us
to continue using the rename-tracking that tracker-miner-fs provides.
The same limitations apply as before that only files in indexed
locations can be starred.
2020-09-02 17:28:38 +02:00
António Fernandes 9a9dba195d build: Use new nightly icon for the Devel profile
A variant of the app icon has been introduced in the previous commit.

Let's use it for the Devel profile.

Part ot https://gitlab.gnome.org/GNOME/Initiatives/issues/12
2019-10-13 16:13:26 +00:00
Ernestas Kulik 2cca1945e1 build: Don’t build lineup-parameters by default
It’s only needed on a case-by-case basis.
2019-04-14 14:39:17 +02:00
Bilal Elmoussaoui 62a28f0e4d Meson: validate appdata file without network access
Network access is restricted on Flatpak build env, the same with other distros running tests for packages during the build process without network access. Fixes the pipeline from failing.
2019-01-15 11:24:44 +00:00
Carlos Soriano 76b84467ad Revert "Revert "build: Don't loop over icons""
This reverts commit 37799d64ca
2018-09-14 05:12:34 +00:00
Carlos Soriano 564b9dcbd7 Revert "Revert "icon: update app icon""
This reverts commit efef783dbd
2018-09-14 05:12:12 +00:00
Carlos Soriano efef783dbd Revert "icon: update app icon"
This reverts commit be862db092
2018-09-14 05:10:13 +00:00
Carlos Soriano 37799d64ca Revert "build: Don't loop over icons"
This reverts commit a7a03f6398
2018-09-14 05:09:47 +00:00
Carlos Soriano a7a03f6398 build: Don't loop over icons
Since we have only one now.
2018-09-13 14:42:07 +02:00
Jakub Steiner be862db092 icon: update app icon
- GNOME 3.32 redesign of app icons.
  See https://gitlab.gnome.org/GNOME/Initiatives/issues/2
  for more info.

/label ~"9. Initiative: AppIconRedesign"
2018-09-13 14:42:07 +02:00
Ernestas Kulik feb69b4979 build: Use install_data() to rename icons
Since 0.46.0, Meson allows renaming files when installing them. This is
useful to replace any workarounds to achieve the same (namely, the
icons).
2018-04-28 20:22:11 +03:00
Carlos Soriano 1ed0610075 meson.build: Use proper FIXME notation 2018-04-27 14:30:57 +00:00
Ernestas Kulik 5633b13f92 build: Fix icon renaming
Currently, when looping over icon sizes, each icon is copied to
$MESON_BUILD_ROOT/@appid@.png, meaning that the file is overwritten on
every iteration. This commit fixes that by copying to a subdirectory
under the build root and installing from there.

Fixes https://gitlab.gnome.org/GNOME/nautilus/issues/364
2018-04-14 12:34:38 +03:00
Ernestas Kulik 17ebc7e403 data/meson.build: Compile gschemas during the build
In particular this can be useful when running tests from the build
directory in Builder.
2018-03-24 18:22:14 +02:00
Ernestas Kulik df583c2e4a general: Allow running in separate instance
When hacking on Nautilus, it is very inconvenient to have to close any
running instance before running the built version. This commit enables
running three different instances by changing the application ID.
Beside the default “profile” is one crafted for stable flatpak
releases and one for development. The stable flatpak profile adds an
identifying mark to the about dialog to aid collecting information in
bug reports. The development profile is that plus additional styling to
help visually identify the development instance. It also will be used
when generating Flatpak bundles with the help of CI.

Generally, the implementation is slightly hacky to allow all the
different workflows, spanning from regular installations to GNOME
Builder flatpak builds, as each comes with its own quirks.
2018-03-18 22:28:08 +02:00
Ernestas Kulik 30a76b3033 Rename search provider file
flatpak-builder only exports data files that are prefixed with the
application ID. Without this, the Flatpak version does not enable shell
search functionality.
2018-03-18 22:28:08 +02:00
Jeremy Bicha dbb8bd607d build: Install appstream metadata to non-deprecated location
This was already done in 5d75a4a5
but accidentally reverted in 983892a6
2018-01-30 12:33:46 -05:00
Ernestas Kulik 983892a656 build: general cleanups
This commit does the following:
  * Canonicalize the style:
    * Use two-space indentations.
    * Un-Autotools-ify option names.
    * Don’t align arguments, simply increase indentation.
    * Don’t add a space before opening parenthesis in calls.
  * Remove unused variables.
  * Remove unused dependencies.
  * Remove config.h.meson.
  * Optimize dependencies.
  * Use disabler functionality for libselinux dependency, to save lines.
2018-01-02 12:51:32 +02:00
Ernestas Kulik 74dd9c9f72 general: remove desktop support 2018-01-02 12:51:32 +02:00
Ernestas Kulik a762659d6c build: add tests for data files
This will help avoid potentially breaking pre-release changes in the
future.

https://bugzilla.gnome.org/show_bug.cgi?id=786104
2017-08-11 14:13:07 +03:00
Ernestas Kulik ed5652c89a general: add support for Meson
Since it’s 2017 already, Nautilus should use a build system that doesn’t
take longer to set up the build than it takes to actually build. An
observed build time using Ninja of roughly one-fifth of what it took
Autotools is more than reason enough to add support for Meson. Along
with that, this commit adds a convenience script to generate a tarball
for releases, since we use libgd as a submodule and Meson does not
handle source distributions.

https://bugzilla.gnome.org/show_bug.cgi?id=778167
2017-02-24 00:24:27 +02:00