flathub/org.octave.Octave

uigetfile and uiputfile return wrong directory with native file dialogs

Open

#51 opened on Mar 7, 2019

 (10 comments) (0 reactions) (0 assignees) (12 forks)auto 404
flatpakhelp wanted

Repository metrics

Stars
 (20 stars)
PR merge metrics
 (PR metrics pending)

Description

hello , is it my problem or a bug in uigetfile()

uigetfile() returns my work path not the path for the file i choose.

documentation says about uigetfile() : Open a GUI dialog for selecting a file and return the filename fname, the path to this file fpath, and the filter index fltidx.

Octave version 5.1.0

>> [filename, folder] = uigetfile();
>> folder
folder = /home/khalil2535/Octave/HomeWork's/Homework1/
>> % selected file : /home/khalil2535/Octave/Materials/images/cameraman.tif
>> % my work path /home/khalil2535/Octave/HomeWork's/Homework1/

information about the environment :- Operating System: Fedora 29 KDE Plasma Version: 5.14.5 Qt Version: 5.11.3 KDE Frameworks Version: 5.55.0 Kernel Version: 4.20.13-200.fc29.x86_64 OS Type: 64-bit

Contributor guide