IDEA-346478 Collect Theme statistic on Linux

- Fixed review comment

GitOrigin-RevId: 7261881fd86609f180e599dfcd91cbb2e41b8967
This commit is contained in:
Pavel Porvatov
2024-03-25 19:25:24 +00:00
committed by intellij-monorepo-bot
parent c895349db2
commit c305533a31
@@ -335,7 +335,7 @@ public final class X11UiUtil {
if (SystemInfo.isGNOME) {
String result = exec("Cannot get gnome theme", "gsettings", "get", "org.gnome.desktop.interface", "gtk-theme");
if (result == null || !result.startsWith("'") || !result.endsWith("'")) {
if (result == null || result.length() <= 1 || !result.startsWith("'") || !result.endsWith("'")) {
return result;
}