mirror of
https://github.com/swaywm/sway.git
synced 2026-04-25 06:46:24 -04:00
Search for deskop files in correct directories
Signed-off-by: Felix Weilbach <felix.weilbach@t-online.de>
This commit is contained in:
parent
7f2fd4a716
commit
66d3502769
4 changed files with 41 additions and 9 deletions
|
|
@ -6,7 +6,6 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <wordexp.h>
|
||||
#include "swaybar/icon.h"
|
||||
|
|
@ -20,11 +19,6 @@ static int cmp_id(const void *item, const void *cmp_to) {
|
|||
return strcmp(item, cmp_to);
|
||||
}
|
||||
|
||||
static bool dir_exists(char *path) {
|
||||
struct stat sb;
|
||||
return stat(path, &sb) == 0 && S_ISDIR(sb.st_mode);
|
||||
}
|
||||
|
||||
static list_t *get_basedirs(void) {
|
||||
list_t *basedirs = create_list();
|
||||
list_add(basedirs, strdup("$HOME/.icons")); // deprecated
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue