Commit graph

20840 commits

Author SHA1 Message Date
Carlos Soriano b4282720a9 Flatpak: Update to fdo 1.8 runtime 2018-05-17 13:01:56 +02:00
Marcos Lans c9dc1d2eb7 Update Galician translation 2018-05-15 21:56:30 +00:00
Matej Urbančič c61e902213 Updated Slovenian translation 2018-05-15 22:37:43 +02:00
Matej Urbančič 373108e21e Merge branch 'master' of gitlab.gnome.org:GNOME/nautilus 2018-05-15 21:04:38 +02:00
Carlos Soriano e33e181082 Bug.md: Don't use tasks
So it doesn't appear in the list of task to be done for the issue.
2018-05-14 17:28:55 +00:00
Daniel Șerbănescu 747aae2d3d Update Romanian translation 2018-05-14 16:17:34 +00:00
Wong Heung Sang 49718175b7 nautilus-file.c: Fix open writable file in recent tab
File opened in recent tab now is read-only
when it is writable.

Replace nautilus_file_info_get_uri ()
with nautilus_file_info_get_activation_uri ()
fix the problem.

https://gitlab.gnome.org/GNOME/nautilus/issues/378
2018-05-14 10:16:05 +00:00
António Fernandes 694e4396c7 file: Remove link info attribute
Leftovers from NautilusLink removal.
2018-05-14 00:17:08 +01:00
António Fernandes 857f65bdb3 file: Drop nautilus_file_contains_text
Originally introduced in commit e7aa2e757c,
this function used to be a lot more complex, but now it is just a
shorthand for nautilus_file_is_mime_type (file, "text/plain").

Its only use was when launching script files on activation.
2018-05-13 23:34:09 +01:00
Ernestas Kulik f183d59337 general: Remove remaining desktop-file-related code 2018-05-12 22:02:04 +03:00
Ernestas Kulik 14b734b34a directory-async: Use Nautilus debug logger
This will help avoid some of the spam.
2018-05-12 18:29:48 +03:00
Ernestas Kulik c570971a88 file-operations: Remove unused operation
Since launching desktop files is no longer possible, the operation to
mark them as trusted goes unused.
2018-05-12 16:39:56 +03:00
Ernestas Kulik 7d44f84176 general: Remove preferences for script execution
Since the settings schemas no longer contain the required settings,
opening the preferences window causes an error and a call to abort().
This can be reverted if the ability to launch scripts is reintroduced.
2018-05-12 16:34:03 +03:00
Kukuh Syafaat 118c2e18b2 Update Indonesian translation 2018-05-12 05:36:16 +00:00
Ernestas Kulik a5520fd893 directory: Add method to query maximum filename length
This is to be used by a potential fix for
https://gitlab.gnome.org/GNOME/nautilus/issues/148.
2018-05-11 11:14:18 +03:00
Jordan Petridis 3a35b6035a
gitlabci: Extend the expiration period of the flatpak bundle
It's often the case that an MR will be opened and call for testing or an artifact will be linked in an issue.
But by the time people review the changes or try to test it them, the provided bundle will be already gone.

In the early days of the gitlab migration the expiration was commonly set to a small interval to ease the transition and not eat up the resources of runners. This should no longer be required going forward and the expiration date can be more flexible.
2018-05-10 12:39:11 +03:00
Matej Urbančič 489643ef33 Updated Slovenian translation 2018-05-09 18:00:07 +02:00
Piotr Drąg 29f7948f8f Update POTFILES.in 2018-05-09 17:44:29 +02:00
Carlos Soriano 6b0217a994 Fix typo... 2018-05-09 17:02:26 +02:00
Carlos Soriano c79aff62ab properties-window: Remove computer:/// handling
We don't use it anywhere else and gvfs is considering dropping it.

So let's remove it to allow gvfs go forward with its removal.

See: https://gitlab.gnome.org/GNOME/nautilus/issues/376
2018-05-09 16:51:18 +02:00
Carlos Soriano 95bb18fd31 properties-window: Remove desktop file handling
Since we removed desktop support for launching and special handling in
the views, it makes sense to remove the handling in the properties
window too.

