summaryrefslogtreecommitdiff
path: root/src/nautilus-application.c
AgeCommit message (Collapse)Author
2026-08-30progress-persistence-handler: Use last-window-closed signalPeter Eisenmann
2026-08-30previewer: Use last-window-closed signalPeter Eisenmann
2026-08-30application: Add last-window-closed signalPeter Eisenmann
2026-08-05application: Track last active window and use it for new locationsCorey Berla
This allows Nautilus to open new locations in existing windows as tabs instead of creating a new window every time, especially when triggered via DBus interfaces. Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/work_items/1687
2026-07-26general: Use Explicit default flagsKhalid Abu Shawarib
2026-06-05application: Fix libgxdp disabling libadwaita portal useKhalid Abu Shawarib
2026-06-05portal-request: Integrate into nautilus code basePeter Eisenmann
2026-06-05general: Use libgxdpKhalid Abu Shawarib
2026-06-03application: Check for the the user's config directory asynchronouslyKhalid Abu Shawarib
So that it doesn't perform blocking IO twice in the main thread at application startup. Helps: #4017
2026-06-01application: Use activation token even on existing windowsKhalid Abu Shawarib
This allows applications that already have used the "Open Containing Location" action to focus Files' window again without focus stealing prevension stopping it when used twice. Also remove what is now an unused function parameter Fixes: #4236
2026-04-11window: Set minimum size in BlueprintPeter Eisenmann
2026-03-10eel: Remove EelKhalid Abu Shawarib
Eel is a library that was used in Files for a long time. It used to be a seperate library, but then the source got checked into Files's repository. It used to provide the main code for the view and its elements before the GTK4 transition, and other utilities that were replaced by GLib. Its usage slowly erorded as more code was moved out or replaced, until there was little left. Now we move the last bit left relating to timed wait dialogs into ui utilities. With that, Eel directory is eliminated. Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/331
2026-02-28application: Fix clang warningPeter Eisenmann
2026-02-22application: Register XDG portals interface in testsKhalid Abu Shawarib
2026-02-22application: Don't open a home window when in testsKhalid Abu Shawarib
2025-12-31application: Open help via GtkUriLauncherPeter Eisenmann
2025-12-26application: Simplify home directory checkPeter Eisenmann
Since [1] this function only checks the existence of one directory. Simplify the logic and adjust the message accordingly. [1] b80390d0c486a2c19ba7a8005e038c809a45763d
2025-12-26ui-util: Simplify show_dialog signaturePeter Eisenmann
The GtkMessageType parameter is unused since [1] ported show_dialog() to AdwMessageDialog. The return type is unused since the previous commit. [1] https://gitlab.gnome.org/GNOME/nautilus/-/commit/0f85a7d8f77afe85e1e6ccaae8c786001b1c29a4
2025-12-26ui-util: Show dialog on active window as fallbackPeter Eisenmann
Replaces previously broken method to add dialog to window.
2025-12-06application: Run type check in public functionsPeter Eisenmann
2025-12-05application: Update DBus locations on window closePeter Eisenmann
The signal handler does not handle this.
2025-12-05application: Rework dbus locations update mechanismPeter Eisenmann
Combine the slot's single-purpose added and removed signals into a combined changed signal. Add a timeout to updating the locations listed via DBus, to avoid unnecessary updates. This removes the last usages of WindowSlot from application, so the include is dropped.
2025-12-05application: Query list of window locationsPeter Eisenmann
2025-12-05application: Simplify dbus_opened_locations() variablesPeter Eisenmann
Inline, use autocleanups and use static GVariant types.
2025-12-05application: Use HashTable for opened locationsPeter Eisenmann
2025-12-05application: Add reuse open flagPeter Eisenmann
Instead of querying a window and/or window slot, pass the new flag REUSE_EXISTING to let the method open_location methods figure out the correct window/window slot to open a location in. This reduces the amount of parameters and removes some usages of NautilusWindowSlot outside of NautilusWindow.
2025-12-05application: Use open_location_full to open new windowsPeter Eisenmann
2025-12-05application: Assure non-NULL locations in open callPeter Eisenmann
2025-12-05application: Simplify opening with target slot/windowPeter Eisenmann
2025-12-05application: Simplify open flag checkPeter Eisenmann
2025-12-05application: Query location from windowPeter Eisenmann
This removes last external usage of the active slot, so internalize the getter function.
2025-12-05application: Simplify debug on location openPeter Eisenmann
2025-11-21test: Remove usage of RUNNING_TESTS env variableKhalid Abu Shawarib
Just use existing Glib g_test_initialized() function.
2025-08-30application: Use portal function to check sandboxingKhalid Abu Shawarib
This check existed since f5206a6daf0991d91e885a28bb66795a8ae12a41, which predate this API by several years. This check is also more generic.
2025-08-29general: Use NautilusFileList for selectionPeter Eisenmann
2025-08-08application: Simplify cmd param handlingPeter Eisenmann
2025-08-07application: Drop query usagePeter Eisenmann
Application wide search never gets initialized from a specific location.
2025-07-24application: Handle startup_id on window creationPeter Eisenmann
2025-07-24application: Make type finalPeter Eisenmann
The class is not inherited from, so this only adds complexity to the functions and unnecessary indirections.
2025-07-24application: Fix new window variable orderPeter Eisenmann
This fixes a regression from https://gitlab.gnome.org/GNOME/nautilus/-/commit/2e9d5fe6e083e28007c8da5df142c0e93ea2e5b8#20a7dcb46ec25462c41c8417e1c413d681a17313_671_670 Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/3918
2025-07-18files-view: Drop NautilusView interfacePeter Eisenmann
NautilusFilesView was the only implementation of NautilusView, so the interface only added indirections and code complexity. Some users of the interface already relied on the implementation being a FilesView.
2025-06-24application: Use startup_id when presenting windowsSebastian Keller
The startup ID that was passed in via the FileManager1 DBus interface was dropped when nautilus_application_open_location() was calling nautilus_application_open_location_full(). This meant that if a window was being presented, it was not using the correct token/startup id, which would cause the focus stealing prevention in some window managers, such as mutter, to refuse focusing the window. Closes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/3385
2025-06-16files-view: Fix spelling errorsKhalid Abu Shawarib
2025-06-16application: early reject opening an empty locationNelson Benítez León
in nautilus_application_open_location() as otherwise it can lead to a coredump abort later on when code asserts on non empty filename. This can be triggered when calling Nautilus from D-Bus org.freedesktop.FileManager1 interface methods passing an empty string as uri. Fixes #3862
2025-06-14Rename tracker-related classes to localsearchPeter Eisenmann
2025-06-01application: Register to xdg-desktop-portalIgnacy Kuchciński
Currently, trying to use xdg-desktop-portal results in problems with missing app id, i.e. when trying to inhibit logout during file copying. GTK started prefering xdg-desktop-portal even in host apps, which obtains app ids from the systemd unit name. However it only works for the ones adhering to xdg standard scheme, which currently is not the case for dbus activated apps. During GtkApplication startup there is a call to the register API, but it needs to be the first call to the portal for it to work. Unfortunately, we indirectly interact with the portal before that, when initializing GDK display before the chain-up, which is necessary for proper functioning of the file chooser mode. Fix that by registering with the xdg-desktop-portal before initizalizing the GDK display. Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/3874
2025-01-27application: Move mount from search thread to appilcation levelKhalid Abu Shawarib
Turns out there more places that will make use of it. Related: https://gitlab.gnome.org/GNOME/glib/-/commit/05afb30510fb98d8a564759556d11f7a1037df5a https://gitlab.gnome.org/GNOME/nautilus/-/issues/3062
2025-01-19nautilus-application: Port AdwMessageDialog to AdwAlertDialogAutomeris naranja
Also, move the error message to the alert dialog body instead of presenting it in the alert dialog heading.
2025-01-19nautilus-application: Port AdwMessageDialog to AdwAlertDialogAutomeris naranja
2024-11-22general: Limit use of g_list_lengthCorey Berla
In many cases we only care if a list is NULL or a single item but we use g_list_length which iterates over the whole list.