Skip to content

Commit b438c4e

Browse files
authored
Merge pull request #6469 from claudiux/xsession_1.1.0
[xsession@claudiux] v1.1.0 - Opens the settings for the Spices you use
2 parents 8dad0a0 + 3a6d74c commit b438c4e

File tree

14 files changed

+518
-262
lines changed

14 files changed

+518
-262
lines changed

xsession@claudiux/files/xsession@claudiux/CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### v1.1.0~20241005
2+
* Opens the settings for the spices you use.
3+
14
### v1.0.6~20240330
25
* Code cleanup.
36

@@ -8,10 +11,10 @@
811
* Removes the --window-icon parameter for zenity v4.
912

1013
### v1.0.3~20230428
11-
* Code cleanup
14+
* Code cleanup.
1215

1316
### v1.0.2~20230412
14-
* Close menu before restarting Cinnamon
17+
* Close menu before restarting Cinnamon.
1518

1619
### v1.0.1~20230213
1720
* Middle-click on icon shows ~/.xsession-errors.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
The applet xsession@claudiux, useful for debugging, allows you to:
22

3-
* restart or open the source code of Spices (applets, desklets, extensions),
3+
* restart or open settings or show the source code of Spices (applets, desklets, extensions),
44
* display in real-time the contents of your .xsession-errors file
55
* restart Cinnamon.
66

77
## Translations
88