Nautilus was doing a bad job as a desktop file editor, and didn't keep
up with more relevant fields for long.
2018-05-09 14:24:20 +00:00
Carlos Soriano 55b122f89f file: Remove get_target_uri
It's now effectively the same as get_uri since NautilusLink is gone.

We need to think whether those need to be get_activation_uri though.
2018-05-09 14:24:19 +00:00
Carlos Soriano b1cb977812 general: Remove NautilusLink
It was used for desktop files, netscape url links and other links.

However this is not really useful anymore with the desktop gone, so it
makes sense to remove it from Nautilus and have a big clean up.

This also was one of the blockers for the backend rework.
2018-05-09 14:24:19 +00:00
Carlos Soriano 0e0f5b9a33 files-view: Remove support for creating website links
This might made sense with the desktop...althought not sure how used
was it.

For Nautilus as an app this probably doesn't make much sense, and
probably it was not very used...

Remove it so we are a step closer to remove nautilus-link handling.
2018-05-09 14:24:18 +00:00
Carlos Soriano 16c7864e5f file: Remove special treatment for desktop files
We were modifying the content of the desktop file when the file was
renamed.

However we want to provide a more realistic visualization of what the
file really is since we no longer use desktop files for launching apps
on the desktop.

Remove the special handling of desktop files.
2018-05-09 14:24:17 +00:00
Carlos Soriano 3a22ed5b8e general: Don't allow launching binaries or programs in general
For long we used to support that since the desktop was part of Nautilus.
Also, back then we didn't have a Software app where you are expected to
installs apps. Back then it was common for apps to be delivered in
a tarball, nowadays that's out of question.

Now that the desktop is long gone, launching binaries and desktop files
from within Nautilus is not as useful. Not only that, but we are moving
towards a more sandboxed system, and we should use the standard and
system wide support for launching apps based on users choices.

We also are not able to be secure enough to handle this, as we saw in
the past we allowed untrusted binaries to be launched, and therefore
we had a CVE (CVE-2017-14604) for Nautilus. We are not being audited
(afaik) and we are not in a position that we can let this issues slip.

With that altogether, this prevents launching binaries or programs from
Nautilus.

Closes: https://gitlab.gnome.org/GNOME/nautilus/issues/184
2018-05-09 14:24:17 +00:00
Carlos Soriano 8348335820 files-view: Remove obsolete constants 2018-05-09 14:24:17 +00:00
Jordan Petridis c2efeabf18 gitlabci: Add stop_review job.
Split the enviroment deployment from the flatpak job.
review job depends on the flatpak job, and re-exports its
artifacts for now. Then it creates a review app, that shows
a link to the flatpak bundle.

This commit also restricts enviroment deployments for the master
branch of GNOME/nautilus.
2018-05-09 11:10:17 +00:00
Marek Černocký 2b9b773494 Updated Czech translation 2018-05-08 22:41:21 +02:00
Daniel Mustieles 52dcfe6898 Updated Spanish translation 2018-05-08 13:25:44 +02:00
António Fernandes 8517d545e0 window: Use our own accelerators API for consistency
It's just a wrapper for gtk_application_set_accels_for_action with
the required type cast. Just a cosmetic change, no behavior change.
2018-05-07 10:57:31 +00:00
António Fernandes ab16292e69 window: Allow dead_tilde key to trigger location entry
The standalone "~" key ("asciitilde") works as a convenient shortcut
to type home-relative paths into the location entry.

However, some keyboard layouts don't have an standalone "~" key but
rather a "dead tilde" key. This makes the existing shortcut unavaliable
for some keyboard layouts.

This is surprising for most people, because they have a tilde key and
the Keyboard Shortcuts window advertises a shortcut for the tilde key.

So, add the dead tilde key as an alternative shortcut.

Note: Searching for tilded characters or the tilde character itself
is still possible by revealing the search entry is explicitly.

Fixes https://gitlab.gnome.org/GNOME/nautilus/issues/372
2018-05-07 10:57:30 +00:00
Carlos Soriano 1b60679a86 CI: Use a variable for the dbus id 2018-05-07 07:58:06 +00:00
António Fernandes 47845327f9 operations-ui-manager: Always get dir item count
When comparing conflicting folders, we provide the item count for each.
However, sometimes we do not have the directory item count.

