Giter Club home page Giter Club logo

Comments (4)

rbdannenberg avatar rbdannenberg commented on June 18, 2024

I'm pretty sure ~ is interpreted by the shell, and file IO primitives including system commands like open do not do regular expression matching or convert ~ to $HOME or replace $HOME for that matter. So you could actually name a file "~" or "$HOME" although it's obviously a bad idea.

from audacity.

InconsolableCellist avatar InconsolableCellist commented on June 18, 2024

All GTK+ file pickers/choosers, Qt, KDE, and all popular desktop applications support "~" expansion.

E.g., right click this page in Firefox or Chrome, type ~/somefile.txt and it'll save it in $HOME/somefile.txt.

Shells do also expand ~ but it isn't limited to a shell feature

from audacity.

InconsolableCellist avatar InconsolableCellist commented on June 18, 2024

According to a comment in the forum (https://forum.audacityteam.org/t/bug-audacity-fails-to-parse-tilde-for-users-home-directory-in-export-audio-dialog/106141) this may be a regression after 3.4.2

from audacity.

LWinterberg avatar LWinterberg commented on June 18, 2024

It's not technically a regression - before 3.4, the export dialog was a customized file picker. Now, the "browse" button in the export dialog opens the native (and unmodified) file picker, while the box inside the export dialog just is a textbox.

A fix for this probably involves validating mFullName in ExportFilePanel.cpp. There already is ExportFilePanel::ValidateAndFixExt() which does the same for invalid characters in the filename.

from audacity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.