Score:1

Ubuntu 22.04: xdg-open opening Text Editor instead of browser when called from C++ program

py flag

I'm a currently running on Ubuntu 22.04 and calling the following xdg-open system call from a C++ program:

QString cmd = "xdg-open /home/user/foo.html &";
int ret = system(cmd.toStdString().c_str());

Instead of opening the default Firefox browser the xdg-open system call opens foo.html in a Text Editor.

The same program xdg-open call on Ubuntu 20.04 opens foo.html in a Firefox browser.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.