Commit graph

374 commits

Author SHA1 Message Date
Nishit Patel 639eb6dd61 nautilus-search-engine: search by creation time
this will let user search for the files using the
crtime (creation time) of the files

Closes #1761
2021-11-27 11:04:53 +00:00
Ondrej Holy ca5283a520 Release version 41.1 2021-10-30 09:08:22 +02: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 9991d5a8c0 Release version 41.0 2021-09-17 13:16:43 +02:00
António Fernandes fe5c1a6dee Release version 41.rc 2021-09-03 21:48:43 +01:00
António Fernandes bbaacb3064 Release version 41.beta 2021-08-14 13:34:25 +01:00
Ondrej Holy 156a68cf52 compress-dialog: Add support for encrypted .zip
Currently, it is not possible to create encrypted archives over
Nautilus. Let's add support for encrypted .zip files to not have
to install a dedicated archive manager.

Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/822
2021-08-10 11:20:25 +00:00
Ondrej Holy 0865620acf Revert "uncrustify: Ignore sp_arith to workaround bug"
This reverts commit 3ad2de33da.
2021-07-14 09:35:18 +02:00
António Fernandes 3ad2de33da uncrustify: Ignore sp_arith to workaround bug
A new bug in uncrustify 0.73 causes a pointer type to be interpreted
as an arithmetic operation, thus adding a space. [0]

This causes the CI pipeline to fail on style-check job.

To workaround this, ignore the "space around arithmetic operator" rule.

[0] https://github.com/uncrustify/uncrustify/issues/3233
2021-07-11 22:05:51 +00:00
Ondrej Holy 2ae4631c58 Release version 41.alpha 2021-07-09 17:09:31 +02:00
Jakub Steiner 7932d37290 icon: add 'source'
Initiative: https://gitlab.gnome.org/Teams/Design/initiatives/-/issues/84
2021-06-29 14:35:11 +02:00
anton-z-s 9b7df261b1 gschema.xml: Update icon-view's description
The description was made when there was an option to set per-folder view mode.
2021-05-27 19:30:24 +00:00
Ondrej Holy 4f9ddd632f Release version 40.1 2021-04-30 15:29:56 +02: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
António Fernandes 885de25eeb uncrustify: Enforce single space after control flow keywords
This is the style we use, but we were missing the uncrustify
configuration for it.
2021-04-19 11:20:13 +00:00
Simental Magana, Marcos c839b586de .desktop: claim handling of rar mime types
This addition follows the logic of adding back RAR
support in gnome-autoar[1]

Closes #1813

[1] - 9356fae1a7
2021-04-03 16:53:36 -06:00
Ondrej Holy 63fce9f8cf Release version 40.0
I made 40 release yesterday by mistake. Let's use 40.0 instead to
ensure the correct sort order.

Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/1807
2021-03-20 09:23:53 +01:00
Ondrej Holy fad09fd58d Release version 40 2021-03-19 14:47:28 +01:00
Ondrej Holy 9d75d50605 Release version 40.rc 2021-03-13 09:11:25 +01:00
Ondrej Holy f912e6dc82 Release version 40.beta 2021-02-13 16:46:48 +01:00
António Fernandes d5c57c0c55 gschema: Raise thumbnail size limit to 50MB
This was last updated 12 years ago.

Assuming 10MB is too low given today's hardware, make that 50MB.

Closes https://gitlab.gnome.org/GNOME/nautilus/-/issues/1309
2021-02-08 11:46:02 +00:00
António Fernandes 986cb10808 preferences: Drop executable-text-activation setting
Whe the ASK option gone, the only alternative to the default is RUN.

This option is not safe: it's too easy to accidentally run programs.

Now we have a "Run as a Program" action in the context menu, which is
available by default (no configuration required) and safe (clearly
labeled, intentionally chosen).

So, remove the RUN option is no longer necessary, and with it we can
remove the preference from both the UI and GSettings schemas.

