xdg-open error when opening a mounted folder in root

Bug #821284 reported by YannUbuntu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xdg-utils (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi,
on Ubuntu 11.04, when using "sudo xdg-open /myfolder" (or gksu instead of sudo) to open a folder:
- it opens the folder correctly with Nautilus except in the case below:
- when the folder is a mounted partition ( /dev/sdXY ) or a mount point ( /media/mymountpoint ), it opens an audio player (!?!) and I get the error below :

Warning: unknown mime-type for "/media/Perso" -- using "application/octet-stream"
Error: no "view" mailcap rules found for type "application/octet-stream"
Opening "/media/Perso" with Decibel Audio Player (inode/mount-point)

PS: I read in the man that "It is not recommended to use xdg-open as root.", so maybe this bug is already known. And FYI I need to use xdg-open as root because I develop a GNU-GPL software (Boot-Repair) which is started via gksu, and I need to use xdg-open inside this app :)

Best regards

Tags: xdg-open
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.