Skip to content

Commit

Permalink
runtime/gnuradio-config-info: print unquoted path for userconfdir
Browse files Browse the repository at this point in the history
For some reason, std::cout::operator<< decides to put
std::filesystem::path into ""; this breaks applications that try to use
the output of gnuradio-config-info --userprefsdir directly.

Using .string() seems to solve that. Strange, but not worth
investigating much.

Signed-off-by: Marcus Müller <[email protected]>
  • Loading branch information
marcusmueller committed Apr 22, 2024
1 parent 16f069c commit d662e2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnuradio-runtime/apps/gnuradio-config-info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ int main(int argc, char** argv)
std::cout << gr::prefsdir() << std::endl;

if (vm.count("userprefsdir") || print_all)
std::cout << gr::paths::userconf() << std::endl;
std::cout << gr::paths::userconf().string() << std::endl;

// Not included in print all due to verbosity
if (vm.count("prefs"))
Expand Down

0 comments on commit d662e2b

Please sign in to comment.