Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ImgBot] Optimize images #1

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
210 changes: 4 additions & 206 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# arch-update
Update indicator for Arch Linux and GNOME Shell
# crystal-update
Update indicator for Crystal Linux and GNOME Shell

## Warning for Gnome 42
Default update command tries to run "gnome-terminal".
Expand All @@ -20,215 +20,13 @@ It's on extensions.gnome.org :
https://extensions.gnome.org/extension/1010/archlinux-updates-indicator/

## Install from AUR
Thanks to michiwend you can install it from Arch Linux User Repository : gnome-shell-extension-arch-update
Thanks to michiwend you can install it from Crystal Linux User Repository : gnome-shell-extension-arch-update
https://aur.archlinux.org/packages/gnome-shell-extension-arch-update/

## Manual install
To install, simply download as zip and unzip contents in ~/.local/share/gnome-shell/extensions/arch-update@RaphaelRochet

## Changes

### v49
- "Fix 'Strip version numbers' nor working with old behavior

### v48
- Added translation : hungarian
- Fix Inconsistent icon theme
- Add basic parsing to tell updates and titles apart; also increase readibility in menu
- Now "strip version number" can be applied to indicator menu or notifications

### v47
- Gnome 42
- Fix deprectated option in default commandline

### v46
- Updated translation : Brazilian Portuguese
- Added translation : Occitan
- Fixed indicator not shown if in error state (#178)

### v45
- Fixed an error on unloading introduced in v44

### v44
- Minor refactoring

### v43
- Gnome 41
- New translations : Dutch, Korean, Ukrainian
- Updated translations : Simplified Chinese, Russian

### v42
- Updated translation : German

### v41
- Fixed metadata for extensions website

### v40
- Gnome 40 only
- Updated translation : Russian

### v39
- Fixed update list empty after suspend
- Fixed update list not fully visible when lots of updates
- Updated translations : Chinese and Spanish

### v38
- Fixed crash about Gtk.IconTheme.get_defaults
- Added indicator position setting

### v37
- Theme support is back ! Also an option to force built-in icons if needed.

### v36
- Gnome 3.36.1 only
- Fixed open prefs from menu

### v35
- Gnome 3.36 only
- Fixed a warning about absolete call

### v34
- Gnome 3.36
- New translation : Swedish
- Updated translations : Italian, German

### v33
- Removed deprecated code
- Removed support for older GS

### v32
- Gnome 3.34

### v31
- Updated translation : Turkish

### v30
- Gnome 3.32

### v29
- Update translation : Romanian
- Applied French translation to all French

### v28
- Gnome 3.30
- New translation : Esperanto
- New translation : Finnish
- Updated translation : Brazilian
- Fix indicator alignment
- Fix some errors that could quickly fill log

### v27
- Added info about pacman-contrib for checkupdates script
- New translation : Estonian
- Updated translation : Romanian

### v26
- Gnome 3.28
- New translation : Hebrew
- Update translation : Spanish

### v25
- Added optional package manager menu entry
- Added requirements in readme
- Updated Slovak translation
- Updated Italian translation
- Fixed a JS Warning
- Fixed a bug that crashes Gnome-SHELL on update

### v24
- Gnome 3.26
- Updated Romanian translation

### v23
- Updated translation : Arabic

### v22
- Updated translation : Serbian
- New translation : Turkish

### v21
- Gnome 3.24
- New translation : Persian

### v20
- Translations updates (German, Spanish)

### v19
- Ability to cancel checking
- New translation : Catalan
- Updated translations : Spanish, Brazilian

### v18
- Gnome 3.22
- New preferences window
- Cleaner translations (some text are not translated yet)
- Menu does not close when updating

### v17
- New translation : Russian
- Updated translation : Czech

### v16
- Add vertical scroll bar on preferences window

### v15
- New feature : auto-expand update list
- New translation : Norwegian Bokmal
- Updated translation : Brazilian Portuguese

### v14
- Gnome 3.20 compatibility

### v13
- New translation : Serbian (sr and sr@latin)
- Updated translation : Spanish
- Minor bug fix

### v12
- New translation : Chinese
- Updated translation : Czech

### v11
- New option to strip out version numbers
- New translations : Slovak and Arabic
- Updated translations : Brazilian Portuguese, German

### v10
- Licence added : GNU GPL v3
- Updated translations : Polish and Brazilian portuguese

### v9
- Added option to change command used to check for updates (for advanced users)
- Added Romanian and Polish translations

### v8
- Added Italian language

### v7
- Added Brazilian Portuguese translation

### v6
- Added Spanish language

### v5
- Option to have permanent notifications
- Asynchronous checking - No more 1 sec Shell freeze during updates check !
- 'Updates pending' menu item can now be expanded to show updates list
- Option to only list new updates in notifications
- Aded "Update Now" action button on notifications

### v4
- Run update command from indicator
- Autodetect when updates are done
- Prefs dialog reworked

### v3
- Notification option
- Czech and German languages added

## Credits
All icons are based on Thayer Williams' Archer logo, winner of Arch Linux logo contest.

## Credit
Some portions of the extension were inspired from Touchad Indicator and Lock keys.
https://github.com/orangeshirt/gnome-shell-extension-touchpad-indicator
https://github.com/kazysmaster/gnome-shell-extension-lockkeys
22 changes: 11 additions & 11 deletions extension.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/*
This file is part of Arch Linux Updates Indicator
This file is part of Crystal Linux Updates Indicator

Arch Linux Updates Indicator is free software: you can redistribute it and/or modify
Crystal Linux Updates Indicator is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Arch Linux Updates Indicator is distributed in the hope that it will be useful,
Crystal Linux Updates Indicator is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Arch Linux Updates Indicator. If not, see <http://www.gnu.org/licenses/>.
along with Crystal Linux Updates Indicator. If not, see <http://www.gnu.org/licenses/>.

Copyright 2016-2022 Raphaël Rochet
*/
Expand Down Expand Up @@ -53,7 +53,7 @@ let CHECK_INTERVAL = 60*60; // 1h
let NOTIFY = false;
let HOWMUCH = 0;
let TRANSIENT = true;
let UPDATE_CMD = "gnome-terminal -- /bin/sh -c \"sudo pacman -Syu ; echo Done - Press enter to exit; read _\" ";
let UPDATE_CMD = "gnome-terminal -- /bin/sh -c \"ame upg ; echo Done - Press enter to exit; read _\" ";
let CHECK_CMD = "/usr/bin/checkupdates";
let MANAGER_CMD = "";
let PACMAN_DIR = "/var/lib/pacman/local";
Expand All @@ -73,7 +73,7 @@ function init() {
ExtensionUtils.initTranslations("arch-update");
}

const ArchUpdateIndicator = GObject.registerClass(
const CrystalUpdateIndicator = GObject.registerClass(
{
_TimeoutId: null,
_FirstTimeoutId: null,
Expand All @@ -82,7 +82,7 @@ const ArchUpdateIndicator = GObject.registerClass(
_updateProcess_pid: null,
_updateList: [],
},
class ArchUpdateIndicator extends PanelMenu.Button {
class CrystalUpdateIndicator extends PanelMenu.Button {

_init() {
super._init(0);
Expand Down Expand Up @@ -367,13 +367,13 @@ class ArchUpdateIndicator extends PanelMenu.Button {
if (updateList.length > 0) {
// Show notification only if there's new updates
this._showNotification(
Gettext.ngettext( "New Arch Linux Update", "New Arch Linux Updates", updateList.length ),
Gettext.ngettext( "New Crystal Linux Update", "New Crystal Linux Updates", updateList.length ),
updateList.join(', ')
);
}
} else {
this._showNotification(
Gettext.ngettext( "New Arch Linux Update", "New Arch Linux Updates", updatesCount ),
Gettext.ngettext( "New Crystal Linux Update", "New Crystal Linux Updates", updatesCount ),
Gettext.ngettext( "There is %d update pending", "There are %d updates pending", updatesCount ).format(updatesCount)
);
}
Expand Down Expand Up @@ -550,8 +550,8 @@ class ArchUpdateIndicator extends PanelMenu.Button {
let archupdateindicator;

function enable() {
archupdateindicator = new ArchUpdateIndicator();
Main.panel.addToStatusArea('ArchUpdateIndicator', archupdateindicator);
archupdateindicator = new CrystalUpdateIndicator();
Main.panel.addToStatusArea('CrystalUpdateIndicator', archupdateindicator);
archupdateindicator._positionChanged();
}

Expand Down
Loading