deja-dup refers to "Files" instead of "Caja"

Bug #1657092 reported by Russ Phillips
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Déjà Dup
Fix Released
Low
Unassigned
deja-dup (Ubuntu)
Fix Released
Undecided
Unassigned
Xenial
Confirmed
Undecided
Unassigned
Yakkety
Confirmed
Undecided
Unassigned
Zesty
Fix Released
Undecided
Unassigned

Bug Description

The Backups application's Overview screen says "You can restore the entire backup with the Restore... button or use Files"

It should say "or use Caja", since the file manager in Mate has been renamed Caja.

Screenshot attached.

[Impact]
* Users of Mate which use Déjà Dup get confused by the wrong terminology regarding their file manager.
* The upstream fix detects Mate desktops using XDG_CURRENT_DESKTOP and fills a new variable with "Caja" or "Files". That variable is included in the string afterwards.

[Test Case]
* Open Déjà Dup inside Ubuntu Mate (launch "deja-dup-preferences" from a terminal)
* Install the necessary software by clicking the "Install..."-button.
* Create a backup:
    - Choose a location on the "Storage Location" tab (or use the default local folder)
    - On the "Overview" tab perform a backup using the button "Backup now"
* On the "Overview" tab: Look at the description above the restore button.
* It refers to Files instead of Caja

[Regression Potential]
* None that I am aware of. The worst case should be limited to a broken (or untranslated) string in Déjà Dup itself.

Tags: patch xenial
Revision history for this message
Russ Phillips (avantman42) wrote :
description: updated
no longer affects: ubuntu-mate
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in deja-dup (Ubuntu):
status: New → Confirmed
Revision history for this message
Naël (nathanael-naeri) wrote :

Does it work though? In Caja? Do you get the restore/revert options when you right-click?

Cause if I understand correctly those are allowed by libdeja-dup.so in /usr/lib/[x86_64-linux-gnu]/nautilus/extensions-3.0, so perhaps Caja looks into a different directory (.../caja/extensions-3.0?).

"Files" should be changed to "the file manager" rather than "Caja" since the name is still Files in Ubuntu (Unity and GNOME). Unless someone particularly motivated wants to fork Déjà-Dup to make a MATE version that specifically says "Caja".

Changed in deja-dup (Ubuntu):
status: Confirmed → New
Revision history for this message
Russ Phillips (avantman42) wrote :

Yes, it works in Caja. I originally filed this against Ubuntu Mate, thinking that it was something to be fixed in Mate, since Files isn't the file manager in Mate :/

Revision history for this message
Naël (nathanael-naeri) wrote :

It could be fixed in Ubuntu MATE if they had their own fork of Déjà-Dup, like they have their own fork of Files, Gedit, Eye of GNOME, Evince, GNOME Terminal, File Roller.

Another Nautilus fork, Nemo, retained the name Files for its icon in the menus. Didn't MATE did the same?

I can only suggest the following patch, as I'm not a Déjà-Dup developer. I can't tell if it's a good change : "a compatible file manager" is less computer-illiterate-friendly than "Files" or "Caja".

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Change "Files" to "a compatible file manager" to encompass Nautilus forks e.g. Caja" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Vej (vej) wrote :

Naëls patch is applicable for the upstream package, I will therefore send this to the upstream and ask for triaging.

Changed in deja-dup:
status: New → Triaged
importance: Undecided → Low
Vej (vej)
tags: added: vivid xenial yakkety zesty
Vej (vej)
Changed in deja-dup (Ubuntu):
status: New → Confirmed
Revision history for this message
Vej (vej) wrote :

@Nathanaël: Could you please upload your patch to a (upstream) branch and propose it for merging?

Revision history for this message
Naël (nathanael-naeri) wrote :

@Russ Phillips (or anyone using MATE):

Can you confirm that "Caja" is the user-facing name of the file manager in MATE desktop environment? And by that I mean, its name in the menus. Thanks.

