bugGNU Octave - Bugs: bug #64140, uigetfile() always return pwd()...

 
 

bug #64140: uigetfile() always return pwd() path as fpath

Submitter:  Yu Hongbo <yuhongbo>
Submitted:  Wed 03 May 2023 02:57:47 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Need Info Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * 7.3.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Wed 31 May 2023 12:17:40 AM UTC, comment #9: 

Should the Status field be changed to Confirmed on 8.2.1 with GTK/Gnome Desktop?

Rik <rik5>
Group administrator
Thu 04 May 2023 11:31:28 AM UTC, comment #8: 

I've just tried KDE/Plasma and bug is not there.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Thu 04 May 2023 11:12:36 AM UTC, comment #7: 


comment #6:

> Which desktop environments are you using?
>


GTK/gnome

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Thu 04 May 2023 06:52:18 AM UTC, comment #6: 

Which desktop environments are you using?

Markus Mützel <mmuetzel>
Group administrator
Thu 04 May 2023 01:29:00 AM UTC, comment #5: 

Can NOT reproduce the problem on ubuntu 23.04 (qt5: 5.15.8)
with dev tip.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Wed 03 May 2023 10:52:27 PM UTC, comment #4: 

Qt5: 5.15.9; Qt6: 6.3.1

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Wed 03 May 2023 10:49:38 PM UTC, comment #3: 

I confirm the problem with hgid f7206b6577c2 (8.2.1 tip)
and with 24752aa8be11 tip @ (with qt5). 24752aa8be11 tip @ with
qt6 seems to be working correctly.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Wed 03 May 2023 10:16:56 PM UTC, comment #2: 


comment #1:

> Works for me with Octave 8.2.0.
>
> Does using or not using "Native file dialogs" in the "General" tab of the preferences make a difference for you?
> After without using "Native file dialogs" the uigetfile() function could return correct  file path.
> And I can find out the appearance of "native file dialogs" had really changed from Fedora 36 to Fedora 37.

Yu Hongbo <yuhongbo>
Wed 03 May 2023 06:55:00 PM UTC, comment #1: 

Works for me with Octave 8.2.0.

Does using or not using "Native file dialogs" in the "General" tab of the preferences make a difference for you?

Markus Mützel <mmuetzel>
Group administrator
Wed 03 May 2023 02:57:47 PM UTC, original submission:  

In this code:

>> [fname, fpath, fltidx] = uigetfile


The fpath is the pwd() result (aka "current working directory"), which shoule be the directory of the file.

This function works correctly at Octave 6.4.0 or earlier. You may check after this version.

Yu Hongbo <yuhongbo>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-05-03 mmuetzel Item GroupNone Incorrect Result
        StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code