Quickly fails if gedit is not installed

Bug #862302 reported by phobie on 2011-09-29
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
quickly (Ubuntu)
Undecided
Unassigned

Bug Description

$ quickly edit
crashes if gedit is not installed.

This problem can be replicated with 11.04-0ubuntu1.1 on natty and 11.10-0ubuntu1 on oneiric.
It is related to but not a direct duplicate of #483917 .

$ EDITOR=gnome-text-editor quickly edit
works fine if a editor providing /etc/alternatives/gnome-text-editor is installed.
(i.e. leafpad)

quickly edit should chose a alternate editor if gedit is not present.
I.e. by using /etc/alternatives/gnome-text-editor instead of gedit.
A simple but bad workaround would be to let the package depend on gedit directly instead of "gedit | editor".

Since none of the editors providing /etc/alternatives/gnome-text-editor lists a virtual package named "gnome-text-editor" under "Provides:" we can not depend on that.
This should be changed!

It might also be a good idea to introduce /etc/alternatives/x-text-editor with the virtual package named "x-text-editor".

Related branches

phobie (phobie) wrote :
phobie (phobie) wrote :
phobie (phobie) on 2011-09-29
description: updated
description: updated
phobie (phobie) on 2011-09-29
description: updated
phobie (phobie) on 2011-09-29
description: updated
description: updated
Tony Byrne (tony-badwolf) wrote :

Reading the source code shows that, on a box without X-windows, quickly has a similar hidden dependency on nano.

Peter Liedler (peter-liedler) wrote :

gedit is not installed by default on kubuntu so there the problem exists too. quickly edit works fine after installing gedit.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers