mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 08:13:44 +01:00
fixed dconf bug
This commit is contained in:
+4
-4
@@ -71,16 +71,16 @@ const char* ffDConfGetValue(FFinstance* instance, const char* key)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
GVariant*(*ffdconf_client_read)(DConfClient*, const gchar*) = dlsym(dconf.library, "dconf_client_read");
|
||||
if(ffdconf_client_read == NULL)
|
||||
dconf.ffdconf_client_new = dlsym(dconf.library, "dconf_client_read");
|
||||
if(dconf.ffdconf_client_read == NULL)
|
||||
{
|
||||
pthread_mutex_unlock(&mutex);
|
||||
dlclose(dconf.library);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
DConfClient* dconfClient = dconf.ffdconf_client_new();
|
||||
if(dconfClient == NULL)
|
||||
dconf.dconfClient = dconf.ffdconf_client_new();
|
||||
if(dconf.dconfClient == NULL)
|
||||
{
|
||||
pthread_mutex_unlock(&mutex);
|
||||
dlclose(dconf.library);
|
||||
|
||||
@@ -280,7 +280,7 @@ static inline void getWMDE(FFWMDEResult* result)
|
||||
getDE(result, &procData);
|
||||
|
||||
if(result->wmProtocolName.length == 0 && procData.protocolHint != FF_PROTOCOL_HINT_UNKNOWN)
|
||||
getSessionType(result, procData.protocolHint);
|
||||
getSessionTypeFallback(result, procData.protocolHint);
|
||||
|
||||
if(procData.proc != NULL)
|
||||
closedir(procData.proc);
|
||||
|
||||
Reference in New Issue
Block a user