bugGNU Octave - Bugs: bug #56585, uigetfile() return incorrect fpath

 
 

bug #56585: uigetfile() return incorrect fpath

Submitter:  Chien-Hsun Chen <ncnujesse>
Submitted:  Sun 07 Jul 2019 10:26:10 AM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Works For Me Assigned to:  None
Originator Name:  Jesse Open/Closed:  * Closed
Release:  * 5.1.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 08 Jul 2019 06:21:52 AM UTC, comment #2: 

This bug is already being tracked here: https://github.com/flathub/org.octave.Octave/issues/51

This behavior is specific to the Qt library interacting with the Flatpak file dialog portal. It can be worked around by disabling native file dialogs in the Octave settings, as mentioned on the other tracker.

Closing this as it is not a bug in Octave itself, but a bug in the interaction between Qt and Flatpak.

It may be that we do make a change in Octave at some point in the future to work around this, but deferring to the Flatpak packaging team to fix it for now.

Mike Miller <mtmiller>
Group Member
Mon 08 Jul 2019 03:02:20 AM UTC, comment #1: 

This works for me.

I notice that the working directory for your example is /media/... which is usually an auto-mounted directory.  Does uigetfile work correctly if you are located in a normal directory such as /home/USERNAME?  If it does, that might be a clue.

Rik <rik5>
Group administrator
Sun 07 Jul 2019 10:26:10 AM UTC, original submission:  

Incorrect fpath returned from uigetfile(), LINUX MINT 18.3


Basic info

  • Operation system: LINUX MINT 18.3 (upgraded from 18.1)
  • Octave installed through flatpak: Version 5.1


Problem description


[~, fpath, ~] = uigetfile()


The returned fpath is the path of the currecnt working directory shown on Octave window, not the path of the file being selected.

Other Info:

  • This problem does not exist on the windows 8, the same octave version without installation.
  • This problem does not exist on LINUX MINT 18.3 installed through LINUX MINT package manager (Octave version 4.*)


Chien-Hsun Chen <ncnujesse>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by ncnujesse (Submitted the item)
  • -email is unavailable- added by ncnujesse
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-08-24 mtmiller Dependencies- bugs #56799 is dependent
    2019-07-08 mtmiller Open/ClosedOpen Closed
    2019-07-08 rik5 StatusNone Works For Me
    2019-07-07 ncnujesse Attached File- Added Screenshot@from@2019-07-07@12-21-12.png, #47166
        Attached File- Added Screenshot@from@2019-07-07@12-19-46.png, #47167
        Carbon-Copy- Added ncnujesse

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code