Skip to content

Commit

Permalink
allow null DESKTOP_SESSION
Browse files Browse the repository at this point in the history
  • Loading branch information
zcot committed Jun 3, 2023
1 parent e41aaf3 commit 85fd0b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions conky-manager2.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: conky-manager2 2.0\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2022-06-02 10:07-0400\n"
"POT-Creation-Date: 2023-06-02 22:55-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -132,7 +132,7 @@ msgstr ""
msgid "Current Wallpaper"
msgstr ""

#: Main.vala:1997
#: Main.vala:2000
msgid "Current wallpaper source path"
msgstr ""

Expand Down Expand Up @@ -498,7 +498,7 @@ msgstr ""
msgid "Save running widgets and current desktop wallpaper as new theme"
msgstr ""

#: Main.vala:1044
#: Main.vala:1047
msgid "Saved"
msgstr ""

Expand Down Expand Up @@ -587,7 +587,7 @@ msgstr ""
msgid "Start/Restart Widget in Terminal"
msgstr ""

#: Main.vala:925 Main.vala:947
#: Main.vala:928 Main.vala:950
msgid "Started"
msgstr ""

Expand All @@ -611,7 +611,7 @@ msgstr ""
msgid "Stop all running widgets"
msgstr ""

#: Main.vala:973 Utility.vala:767
#: Main.vala:976 Utility.vala:767
msgid "Stopped"
msgstr ""

Expand Down Expand Up @@ -725,7 +725,7 @@ msgstr ""
msgid "Wallpaper"
msgstr ""

#: Main.vala:2001 Main.vala:2009
#: Main.vala:2004 Main.vala:2012
msgid "Wallpaper saved"
msgstr ""

Expand Down
3 changes: 2 additions & 1 deletion src/Main.vala
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,8 @@ public class Main : GLib.Object {
public void update_startup_script(){
string startupScript = data_dir + "/conky-startup.sh";
string home = Environment.get_home_dir ();
unowned string desktop_session = Environment.get_variable ("DESKTOP_SESSION");
unowned string desktop_session = Environment.get_variable ("DESKTOP_SESSION");
if (desktop_session == "(null)") desktop_session = "";
bool atleast_one_widget_enabled = false;

string txt_start_conky = "";
Expand Down

0 comments on commit 85fd0b3

Please sign in to comment.