Make sure to request the item count before setting the size label.

Fixes https://gitlab.gnome.org/GNOME/nautilus/issues/269
2018-05-07 07:32:35 +00:00
António Fernandes 328cec78c1 operations-ui-manager: Use better default labels
We are showing "(null)" in the conflict dialog.
Example: https://gitlab.gnome.org/GNOME/nautilus/issues/269

Exposes the programming concept of NULL is wrong in itself, and in this
context it may lead a person to think it means the folder is empty.

Instead, get the strings with good default fallbacks.
2018-05-07 07:32:35 +00:00
Fabio Tomat c3346dec62 Update Friulian translation 2018-05-06 15:11:46 +00:00
Piotr Drąg 6e86ccfd0d toolbar: Don’t mark placeholder strings for translation 2018-05-04 20:32:16 +02:00
Piotr Drąg e337fe862f Update POTFILES.in 2018-05-04 20:25:37 +02:00
Carlos Soriano dcfa5f1866 CI: Add GitLab Review Apps
So a link is shown with the generated Flatpak on the MR.
2018-05-04 08:45:58 +00:00
Carlos Soriano 1018ea7bf6 CI: Indent correctly 2018-05-04 08:45:58 +00:00
Carlos Soriano 9d36f855fd pathbar: Remove unnecessary button type 2018-05-03 23:45:56 +02:00
Carlos Soriano 08b15aa418 pathbar: Add icon for other locations too
So we have the same as Starred, Recent, etc.
2018-05-03 23:45:28 +02:00
Carlos Soriano ee7bd9bd15 pathbar: Build menu using Glade
So we allow easy tweaking.
2018-05-03 23:34:26 +02:00
Carlos Soriano fbe7cac0a0 pathbar: Remove right click menu
Since the last design, the right click menu clashes with the left
click menu that is designed.

Since the pathbar is less used for interaction except for the last
button, we can simplify the UX and only use the left click.

The hierarchy of the pathbar can still be clicked with the middle
button to open in a new tab, as it's done in web browsers.
2018-05-03 23:11:47 +02:00
Carlos Soriano 4dfec0dd81 toolbar: Use slide right for the operations button
It looks much nicer, noticeable and doesn't occupy space when the
child is not visible.
2018-05-03 22:49:16 +02:00
Carlos Soriano f278574df4 general: Add actions to the toolbar
Generally actions in Nautilus were accessed through context menus or
keyboard shorcuts. However, those are not very discoverable and are
not touch friendly.

Even more, in list view it was not possible to access background actions
since there is always a selection, making Nautilus UX quite poor in that
case.

Also some actions were placed in the app menu, which didn't was not as
clear for some people given that we have most of actions in the toolbar.

In all, we came with a new design that solves the main goals of
discoverability, touch friendly and accessibility for background actions
and app actions, and now are placed in the toolbar together with an
overhaul of the looks of Nautilus path bar and search.

There is still work to do, specifically finding a design that works for
the selection actions and also to replace the current information
floating bar. The later might be just a different goal. However this
goes in the right direction.

See https://gitlab.gnome.org/GNOME/nautilus/issues/322
2018-05-03 22:43:39 +02:00
Carlos Soriano 7346702032 query: Add safeguard for public API 2018-05-03 22:34:31 +02:00
Carlos Soriano 7831866d39 window-slot: Keep query editor ownership on the window-slot
So it stays alive between uses.
2018-05-03 22:34:23 +02:00
Carlos Soriano deccd0151a window-slot: Use properties for signaling active changes
We were using properties and signals, but properties have already
built-in signals with notify:: for properties changes.

Use that so we have a simple and single way to notify about changes.
2018-05-03 22:34:16 +02:00
Carlos Soriano 1c03da2b89 views: Proxy the view main values and states
So they can be accessed easily from outside the view or window-slot.

This is useful for preventing layer violation, as we had in the past.
2018-05-03 22:33:44 +02:00