Skip to content

Commit ee2bb39

Browse files
authored
Fixed a regression in executing in terminal (#972)
Fixes lxqt/pcmanfm-qt#1902
1 parent a127f77 commit ee2bb39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/terminal.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ static void child_setup(gpointer user_data) {
2121
bool launchTerminal(const char* programName, const FilePath& workingDir, Fm::GErrorPtr& error) {
2222
/* read user and system terminals files */
2323
GKeyFile* kf = g_key_file_new();
24-
bool found = g_key_file_load_from_data_dirs(kf, "libfm-qt/terminals.list", nullptr, G_KEY_FILE_NONE, &error);
24+
bool found = g_key_file_load_from_data_dirs(kf, "libfm-qt/terminals.list", nullptr, G_KEY_FILE_NONE, nullptr);
2525
if(found) {
2626
found = g_key_file_has_group(kf, programName);
2727
}
@@ -160,7 +160,7 @@ extern "C" char* expand_terminal(char* cmd, gboolean keep_open, GError** error)
160160
/* read user and system terminals files */
161161
bool found = false;
162162
GKeyFile* kf = g_key_file_new();
163-
if(g_key_file_load_from_data_dirs(kf, "libfm-qt/terminals.list", nullptr, G_KEY_FILE_NONE, error)) {
163+
if(g_key_file_load_from_data_dirs(kf, "libfm-qt/terminals.list", nullptr, G_KEY_FILE_NONE, nullptr)) {
164164
found = g_key_file_has_group(kf, defaultTerminalName.c_str());
165165
}
166166
if(!found) {

0 commit comments

Comments
 (0)