Skip to content

Commit

Permalink
v1.1.0 - Opens the settings for the Spices you use
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiux committed Oct 5, 2024
1 parent 8dad0a0 commit 3a6d74c
Show file tree
Hide file tree
Showing 14 changed files with 518 additions and 262 deletions.
7 changes: 5 additions & 2 deletions xsession@claudiux/files/xsession@claudiux/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### v1.1.0~20241005
* Opens the settings for the spices you use.

### v1.0.6~20240330
* Code cleanup.

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

### v1.0.3~20230428
* Code cleanup
* Code cleanup.

### v1.0.2~20230412
* Close menu before restarting Cinnamon
* Close menu before restarting Cinnamon.

### v1.0.1~20230213
* Middle-click on icon shows ~/.xsession-errors.
Expand Down
4 changes: 2 additions & 2 deletions xsession@claudiux/files/xsession@claudiux/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
The applet xsession@claudiux, useful for debugging, allows you to:

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

## Translations

[Status of translations](https://github.com/linuxmint/cinnamon-spices-applets/blob/translation-status-tables/.translation-tables/tables/xsession%40claudiux.md#)
[Status of translations](https://github.com/linuxmint/cinnamon-spices-applets/blob/translation-status-tables/.translation-tables/tables/xsession%40claudiux.md#)
55 changes: 53 additions & 2 deletions xsession@claudiux/files/xsession@claudiux/applet.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class LGS extends Applet.IconApplet {

this.menu.addMenuItem(itemReloadCinnamon);

// Reload
// Reload:
let reloadHead = new PopupMenu.PopupMenuItem(_("--- Reload Spices ---"), {
reactive: false
});
Expand Down Expand Up @@ -213,7 +213,58 @@ class LGS extends Applet.IconApplet {
this.subMenuReloadExtensions.menu.addMenuItem(s)
}

// View Code
// Settings:
let settingsHead = new PopupMenu.PopupMenuItem(_("--- Settings for ---"), {
reactive: false
});
this.menu.addMenuItem(settingsHead);

// Applets
this.subMenuSettingsApplets = new PopupMenu.PopupSubMenuMenuItem(_("Applet:"));
this.menu.addMenuItem(this.subMenuSettingsApplets);

for (let applet of this.get_active_spices("applets")) {
let s = new PopupMenu.PopupMenuItem(applet, {
reactive: true
});
s.connect("activate", () => {
if (this.menu.isOpen) this.menu.close();
Util.spawnCommandLineAsync('bash -c "cinnamon-settings applets %s"'.format(applet))
});
this.subMenuSettingsApplets.menu.addMenuItem(s)
}

// Desklets
this.subMenuSettingsDesklets = new PopupMenu.PopupSubMenuMenuItem(_("Desklet:"));
this.menu.addMenuItem(this.subMenuSettingsDesklets);

for (let desklet of this.get_active_spices("desklets")) {
let s = new PopupMenu.PopupMenuItem(desklet, {
reactive: true
});
s.connect("activate", () => {
if (this.menu.isOpen) this.menu.close();
Util.spawnCommandLineAsync('bash -c "cinnamon-settings desklets %s"'.format(desklet))
});
this.subMenuSettingsDesklets.menu.addMenuItem(s)
}

// Extensions
this.subMenuSettingsExtensions = new PopupMenu.PopupSubMenuMenuItem(_("Extension:"));
this.menu.addMenuItem(this.subMenuSettingsExtensions);

for (let extension of this.get_active_spices("extensions")) {
let s = new PopupMenu.PopupMenuItem(extension, {
reactive: true
});
s.connect("activate", () => {
if (this.menu.isOpen) this.menu.close();
Util.spawnCommandLineAsync('bash -c "cinnamon-settings extensions %s"'.format(extension))
});
this.subMenuSettingsExtensions.menu.addMenuItem(s)
}

// View Code:
let codeHead = new PopupMenu.PopupMenuItem(_("--- View Code ---"), {
reactive: false
});
Expand Down
4 changes: 2 additions & 2 deletions xsession@claudiux/files/xsession@claudiux/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Xsession",
"max-instances": "1",
"hide-configuration": true,
"version": "1.0.6",
"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.",
"version": "1.1.0",
"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.",
"author": "claudiux"
}
69 changes: 45 additions & 24 deletions xsession@claudiux/files/xsession@claudiux/po/ca.po
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# SOME DESCRIPTIVE TITLE.
# XSESSION
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
# claudiux, 2022
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-02-04 19:37+0100\n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-applets/"
"issues\n"
"POT-Creation-Date: 2024-10-06 01:02+0200\n"
"PO-Revision-Date: 2024-07-06 03:34+0200\n"
"Last-Translator: Odyssey <[email protected]>\n"
"Language-Team: \n"
Expand All @@ -18,71 +19,90 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.4.2\n"

#: applet.js:43
#. applet.js:45
msgid "Applet"
msgstr "Miniaplicació"

#: applet.js:44
#. applet.js:46
msgid "Desklet"
msgstr "Miniaplicació d'escriptori"

#: applet.js:45
#. applet.js:47
msgid "Extension"
msgstr "Extensió"

#: applet.js:48
#. applet.js:50
msgid "Applets"
msgstr "Miniaplicacions"

#: applet.js:49
#. applet.js:51
msgid "Desklets"
msgstr "Miniaplicacions d'escriptori"

#: applet.js:50
#. applet.js:52
msgid "Extensions"
msgstr "Extensions"

#: applet.js:93
#. applet.js:88
msgid "Middle-click: \n"
msgstr "Clic del mig:\n"

#: applet.js:93 applet.js:165
#. applet.js:88 applet.js:141
msgid "Show .xsession-errors"
msgstr "Mostrar .xsession-errors"

#: applet.js:176
#. applet.js:152
msgid "Restart Cinnamon"
msgstr "Reiniciar Cinnamon"

#: applet.js:187
#. applet.js:166
msgid "--- Reload Spices ---"
msgstr "--- Recarregar Espècies ---"

#: applet.js:193
#. applet.js:172
msgid "Reload Applet:"
msgstr "Recarregar la miniaplicació:"

#: applet.js:207
#. applet.js:187
msgid "Reload Desklet:"
msgstr "Recarregar la miniaplicació d'escriptori:"

#: applet.js:221
#. applet.js:202
msgid "Reload Extension:"
msgstr "Recarregar l'extensió:"

#: applet.js:235
#. applet.js:217
msgid "--- Settings for ---"
msgstr ""

#. applet.js:223
#, fuzzy
msgid "Applet:"
msgstr "Miniaplicació"

#. applet.js:238
#, fuzzy
msgid "Desklet:"
msgstr "Miniaplicació d'escriptori"

#. applet.js:253
#, fuzzy
msgid "Extension:"
msgstr "Extensió"

#. applet.js:268
msgid "--- View Code ---"
msgstr "--- Veure el codi ---"

#: applet.js:241
#. applet.js:274
msgid "View Applet Code for:"
msgstr "Veure el codi de la miniaplicació:"

#: applet.js:255
#. applet.js:289
msgid "View Desklet Code for:"
msgstr "Veure el codi de la miniaplicació d'escriptori:"

#: applet.js:269
#. applet.js:304
msgid "View Extension Code for:"
msgstr "Veure el codi de l'extensió:"

Expand All @@ -91,10 +111,11 @@ msgid "Xsession"
msgstr "Xsession"

#. metadata.json->description
#, fuzzy
msgid ""
"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."
"Restart, access source code and configure your Spices (Applets, Desklets, "
"Extensions). View the contents of your .xsession-errors file in real time. "
"Restart Cinnamon."
msgstr ""
"Ús permet reiniciar o obrir el codi font d'espècies (miniaplicacions, "
"miniaplicacions d'escriptori, extensions), mostrar el contingut del fitxer ."
Expand Down
69 changes: 45 additions & 24 deletions xsession@claudiux/files/xsession@claudiux/po/da.po
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# SOME DESCRIPTIVE TITLE.
# XSESSION
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
# claudiux, 2022
#
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-02-04 19:37+0100\n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-applets/"
"issues\n"
"POT-Creation-Date: 2024-10-06 01:02+0200\n"
"PO-Revision-Date: 2023-12-28 08:51+0100\n"
"Last-Translator: Alan Mortensen <[email protected]>\n"
"Language-Team: \n"
Expand All @@ -18,71 +19,90 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.0.1\n"

#: applet.js:43
#. applet.js:45
msgid "Applet"
msgstr "Panelprogram"

#: applet.js:44
#. applet.js:46
msgid "Desklet"
msgstr "Skrivebordsprogram"

#: applet.js:45
#. applet.js:47
msgid "Extension"
msgstr "Udvidelse"

#: applet.js:48
#. applet.js:50
msgid "Applets"
msgstr "Panelprogrammer"

#: applet.js:49
#. applet.js:51
msgid "Desklets"
msgstr "Skrivebordsprogrammer"

#: applet.js:50
#. applet.js:52
msgid "Extensions"
msgstr "Udvidelser"

#: applet.js:93
#. applet.js:88
msgid "Middle-click: \n"
msgstr "Midterklik: \n"

#: applet.js:93 applet.js:165
#. applet.js:88 applet.js:141
msgid "Show .xsession-errors"
msgstr "Vis .xsession-errors"

#: applet.js:176
#. applet.js:152
msgid "Restart Cinnamon"
msgstr "Genstart Cinnamon"

#: applet.js:187
#. applet.js:166
msgid "--- Reload Spices ---"
msgstr "--- Genindlæs Spices ---"

#: applet.js:193
#. applet.js:172
msgid "Reload Applet:"
msgstr "Genindlæs panelprogram:"

#: applet.js:207
#. applet.js:187
msgid "Reload Desklet:"
msgstr "Genindlæs skrivebordsprogram:"

#: applet.js:221
#. applet.js:202
msgid "Reload Extension:"
msgstr "Genindlæs udvidelse:"

#: applet.js:235
#. applet.js:217
msgid "--- Settings for ---"
msgstr ""

#. applet.js:223
#, fuzzy
msgid "Applet:"
msgstr "Panelprogram"

#. applet.js:238
#, fuzzy
msgid "Desklet:"
msgstr "Skrivebordsprogram"

#. applet.js:253
#, fuzzy
msgid "Extension:"
msgstr "Udvidelse"

#. applet.js:268
msgid "--- View Code ---"
msgstr "--- Vis kode ---"

#: applet.js:241
#. applet.js:274
msgid "View Applet Code for:"
msgstr "Vis koden for panelprogrammet:"

#: applet.js:255
#. applet.js:289
msgid "View Desklet Code for:"
msgstr "Vis koden for skrivebordsprogrammet:"

#: applet.js:269
#. applet.js:304
msgid "View Extension Code for:"
msgstr "Vis koden for udvidelsen:"

Expand All @@ -91,10 +111,11 @@ msgid "Xsession"
msgstr "Xsession"

#. metadata.json->description
#, fuzzy
msgid ""
"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."
"Restart, access source code and configure your Spices (Applets, Desklets, "
"Extensions). View the contents of your .xsession-errors file in real time. "
"Restart Cinnamon."
msgstr ""
"Giver dig mulighed for at genstarte eller åbne kildekoden til Spices "
"(panelprogrammer, skrivebordsprogrammer, udvidelser), vise indholdet af din ."
Expand Down
Loading

0 comments on commit 3a6d74c

Please sign in to comment.