Skip to content

Commit

Permalink
Merge pull request #161 from dolphinoracle/gtk3
Browse files Browse the repository at this point in the history
segfault on kde tab fix
  • Loading branch information
dolphinoracle authored Nov 18, 2024
2 parents 003d32f + c9584cb commit ab4ce7d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
mx-tweak (24.11.03mx23) mx; urgency=medium

* fix localization on theme tab
* update translations

-- Dolphin Oracle <dolphin@dolphin> Mon, 18 Nov 2024 08:38:47 -0500

mx-tweak (24.11.02mx23) mx; urgency=medium

* add KDE theme tab
Expand Down
14 changes: 7 additions & 7 deletions defaultlook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3723,15 +3723,15 @@ void defaultlook::populatethemelists(const QString &value)
QString current;

if (value == QLatin1String("plasma")){
themes = runCmd("plasma-apply-desktoptheme --list-themes |grep \"*\" |cut -d\"*\" -f2").output;
themes = runCmd("LANG=C plasma-apply-desktoptheme --list-themes |grep \"*\" |cut -d\"*\" -f2").output;
themes.append("\n");
}
if (value == QLatin1String("colorscheme")){
themes = runCmd("plasma-apply-colorscheme --list-schemes |grep \"*\" |cut -d\"*\" -f2 ").output;
themes = runCmd("LANG=C plasma-apply-colorscheme --list-schemes |grep \"*\" |cut -d\"*\" -f2 ").output;
themes.append("\n");
}
if (value == QLatin1String("kdecursors")){
themes = runCmd("plasma-apply-cursortheme --list-themes | grep \"*\"").output;
themes = runCmd("LANG=C plasma-apply-cursortheme --list-themes | grep \"*\"").output;
themes.append("\n");
}
if ( value == QLatin1String("gtk-3.0") || value == QLatin1String("xfwm4")) {
Expand Down Expand Up @@ -3913,18 +3913,18 @@ void defaultlook::settheme(const QString &type, const QString &theme, const QStr

} else if ( desktop == "KDE" ){
if ( type == QLatin1String("plasma") ) {
cmd = "plasma-apply-desktoptheme " + theme;
cmd = "LANG=C plasma-apply-desktoptheme " + theme;
}
if ( type == QLatin1String("colorscheme") ) {
cmd = "plasma-apply-colorscheme " + theme;
cmd = "LANG=C plasma-apply-colorscheme " + theme;
}

if ( type == QLatin1String("icons") ) {
cmd = "/usr/lib/x86_64-linux-gnu/libexec/plasma-changeicons " + theme;
cmd = "LANG=C /usr/lib/x86_64-linux-gnu/libexec/plasma-changeicons " + theme;
}

if (type == QLatin1String("kdecursor")) {
cmd = "plasma-apply-cursortheme " + theme;
cmd = "LANG=C plasma-apply-cursortheme " + theme;
}
system(cmd.toUtf8());

Expand Down
4 changes: 2 additions & 2 deletions translations/mx-tweak_lt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -533,13 +533,13 @@
<location filename="../defaultlook.ui" line="1005"/>
<source>GTK scaling</source>
<extracomment>gtk scale factor</extracomment>
<translation type="unfinished"></translation>
<translation>GTK mastelis</translation>
</message>
<message>
<location filename="../defaultlook.ui" line="1025"/>
<source>xrandr Scaling</source>
<extracomment>xrandr scale factor</extracomment>
<translation type="unfinished"></translation>
<translation>xrandr mastelis</translation>
</message>
<message>
<location filename="../defaultlook.ui" line="1121"/>
Expand Down

0 comments on commit ab4ce7d

Please sign in to comment.