Cause in Unity DE and Cinnamon DE, I'm quite certain that the user-facing name of Nautilus and Nemo, respectively, is "Files", even though many people refer to them by their internal names Nautilus and Nemo.

Revision history for this message
Naël (nathanael-naeri) wrote :

@Russ Phillips:

Don't bother, I checked by myself in the .desktop file.

Revision history for this message
Russ Phillips (avantman42) wrote :

Quick work :) I wouldn't have had the chance to check before tomorrow.

Revision history for this message
Naël (nathanael-naeri) wrote :

@Vej (and @Russ too):

I have uploaded my (trivial) patch to an upstream branch, but haven't proposed it for merging yet. To be honest, I'm not too wild about changing the name "Files" to accommodate Caja (sorry), because of the reasons I wrote down in the branch's description:

https://code.launchpad.net/~nathanael-naeri/deja-dup/fix-1657092

Vej, could you please consult with Michael, directly or on the mailing-list, to get his opinion on supporting another desktop environment and/or Nautilus fork (MATE/Caja), and potentially, supporting all DE that use Nautilus forks? Right now Déjà-Dup only officially integrates with GNOME/Nautilus and Unity/Nautilus as far as I know.

If he's OK with Russ's suggestion then I'll be happy to propose for merging of course.

Changed in deja-dup:
assignee: nobody → Nathanaël Naeri (Naël) (nathanael-naeri)
Changed in deja-dup (Ubuntu):
assignee: nobody → Nathanaël Naeri (Naël) (nathanael-naeri)
Changed in deja-dup:
status: Triaged → In Progress
Changed in deja-dup (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Vej (vej) wrote :

@Naël I see your point and will discuss this on the mailing list.

Revision history for this message
Michael Terry (mterry) wrote :

Reproducing what I wrote in the mailing list:

==
In reality, we only really support what we can easily handle.
Officially, we've always targeted both GNOME and whatever Ubuntu's UI
happens to be (used to be simply GNOME, but has diverged a bit).

I'd prefer to keep tight integration and avoid supporting every
environment under the sun (per our mission statement [1]). But where
it's easy to support another desktop environment, I don't mind.

If it's a simple "if getenv(AM_IN_MATE) == 1, then Caja else Files", I
think that's trivial enough to merge. But I'd prefer to avoid a
slippery slope of more and more integration points.

Seem reasonable?
==

I'm also interested in confirming whether the menus call Caja "Files" or "Caja" though. That might render this all moot.

Revision history for this message
Russ Phillips (avantman42) wrote :

I originally posted this bug in Mate, since I thought they maintained a forked version of Nautilus and Deja Dup, and this would be something they'd want to include in that.

I'll attach a screenshot to confirm that the file manager is listed as "Caja" in the application menu.

Revision history for this message
Russ Phillips (avantman42) wrote :
Revision history for this message
Naël (nathanael-naeri) wrote :

Russ, can you please post the values of the following environment variables in MATE, I'm going to try and implement something and I'm not sure which one to use (probably the last one). You can use printenv var or echo $var to find them out. Thanks.

SESSION
GDMSESSION
DESKTOP_SESSION
XDG_CURRENT_DESKTOP

Revision history for this message
Russ Phillips (avantman42) wrote :

Here you go:

russ@Chapterhouse:~$ echo $SESSION

russ@Chapterhouse:~$ echo $GDMSESSION
mate
russ@Chapterhouse:~$ echo $DESKTOP_SESSION
mate
russ@Chapterhouse:~$ echo $XDG_CURRENT_DESKTOP
MATE

Revision history for this message
Naël (nathanael-naeri) wrote :

I wish I was knowledgeable enough to fix less trivial bugs. In the meantime, here are two branches. Michael, which one would you like I request a merge of?

https://code.launchpad.net/~nathanael-naeri/deja-dup/fix-1657092-a

Changes the word "Files" to "the file manager". The more accurate "a compatible file manager" or "a supported file manager" can be considered too.

https://code.launchpad.net/~nathanael-naeri/deja-dup/fix-1657092-b

Uses "Files" or "Caja" depending on the environment variable XDG_CURRENT_DESKTOP ("Caja" if it's MATE, "Files" if it's something else or unset). To test in the test shell, make a first backup, and open deja-dup-preferences as follow:

  $ XDG_CURRENT_DESKTOP=Unity deja-dup-preferences
  $ XDG_CURRENT_DESKTOP=MATE deja-dup-preferences

PS [Michael]: I don't know if Launchpad notified you, but you'll want to read my follow-up comments on my last merge request : https://code.launchpad.net/~nathanael-naeri/deja-dup/fix-1549776/+merge/317042

Revision history for this message
Michael Terry (mterry) wrote :

Thank you Nathanaël!

I've committed your 'b' version (with a small change to translate the file manager names).

Changed in deja-dup:
assignee: Nathanaël Naeri (Naël) (nathanael-naeri) → nobody
status: In Progress → Fix Committed
Vej (vej)
description: updated
Changed in deja-dup (Ubuntu Zesty):
status: In Progress → Triaged
assignee: Nathanaël Naeri (Naël) (nathanael-naeri) → nobody
Revision history for this message
Naël (nathanael-naeri) wrote :

@Michael: Sweet, thanks for merging!

@Vej, C de-Avillez: It's nice to nominate this bug for Xenial and Yakkety, but I'm not sure it's really worth fixing in these series, or that it fits the SRU requirements (I would personally go with Won't Fix for the published releases).