9-
[Status of translations](https://github.com/linuxmint/cinnamon-spices-applets/blob/translation-status-tables/.translation-tables/tables/xsession%40claudiux.md#)
9+
[Status of translations](https://github.com/linuxmint/cinnamon-spices-applets/blob/translation-status-tables/.translation-tables/tables/xsession%40claudiux.md#)

xsession@claudiux/files/xsession@claudiux/applet.js

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class LGS extends Applet.IconApplet {
162162

163163
this.menu.addMenuItem(itemReloadCinnamon);
164164

165-
// Reload
165+
// Reload:
166166
let reloadHead = new PopupMenu.PopupMenuItem(_("--- Reload Spices ---"), {
167167
reactive: false
168168
});
@@ -213,7 +213,58 @@ class LGS extends Applet.IconApplet {
213213
this.subMenuReloadExtensions.menu.addMenuItem(s)
214214
}
215215

216-
// View Code
216+
// Settings:
217+
let settingsHead = new PopupMenu.PopupMenuItem(_("--- Settings for ---"), {
218+
reactive: false
219+
});
220+
this.menu.addMenuItem(settingsHead);
221+
222+
// Applets
223+
this.subMenuSettingsApplets = new PopupMenu.PopupSubMenuMenuItem(_("Applet:"));
224+
this.menu.addMenuItem(this.subMenuSettingsApplets);
225+
226+
for (let applet of this.get_active_spices("applets")) {
227+
let s = new PopupMenu.PopupMenuItem(applet, {
228+
reactive: true
229+
});
230+
s.connect("activate", () => {
231+
if (this.menu.isOpen) this.menu.close();
232+
Util.spawnCommandLineAsync('bash -c "cinnamon-settings applets %s"'.format(applet))
233+
});
234+
this.subMenuSettingsApplets.menu.addMenuItem(s)
235+
}
236+
237+
// Desklets
238+
this.subMenuSettingsDesklets = new PopupMenu.PopupSubMenuMenuItem(_("Desklet:"));
239+
this.menu.addMenuItem(this.subMenuSettingsDesklets);
240+
241+
for (let desklet of this.get_active_spices("desklets")) {
242+
let s = new PopupMenu.PopupMenuItem(desklet, {
243+
reactive: true
244+
});
245+
s.connect("activate", () => {
246+
if (this.menu.isOpen) this.menu.close();
247+
Util.spawnCommandLineAsync('bash -c "cinnamon-settings desklets %s"'.format(desklet))
248+
});
249+
this.subMenuSettingsDesklets.menu.addMenuItem(s)
250+
}
251+
252+
// Extensions
253+
this.subMenuSettingsExtensions = new PopupMenu.PopupSubMenuMenuItem(_("Extension:"));
254+
this.menu.addMenuItem(this.subMenuSettingsExtensions);
255+
256+
for (let extension of this.get_active_spices("extensions")) {
257+
let s = new PopupMenu.PopupMenuItem(extension, {
258+
reactive: true
259+
});
260+
s.connect("activate", () => {
261+
if (this.menu.isOpen) this.menu.close();
262+
Util.spawnCommandLineAsync('bash -c "cinnamon-settings extensions %s"'.format(extension))
263+
});
264+
this.subMenuSettingsExtensions.menu.addMenuItem(s)
265+
}
266+
267+
// View Code:
217268
let codeHead = new PopupMenu.PopupMenuItem(_("--- View Code ---"), {
218269
reactive: false
219270
});

xsession@claudiux/files/xsession@claudiux/metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "Xsession",
44
"max-instances": "1",
55
"hide-configuration": true,
6-
"version": "1.0.6",
7-
"description": "Allows you to restart or open the source code of Spices (applets, desklets, extensions), display in real-time the contents of your .xsession-errors file and restart Cinnamon.",
6+
"version": "1.1.0",
7+
"description": "Restart, access source code and configure your Spices (Applets, Desklets, Extensions). View the contents of your .xsession-errors file in real time. Restart Cinnamon.",
88
"author": "claudiux"
99
}

xsession@claudiux/files/xsession@claudiux/po/ca.po

Lines changed: 45 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
# SOME DESCRIPTIVE TITLE.
1+
# XSESSION
22
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
33
# This file is distributed under the same license as the PACKAGE package.
4-
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4+
# claudiux, 2022
55
#
66
#, fuzzy
77
msgid ""
88
msgstr ""
99
"Project-Id-Version: \n"
10-
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2023-02-04 19:37+0100\n"
10+
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-applets/"
11+
"issues\n"
12+
"POT-Creation-Date: 2024-10-06 01:02+0200\n"
1213
"PO-Revision-Date: 2024-07-06 03:34+0200\n"
1314
"Last-Translator: Odyssey <[email protected]>\n"
1415
"Language-Team: \n"
@@ -18,71 +19,90 @@ msgstr ""
1819
"Content-Transfer-Encoding: 8bit\n"
1920
"X-Generator: Poedit 3.4.2\n"
2021

21-
#: applet.js:43
22+
#. applet.js:45
2223
msgid "Applet"
2324
msgstr "Miniaplicació"
2425

25-
#: applet.js:44
26+
#. applet.js:46
2627
msgid "Desklet"
2728
msgstr "Miniaplicació d'escriptori"
2829

29-
#: applet.js:45
30+
#. applet.js:47
3031
msgid "Extension"
3132
msgstr "Extensió"
3233

33-
#: applet.js:48
34+
#. applet.js:50
3435
msgid "Applets"
3536
msgstr "Miniaplicacions"
3637

37-
#: applet.js:49
38+
#. applet.js:51
3839
msgid "Desklets"
3940
msgstr "Miniaplicacions d'escriptori"
4041

41-
#: applet.js:50
42+
#. applet.js:52
4243
msgid "Extensions"
4344
msgstr "Extensions"
4445

45-
#: applet.js:93
46+
#. applet.js:88
4647
msgid "Middle-click: \n"
4748
msgstr "Clic del mig:\n"
4849

49-
#: applet.js:93 applet.js:165
50+
#. applet.js:88 applet.js:141
5051
msgid "Show .xsession-errors"
5152
msgstr "Mostrar .xsession-errors"
5253

53-
#: applet.js:176
54+
#. applet.js:152
5455
msgid "Restart Cinnamon"
5556
msgstr "Reiniciar Cinnamon"
5657

57-
#: applet.js:187
58+
#. applet.js:166
5859
msgid "--- Reload Spices ---"
5960
msgstr "--- Recarregar Espècies ---"
6061

61-
#: applet.js:193
62+
#. applet.js:172
6263
msgid "Reload Applet:"
6364
msgstr "Recarregar la miniaplicació:"
6465

65-
#: applet.js:207
66+
#. applet.js:187
6667
msgid "Reload Desklet:"
6768
msgstr "Recarregar la miniaplicació d'escriptori:"
6869

69-
#: applet.js:221
70+
#. applet.js:202
7071
msgid "Reload Extension:"
7172
msgstr "Recarregar l'extensió:"
7273

73-
#: applet.js:235
74+
#. applet.js:217
75+
msgid "--- Settings for ---"
76+
msgstr ""
77+
78+
#. applet.js:223
79+
#, fuzzy
80+
msgid "Applet:"
81+
msgstr "Miniaplicació"
82+
83+
#. applet.js:238
84+
#, fuzzy
85+
msgid "Desklet:"
86+
msgstr "Miniaplicació d'escriptori"
87+
88+
#. applet.js:253
89+
#, fuzzy
90+
msgid "Extension:"
91+
msgstr "Extensió"
92+
93+
#. applet.js:268
7494
msgid "--- View Code ---"
7595
msgstr "--- Veure el codi ---"
7696

77-
#: applet.js:241
97+
#. applet.js:274
7898
msgid "View Applet Code for:"
7999
msgstr "Veure el codi de la miniaplicació:"
80100

81-
#: applet.js:255
101+
#. applet.js:289
82102
msgid "View Desklet Code for:"
83103
msgstr "Veure el codi de la miniaplicació d'escriptori:"
84104

85-
#: applet.js:269
105+
#. applet.js:304
86106
msgid "View Extension Code for:"
87107
msgstr "Veure el codi de l'extensió:"
88108

@@ -91,10 +111,11 @@ msgid "Xsession"
91111
msgstr "Xsession"
92112

93113
#. metadata.json->description
114+
#, fuzzy
94115
msgid ""
95-
"Allows you to restart or open the source code of Spices (applets, desklets, "
96-
"extensions), display in real-time the contents of your .xsession-errors file "
97-
"and restart Cinnamon."
116+
"Restart, access source code and configure your Spices (Applets, Desklets, "
117+
"Extensions). View the contents of your .xsession-errors file in real time. "
118+
"Restart Cinnamon."
98119
msgstr ""
99120
"Ús permet reiniciar o obrir el codi font d'espècies (miniaplicacions, "
100121
"miniaplicacions d'escriptori, extensions), mostrar el contingut del fitxer ."

xsession@claudiux/files/xsession@claudiux/po/da.po

Lines changed: 45 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
# SOME DESCRIPTIVE TITLE.
1+
# XSESSION
22
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
33
# This file is distributed under the same license as the PACKAGE package.
4-
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4+
# claudiux, 2022
55
#
66
msgid ""
77
msgstr ""
88
"Project-Id-Version: \n"
9-
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2023-02-04 19:37+0100\n"
9+
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-applets/"
10+
"issues\n"
11+
"POT-Creation-Date: 2024-10-06 01:02+0200\n"
1112
"PO-Revision-Date: 2023-12-28 08:51+0100\n"
1213
"Last-Translator: Alan Mortensen <[email protected]>\n"
1314
"Language-Team: \n"
@@ -18,71 +19,90 @@ msgstr ""
1819
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
1920
"X-Generator: Poedit 3.0.1\n"
2021

21-
#: applet.js:43
22+
#. applet.js:45
2223
msgid "Applet"
2324
msgstr "Panelprogram"
2425

25-
#: applet.js:44
26+
#. applet.js:46
2627
msgid "Desklet"
2728
msgstr "Skrivebordsprogram"
2829

29-
#: applet.js:45
30+
#. applet.js:47
3031
msgid "Extension"
3132
msgstr "Udvidelse"
3233

33-
#: applet.js:48
34+
#. applet.js:50
3435
msgid "Applets"
3536
msgstr "Panelprogrammer"
3637

37-
#: applet.js:49
38+
#. applet.js:51
3839
msgid "Desklets"
3940
msgstr "Skrivebordsprogrammer"
4041

41-
#: applet.js:50
42+
#. applet.js:52
4243
msgid "Extensions"
4344
msgstr "Udvidelser"
4445

45-
#: applet.js:93
46+
#. applet.js:88
4647
msgid "Middle-click: \n"
4748
msgstr "Midterklik: \n"
4849

49-
#: applet.js:93 applet.js:165
50+
#. applet.js:88 applet.js:141
5051
msgid "Show .xsession-errors"
5152
msgstr "Vis .xsession-errors"
5253

53-
#: applet.js:176
54+
#. applet.js:152
5455
msgid "Restart Cinnamon"
5556
msgstr "Genstart Cinnamon"
5657

57-
#: applet.js:187
58+
#. applet.js:166
5859
msgid "--- Reload Spices ---"
5960
msgstr "--- Genindlæs Spices ---"
6061

61-
#: applet.js:193
62+
#. applet.js:172
6263
msgid "Reload Applet:"
6364
msgstr "Genindlæs panelprogram:"
6465

65-
#: applet.js:207
66+
#. applet.js:187
6667
msgid "Reload Desklet:"
6768
msgstr "Genindlæs skrivebordsprogram:"
6869

69-
#: applet.js:221
70+
#. applet.js:202
7071
msgid "Reload Extension:"
7172
msgstr "Genindlæs udvidelse:"
7273

73-
#: applet.js:235
74+
#. applet.js:217
75+
msgid "--- Settings for ---"
76+
msgstr ""
77+
78+
#. applet.js:223
79+
#, fuzzy
80+
msgid "Applet:"
81+
msgstr "Panelprogram"
82+
83+
#. applet.js:238
84+
#, fuzzy
85+
msgid "Desklet:"
86+
msgstr "Skrivebordsprogram"
87+
88+
#. applet.js:253
89+
#, fuzzy
90+
msgid "Extension:"
91+
msgstr "Udvidelse"
92+
93+
#. applet.js:268
7494
msgid "--- View Code ---"
7595
msgstr "--- Vis kode ---"
7696

77-
#: applet.js:241
97+
#. applet.js:274
7898
msgid "View Applet Code for:"
7999
msgstr "Vis koden for panelprogrammet:"
80100

81-
#: applet.js:255
101+
#. applet.js:289
82102
msgid "View Desklet Code for:"
83103
msgstr "Vis koden for skrivebordsprogrammet:"
84104

85-
#: applet.js:269
105+
#. applet.js:304
86106
msgid "View Extension Code for:"
87107
msgstr "Vis koden for udvidelsen:"
88108

@@ -91,10 +111,11 @@ msgid "Xsession"
91111
msgstr "Xsession"
92112

93113
#. metadata.json->description
114+
#, fuzzy
94115
msgid ""
95-
"Allows you to restart or open the source code of Spices (applets, desklets, "
96-
"extensions), display in real-time the contents of your .xsession-errors file "
97-
"and restart Cinnamon."
116+
"Restart, access source code and configure your Spices (Applets, Desklets, "
117+
"Extensions). View the contents of your .xsession-errors file in real time. "
118+
"Restart Cinnamon."
98119
msgstr ""
99120
"Giver dig mulighed for at genstarte eller åbne kildekoden til Spices "
100121
"(panelprogrammer, skrivebordsprogrammer, udvidelser), vise indholdet af din ."

0 commit comments

Comments
 (0)