Skip to content

Commit

Permalink
Fix theme directory location paths
Browse files Browse the repository at this point in the history
  • Loading branch information
wins1ey committed Apr 9, 2024
1 parent 1f81a06 commit c787e4e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/last-gtk.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,17 @@ static int last_app_window_find_theme(LASTAppWindow *win,
strcat(str, theme_path);
if (stat(str, &st) == -1)
{
strcpy(str, "/usr/share/last/themes");
strcpy(str, "/usr/share/LAST/themes");
strcat(str, theme_path);
if (stat(str, &st) == -1)
{
str[0] = '\0';
return 0;
strcpy(str, "/usr/local/share/LAST/themes");
strcat(str, theme_path);
if (stat(str, &st) == -1)
{
str[0] = '\0';
return 0;
}
}
}
return 1;
Expand Down

0 comments on commit c787e4e

Please sign in to comment.