"~" is a shell variable (bash/sh/etc), so that won't work here.

What you probably want is QStandardPaths::HomeLocation.

https://doc.qt.io/qt-5/qstandardpaths.html

---
Andy Maloney  //  https://asmaloney.com
twitter ~ @asmaloney <https://twitter.com/asmaloney>



On Fri, Nov 16, 2018 at 10:27 PM Alexander Dyagilev <alervd...@gmail.com>
wrote:

> Hello,
>
> Linux. How?
>
> It gives me incorrect path of the expected one.
>
> I expect this:
>
> /home/user/.mozilla
>
> It returns me this:
>
>
> /home/user/Desktop/build-test-Desktop_Qt_5_11_2_GCC_64bit-Debug/bin/~/.mozilla
>
> P.S. I'm new to Linux so sorry for the probably stupid question.
>
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to