Closes https://gitlab.gnome.org/GNOME/nautilus/-/issues/1700
Discussed in https://gitlab.gnome.org/GNOME/nautilus/-/issues/443
2021-02-06 18:20:10 +00:00
António Fernandes 64326f0331 mime-actions: Drop ACTIVATION_ACTION_ASK
There is an option in Preferences which enables a dialog asking users
what they intend to do when they double-click an executable text file:
open as a text file or run as a program?

The dialog asking that question has known design problems, but they
remain unaddressed, which is not surprising because it's non-default.

Now, with the new menu item added in the last commit, the two options
("Open" and "Run as a Program") are both available by default in the
context menu, so there is no need to ask the question in a dialog.

Remove the option, the dialog, and the related code.

Closes https://bugzilla.gnome.org/show_bug.cgi?id=598671
Part of https://gitlab.gnome.org/GNOME/nautilus/-/issues/1700
2021-02-06 18:20:10 +00:00
Sachin Daluja e96aac1f65 general: Remove option to bypass delete confirmation
A gsettings-based option "confirm-trash" existed to determine if a
confirmation dialog should be shown when emptying the trash. This
setting, enabled by default, was misappropriated for the unrelated
"delete directly" operation of files outside Trash. This latter use of
this setting was misleading and unexpected (more discussion on the
linked issue page.)

Remove option "confirm-trash" entirely because neither of the above
mentioned operations are reversible, so they should always require
confirmation.

Add ellipsis to labels for the "empty trash" and "delete permanently"
actions since they now always invoke a confirmation dialog.

Closes https://gitlab.gnome.org/GNOME/nautilus/-/issues/1699
2021-02-06 10:43:51 -05:00
Ondrej Holy a09befcd04 Release version 40.alpha 2021-01-08 16:45:11 +01:00
António Fernandes 6b92435c7c column-utilities: Add Created date column
Now that we have backend support for showing and sorting by btime, add
an optional "Created" column to the list view.

This enables using the attribute as caption for icon view too.
2021-01-05 14:03:49 +00:00
António Fernandes 22d2c30d5f general: Support sorting by creation date
No user visible changes yet.
2021-01-05 14:03:49 +00:00
Ondrej Holy 8ed4a28f28 Release version 3.38.1 2020-10-02 14:18:30 +02:00
Ondrej Holy 5f1b9200cf Release version 3.38.0 2020-09-11 15:40:10 +02:00
Ondrej Holy b6f39cf87d Release version 3.37.92 2020-09-04 15:13:41 +02:00
Sam Thursfield 29105fc9f6 tag-manager: Track files rather than contents
Nautilus is a file manager, so we should star files.

Previously we starred the content resources extracted by Tracker Miner
FS, instead. This had the advantage that the stars would follow file
renames. It had the downside of being more complex and limited in
which files can be starred. In Tracker 2.x, the feature only worked
in folders indexed by Tracker Miner FS. With Tracker 3.x, it was
additionally limited to files where Tracker had extracted metadata
-- mainly just documents and media files.

This commit takes the simpler approach of storing the star against
the file URL. All files can now be starred, and stars will no longer
persist when a file is moved or renamed.

Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/160
2020-09-02 18:50:17 +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
Ondrej Holy f3977e8aa0 Release version 3.37.91 2020-08-21 08:18:38 +02:00
Ondrej Holy b46854c981 appdata: Fix typo in property name of release tag
Currently, "data" property is used for release tag, but it should be
"date" instead.
2020-08-21 08:00:09 +02:00
Ondrej Holy 975b666363 Release version 3.37.90 2020-08-07 13:35:33 +02:00
Ondrej Holy f485401c39 Release version 3.37.3 2020-07-03 14:30:01 +02:00
Ondrej Holy e45d7b3d5e appdata: Update outdated release list
The list of releases is outdated, which is probably why GNOME Software and
"flatpak info" shows version 3.32.1 for our nightly bundles, although the
About dialog shows something completely different. Let's replace the list of
outdated releases with just the current one. Also add comment in meson.build
to not forget about it next time.
2020-06-13 16:55:20 +00:00
Ondrej Holy 82dcbfe316 appdata: Use mailing list address as update contact
The update contact points to our previous maintainer. Let's use the
mailing list address instead to be always valid...
2020-06-13 16:55:20 +00:00
António Fernandes e003246153 .desktop: Include traditional name as search keyword
Based on patches from Felipe Borges for other apps. Quoting him:

