Sending a folder won't work with nautilus-sendto and a snapped mail client

Bug #2072569 reported by Nathan Teodosio
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nautilus (Ubuntu)
Fix Released
Low
Nathan Teodosio
Noble
Fix Committed
Low
Nathan Teodosio

Bug Description

[Impact]

Alongside nautilus, nautilus-sendto is installed by default in Noble. It is used when sending files via Nautilus' 'Email' context menu option for a selection.

In contrast to a selection without folders, whereby Nautilus just passes their paths to the mailer for attaching, when the selection to be mailed contains a folder, Nautilus puts all the selected files in a zip under the /tmp directory and then passes that as an attachment.

Snaps, however, do no have access to /tmp, which causes no file to be attached[1].

The proposal therefore removes the 'Email' option when a folder is in the selection

[Test plan]

--> Main routine <--
1. Ensure that nautilus-sendto is installed.
2. Install a snapped email client, say, Thunderbird, and set it as the default mail client.
3. Open Nautilus.
4. Select at least one folder.
5. Right click on the selection.
* Expected: No 'Email' option must be available in the context menu.

Run the main routine above but alter 4 to have no folder in the selection, just regular files.
* Expected: 'Email' option must be available in the context menu.

Run the main routine above but alter 2 to use an unsnapped email client (e.g. claws-mail) as default.
* Expected: 'Email' option must be available in the context menu.

[Regression potential]

Regressions would manifest in Nautilus' email integration, of which only the context menu 'Email' described above is known to the author.

[1] https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1996927/comments/19

Changed in nautilus (Ubuntu Noble):
status: New → Triaged
importance: Undecided → Low
assignee: nobody → Nathan Teodosio (nteodosio)
Revision history for this message
Nathan Teodosio (nteodosio) wrote :
Changed in nautilus (Ubuntu):
status: Triaged → Fix Committed
Changed in nautilus (Ubuntu Noble):
status: Triaged → Fix Committed
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nautilus - 1:47~beta.1-1ubuntu1

---------------
nautilus (1:47~beta.1-1ubuntu1) oracular; urgency=medium

  [ Jeremy Bícha ]
  * Merge with Debian. Remaining changes:
    - debian/control:
      + Add Build-Depends: libunity-dev
      + Add Recommends: xdg-desktop-portal-gnome:
        Required for "Set as Background" feature
      + Suggest instead of Recommend gnome-sushi
    - debian/changelog, debian/rules: set epoch number (which was added by
      error)
    - debian/source_nautilus.py:
      + Apport hook to list versions of files in /usr/lib/nautilus and
        reassign the crashes when they are not due to nautilus code directly
    - debian/rules:
      + Build Unity support
    - Add appstream-compulsory.patch:
      - Mark Nautilus as required for GNOME (affects the GNOME Software app)
    - 04_suppress_umount_in_ltsp.patch:
      + Don't list unmount and eject actions on LTSP clients
    - nautilus-sendto.patch:
      + Restore nautilus-sendto integration for better Thunderbird integration
    - ubuntu_backspace_behaviour.patch:
      + restore backspace behaviour to go back
    - unity_launcher_support.patch:
      + unity launcher integration (list bookmarks in the context menu,
        display a bar on the icon during copies)
    - unity_icon_color.patch:
      + specify a background color for the unity launcher icon
  * Refresh patches

  [ Nathan Pratta Teodosio ]
  * d/p/u/nautilus-sendto.patch extended:
   If {nautilus_sendto installed && mailer is a snap && folder in selection},
   do not present 'Email' option, as Nautilus then compresses the selected
   files to a zip, which it creates in /tmp, to which a snap doesn't have
   access (LP: #2072569).

nautilus (47~beta.1-1) experimental; urgency=medium

  * New upstream release
    - Support being used as xdg-desktop-portal-gnome filechooser
      (LP: #1175608, LP: #2023044)
  * Bump minimum GTK4, libadwaita & libportal
  * Remove reproducibility patch: applied in new release
  * Add revert patches to avoid switch from tracker to localsearch for now

nautilus (46.2-3) unstable; urgency=medium

  * Bump minimum GTK4 to 4.13.6
  * Remove patches that reverted changes that required GTK4 4.13.6
  * Bump Standards-Version to 4.7.0

 -- Jeremy Bícha <email address hidden> Tue, 13 Aug 2024 10:30:32 -0400

Changed in nautilus (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.