mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-26 02:20:54 +00:00
Use proper style sheet for crash report under Cinnamon
This commit is contained in:
parent
ea5a53ddc4
commit
9523abfe92
1 changed files with 13 additions and 0 deletions
|
@ -78,6 +78,19 @@ public:
|
|||
|
||||
int main( int argc, char **argv )
|
||||
{
|
||||
#ifndef WIN32
|
||||
// Workaround to default -style=gtk+ on recent Cinnamon versions
|
||||
char *currentDesktop = getenv("XDG_CURRENT_DESKTOP");
|
||||
if (currentDesktop)
|
||||
{
|
||||
printf("XDG_CURRENT_DESKTOP: %s\n", currentDesktop);
|
||||
if (!strcmp(currentDesktop, "X-Cinnamon"))
|
||||
{
|
||||
setenv("XDG_CURRENT_DESKTOP", "gnome", 1);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
QApplication app( argc, argv );
|
||||
|
||||
std::vector< std::pair< std::string, std::string > > params;
|
||||
|
|
Loading…
Reference in a new issue