Selecting file and tapping 'Open' does not open the file

Bug #1239460 reported by Marco
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu File Manager App
Triaged
Medium
Unassigned

Bug Description

Steps to reproduce:
# Open File Manager
# Select any file
# Click on 'Open'

Expected result:
File opens or some sort of error message

Actual result:
Dialog closes

David Planella (dpm)
Changed in ubuntu-filemanager-app:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Carlos Jose Mazieri (carlos-mazieri) wrote :

Which is the device? Does it work on Desktop?

It uses QDesktopServices::openUrl(), the implementation can be found around http://bazaar.launchpad.net/~ubuntu-filemanager-dev/ubuntu-filemanager-app/plugin/view/head:/folderlistmodel/dirmodel.cpp#L995.

Michael, openPath() returns false in case it cannot open a file, I found a call http://bazaar.launchpad.net/~ubuntu-filemanager-dev/ubuntu-filemanager-app/trunk/view/head:/FileActionDialog.qml#L38 which does not check its return.

Revision history for this message
Marco (jermy-07) wrote :

It is broken for mako (at least). I do not have other devices or platforms to test, sry.

Revision history for this message
Carlos Jose Mazieri (carlos-mazieri) wrote :
Revision history for this message
Marco (jermy-07) wrote :

Trying to start $ ubuntu-filemanager-app in the terminal-app gives me a Segmentation Fault.

Revision history for this message
Michael Spencer (ibelieve) wrote :

Carlos, thanks for noticing that. I'll fix that.

Everyone, URL openning was not working awhile back, but I was told it was fixed. I'll see about getting some confirmation about whether URL openning is working or not.

Revision history for this message
Michael Spencer (ibelieve) wrote :

Marco, can you try opening a PDF document? I know that file type should be working and open in Document Viewer. Depending on what happens, we can try to figure out where the problem is. What the case, I will work on adding an error dialog to display an error if the File Manager can't open a file.

Revision history for this message
Marco (jermy-07) wrote :

Not sure what I am doing wrong. Not even PDF opens. In fact no file type will open and no error is shown. (See attachment out.webm)

Revision history for this message
Carlos Jose Mazieri (carlos-mazieri) wrote :

Marco, nice video, nothing is wrong, I wish it could be possible to run from a shell in order to get some messages.
I do not have any device, on Desktop I know it works.

I guess there is no Desktop service implementation, I am wondering if QML Qt.openUrlExternally() works or not, see: http://developer.nokia.com/Community/Wiki/How_to_use_Qt.openUrlExternally_in_QML, are you able to test Qt.openUrlExternally() in the device ?

Revision history for this message
Carlos Jose Mazieri (carlos-mazieri) wrote :

I could debug it on a Nexus 7, I tested also with QML Qt.openUrlExternally() and it did not work as well.

It looks like needs improvement by platform, I tested wih some files:

   MP3 worked
   PDF did not work
   TXT did not work
   HTML did not work

Even it fails the QDesktopServices::openUrl() returns true, see some logs:

Opening file /home/phablet/workspace/plugin/test_folderlistmodel/results/openFiles.Readme.txt
openPath()=true
** (process:1829): WARNING **: Unable to dispatch url 'file:///home/phablet/workspace/plugin/test_folderlistmodel/results/openFiles.Readme.txt':GDBus.Error:com.canonical.URLDispatcher.BadURL: URL 'file:///home/phablet/workspace/plugin/test_folderlistmodel/results/openFiles.Readme.txt' is not handleable by the URL Dispatcher

Opening file /home/phablet/Documents/C++-mem-mgnt4.pdf
openPath()=true
** (process:1829): WARNING **: Unable to dispatch url 'file:///home/phablet/Documents/C++-mem-mgnt4.pdf':GDBus.Error:com.canonical.URLDispatcher.BadURL: URL 'file:///home/phablet/Documents/C++-mem-mgnt4.pdf' is not handleable by the URL Dispatcher

Opening file /home/phablet/Documents/README.html
openPath()=true

** (process:1829): WARNING **: Unable to dispatch url 'file:///home/phablet/Documents/README.html':GDBus.Error:com.canonical.URLDispatcher.BadURL: URL 'file:///home/phablet/Documents/README.html' is not handleable by the URL Dispatcher

As it always returns true, I do not see anything else we can do, perhaps we should disable open files while it does not work.

Any other suggestion ?

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.