gnome-open can not open log files

Bug #343111 reported by guoyi
4
Affects Status Importance Assigned to Milestone
Ubuntu
Confirmed
Undecided
Unassigned

Bug Description

I tried to use gnome-open in a terminal to open an log file and I got an error:
desktop:~/test$ gnome-open 1.log
Error showing url: There is no default action associated with this location.

I noticed that the file ~/.local/share/applications/mimeapps.list contained an entry for the log filetype: text/x-log=gedit.desktop. But it had no effect to gnome-open. When I double click on a log file, it will be opened by gedit.

My system is Ubuntu 8.04, Gnome 2.22.3.
uname -a
Linux guoyibj-desktop 2.6.24-23-generic

Revision history for this message
guoyi (whuguoyi) wrote :

Is there any workaround to open a log file in an application?

Revision history for this message
j.scott.gwin@gmail.com (j.scott.gwin) wrote :

Thank you for reporting this problem and trying to help make Ubuntu better. I'm not sure exactly what you meant by your last question. Can you open the file in gedit? What application is your prefered application for opening the log file?

Revision history for this message
guoyi (whuguoyi) wrote :

I can open the log file by gedit.

I want to use "gnome-open" to open all types of files in an application written by ourselves. We thought gnome-open can open all types of files by default. But it seems that log files can not be opened by gnome-open on Ubuntu. And also cs files can not be opened by gnome-open either, there is a related Bug: https://bugs.launchpad.net/ubuntu/+source/gnome-utils/+bug/225827.
My last question is that is there any ways to open all types of files in my application?

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.