The GNOME Shell search results are forwarded from the results of
GLib's g_desktop_app_info_search() function, which matches the
Name, Exec, Keywords, GenericName, X_GNOME_FullName, and Comment
keys from desktop files[0].

Since Totem is now named "Videos", a query for "totem" would
match the "Exec" key and present the application in the search
results as expected. Unfortunately that doesn't happen for Flaptaked
Totem, which would get its desktop file "Exec" key overwritten to
something such as Exec=/usr/bin/flatpak run --branch=stable
--arch=x86_64 --command=totem org.gnome.Totem --new-document

This way, searching for "totem" when only the Flatpaked version
of it is installed returns no results. Searching for "Videos"
presents the application as expected.

Its been proposed in GLib to parse the "Exec" key for searches
but that was rejected[1] because it would imply establishing an
API which assumes that the command line behavior of Flatpak would
be stable/never-change.

A fix was proposed in Flatpak directly[2] but it was rejected,
leaving us with the only option of adding the historical/legacy
application names to the "Keywords" key in their desktop files.

Many users, such as myself, have the "muscle memory" of search
for the old application's name, such as "totem", "gedit", "evince".
Although I agree that the new names should be presented to new
users and that the old ones shouldn't be visible in UI, it makes
sense and little effort to support the search for the old names IMO.

[0] https://gitlab.gnome.org/GNOME/glib/blob/master/gio/gdesktopappinfo.c#L378
[1] glib#1706
[2] https://github.com/flatpak/flatpak/issues/2749
2020-04-10 16:57:29 +00:00
Alberts Muktupāvels 1b063137ce dbus-manager: clarify CreateFolder method
https://gitlab.gnome.org/GNOME/nautilus/-/merge_requests/504
2020-04-06 21:19:15 +03:00
Alberts Muktupāvels 7425abd7c0 dbus-manager: add ask_confirmation parameter to EmptyTrash
https://gitlab.gnome.org/GNOME/nautilus/-/merge_requests/504
2020-04-06 21:19:15 +03:00
Alberts Muktupāvels 7adf189c8d dbus-manager: deprecate old interface
https://gitlab.gnome.org/GNOME/nautilus/-/merge_requests/504
2020-04-06 21:19:15 +03:00
Alberts Muktupāvels 1a26621dbd dbus-manager: add DeleteURIs method
Add DeleteURIs method to make it possible to permanently delete
files avoiding trash.

https://gitlab.gnome.org/GNOME/nautilus/merge_requests/504
2020-04-06 21:19:15 +03:00
Alberts Muktupāvels dce530aa87 dbus-manager: add and implement FileOperations2 interface
Add new version of FileOperations interface. This versions adds
PlatformData argument to all methods. Currently supported arguments
are parent-handle and timestamp.

This change is necessary for proper focus handling.

https://gitlab.gnome.org/GNOME/nautilus/merge_requests/504
2020-04-06 21:19:15 +03:00
Ondrej Holy bec3229e99 uncrustify: Group single line comments to block
C++ comments ("//") are converted to C comments ("/* */"), but they
are not grouped together. So, each line is enclosed by "/* */". Let's
add cmt_cpp_group and cmt_c_group options to ensure that the single
line comments are grouped together.
2020-04-05 16:22:26 +00:00
Ondrej Holy 787842f948 uncrustify: Fix indentation of ternary operators statements
Let's add "indent_ternary_operator = 1" to our uncrustify.cfg in order
to prevent the following unwanted change:

     list = back ? nautilus_window_slot_get_back_history (self->window_slot) :
-                  nautilus_window_slot_get_forward_history (self->window_slot);
+           nautilus_window_slot_get_forward_history (self->window_slot);
2020-04-05 16:22:26 +00:00
Ondrej Holy e66f540052 run-uncrustify.sh: Skip some imported source codes
Skip gtk, animation and audio-video-properties subdirectories as those
codes are copy&pasted from other project.
2020-04-05 16:22:26 +00: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