Revision history for this message
Vej (vej) wrote :

This text is only visible after a first full backup. I will change the [Test Case] accordingly.

@Nathanaël: It can be debated, if this qualifies for an SRU. I would put it under "Bugs which do not fit under above categories, but (1) have an obviously safe patch and (2) affect an application rather than critical infrastructure packages (like X.org or the kernel)." Nevertheless, I will currently work on getting this to zesty.

description: updated
description: updated
Vej (vej)
Changed in deja-dup (Ubuntu Zesty):
status: Triaged → In Progress
assignee: nobody → Vej (vej)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in deja-dup (Ubuntu Xenial):
status: New → Confirmed
Changed in deja-dup (Ubuntu Yakkety):
status: New → Confirmed
Revision history for this message
Vej (vej) wrote :

I prepared a patch for zesty and seek sponsorship.
Please note that this is my first Ubuntu downstream patch (so please be detailed in your feedback if necessary).

Vej (vej)
Changed in deja-dup (Ubuntu Zesty):
assignee: Vej (vej) → nobody
Revision history for this message
Naël (nathanael-naeri) wrote :

I'm still not convinced that this is worth a SRU, or qualifies for one. The provision about "bugs which [...] (1) have an obviously safe patch and (2) affect an application" in the SRU guidelines applies only to bugs which have "high potential for improving the user experience", and I'm just not sure this particular bug has high potential for that (just potential).

Nevertheless, the debdiff looks good to me, if I understand it correctly. Shouldn't you subscribe ubuntu-sponsors? Or they won't notice it. (Again, IIUC.)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package deja-dup - 34.4-0ubuntu1

---------------
deja-dup (34.4-0ubuntu1) zesty; urgency=medium

  * New bug-fix upstream release:
    - In MATE, call the file manager Caja, not Files (LP: #1657092)
    - Fix documentation and strictness of using xdg location variables
      in gsettings include/exclude keys
    - Don't show control center panel in Unity8

 -- Michael Terry <email address hidden> Thu, 09 Mar 2017 14:30:50 -0500

Changed in deja-dup (Ubuntu Zesty):
status: In Progress → Fix Released
Revision history for this message
Vej (vej) wrote :

This had been released as a part of Déjà Dup 34.4.

Changed in deja-dup:
status: Fix Committed → Fix Released
Norbert (nrbrtx)
tags: removed: vivid yakkety zesty
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.