"Open with other application" affects the default handlers
- From: Christian Persch <chpe gnome org>
- To: gnome-vfs-list gnome org, nautilus-list gnome org
- Cc:
- Subject: "Open with other application" affects the default handlers
- Date: Fri, 04 Mar 2005 16:30:56 +0100
Hi,
in investigating an Epiphany bug
(http://bugzilla.gnome.org/show_bug.cgi?id=169039 "view source appears
broken") I've found some serious problems with "Open with other
application":
Right-click a file, select "Open with other application", expand "use a
custom command", enter "gedit --new-window", click Open. This opens the
selected file in gedit, but it also creates a "gedit.desktop" file in
~/.local/share/applications/ .
Now, if gedit was the default handler for some mime type (for example
text/plain), using gnomve_vfs_mime_get_default_application("text/plain")
then gnome_vfs_mime_application_launch will try to launch the handler
using the new .desktop file. This will fail, because its Exec line
doesn't include any argument placeholder (%U).
I think there are really 3 bugs here:
1) Nautilus creates a .desktop file with a name which will clash with a
system-installed .desktop file
2) The newly created .desktop file has an Exec line which makes it
unsuitable for launch with either gnome_vfs_mime_application_launch or
gnome_desktop_item_launch.
[http://bugzilla.gnome.org/show_bug.cgi?id=169202]
3) GNOME-VFS uses the wrong .desktop file
[http://bugzilla.gnome.org/show_bug.cgi?id=169198]
Together, these bugs make Epiphany's "View Source" command fail.
Regards,
Christian
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]