Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 469142 - www-client/opera should RDEPEND on x11-misc/xdg-utils
Summary: www-client/opera should RDEPEND on x11-misc/xdg-utils
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-09 07:37 UTC by Dave Kemper
Modified: 2013-07-05 12:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Kemper 2013-05-09 07:37:41 UTC
I hit a bug in opera causing it to crash.  This brought up an "Opera Needs to Restart" window, and one of the buttons on this window is "View Report".  However, pressing this button only generated the error message:

  [opera] 'xdg-open' No such file or directory

in the console from which opera was started.  Seeing this, I emerged the x11-misc/xdg-utils package, and then tried the "View Report" button again.  This time I got a different error:

  WARNING: You don't seem to have any mimeinfo.cache files.
  Try running the update-desktop-database command. If you
  don't have this command you should install the 
  desktop-file-utils package. This package is available from
  http://freedesktop.org/wiki/Software_2fdesktop_2dfile_2dutils
  No applications found for mimetype: inode/directory

I then ran, as suggested, the update-desktop-database command.  Now, the error generated on clicking "View Report" is whittled down to:

  No applications found for mimetype: inode/directory

The remainder of the previous lengthy error message was just a warning, so apparently the problem warned about is not the cause of "View Report"'s failure.

So two things need to happen for opera's crash report window to function properly:

 - x11-misc/xdg-utils must be on the system.  This is a simple prereq issue.

 - Something needs to be configured in xdg-utils to specify an application for mimetype inode/directory.  I do not know what this.

I saw this problem under www-client/opera-12.15_p1748 and x11-misc/xdg-utils-1.1.0_rc1_p20120319, but it seems likely that it's not limited to these versions of the packages.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-09 12:52:26 UTC
Please post your `emerge -vpq www-client/opera' output in a comment.
Comment 2 Dave Kemper 2013-05-09 16:50:01 UTC
# emerge --color n -vpq www-client/opera
[ebuild   R   ] www-client/opera-12.15_p1748  USE="gstreamer -gtk -kde (-multilib)" LINGUAS="-af -ar -az -be -bg -bn -cs -da -de -el -en_GB -es_ES -es_LA -et -fa -fi -fr -fr_CA -fy -gd -he -hi -hr -hu -id -it -ja -ka -kk -ko -lt -lv -me -mk -ms -nb -nl -nn -pa -pl -pt -pt_BR -ro -ru -sk -sr -sv -sw -ta -te -th -tl -tr -uk -ur -uz -vi -zh_CN -zh_TW -zu" 

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

#
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-09 17:15:11 UTC
(In reply to comment #0)
> I hit a bug in opera causing it to crash.  This brought up an "Opera Needs
> to Restart" window, and one of the buttons on this window is "View Report". 
> However, pressing this button only generated the error message:
> 
>   [opera] 'xdg-open' No such file or directory
> 
> in the console from which opera was started.  Seeing this, I emerged the
> x11-misc/xdg-utils package, and then tried the "View Report" button again. 
> This time I got a different error:
> 
>   WARNING: You don't seem to have any mimeinfo.cache files.
>   Try running the update-desktop-database command. If you

This is normally run through fdo-mime.eclass. I have added x11-misc/xdg-utils to RDEPEND, but I doubt if I should do the same in DEPEND, since not everyone might be using this. Let's ask!
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2013-05-09 17:38:39 UTC
(In reply to comment #3)
> (In reply to comment #0)
> > I hit a bug in opera causing it to crash.  This brought up an "Opera Needs
> > to Restart" window, and one of the buttons on this window is "View Report". 
> > However, pressing this button only generated the error message:
> > 
> >   [opera] 'xdg-open' No such file or directory
> > 
> > in the console from which opera was started.  Seeing this, I emerged the
> > x11-misc/xdg-utils package, and then tried the "View Report" button again. 
> > This time I got a different error:
> > 
> >   WARNING: You don't seem to have any mimeinfo.cache files.
> >   Try running the update-desktop-database command. If you
> 
> This is normally run through fdo-mime.eclass. I have added
> x11-misc/xdg-utils to RDEPEND, but I doubt if I should do the same in
> DEPEND, since not everyone might be using this. Let's ask!

/usr/share/applications/mimeinfo.cache gets created by fdo-mime_desktop_database_update function of fdo-mime.eclass in pkg_postrm and pkg_postinst
it doesn't have to be behind any `if` because the function is a no-op if the command is not found

and if opera uses xdg-* commands then it should rdepend on xdg-utils. opera wouldn't be the first browser in tree depending on it, chromium uses it too and chromium upstream has been involved in cleaning the package up
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2013-05-09 17:47:17 UTC
and fdo-mime_desktop_database_update is meant to be run when the package installs .desktop file with MimeType= lines

like every package from this list should dep on it:

grep ^MimeType /usr/share/applications/*.desktop

and something needs to pull in dev-util/desktop-file-utils, but if it's just a warning, i wouldn't add the dep
for Xfce xfce-base/thunar pulls it in, for GNOME 2.32 gnome-base/gnome-control-center puills it in, and looks like rest of desktops are missing this (which is a bug)
so i'd add the dep only if opera *crashes* because of the missing .cache file
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2013-07-05 12:53:24 UTC
I guess this is fixed, then.