removing fpakman strings

This commit is contained in:
Vinicius Moreira
2019-08-17 12:11:47 -03:00
parent 5a82b6ee38
commit c9d97c3601
6 changed files with 42 additions and 178 deletions

View File

@@ -4,138 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [1.0.0] ## [0.5.1] - 2019-08-12
### Improvements
- the app is now modularized: **fpakman** (GUI), **fpakman_api** (set of abstraction classes to extend), **fpakman_flatpak** (adds support for Flatpaks), **fpakman_snap** (adds support for Snaps)
### Comments
- env variables / arguments FPAKMAN_SNAP / FPAKMAN_FLATPAK were removed. To disable a supported type, just uninstall its module.
## [0.5.1]
### Improvements: ### Improvements:
- suggestions are now retrieved asynchronously taking 45% less time. - suggestions are now retrieved asynchronously taking 45% less time.
- search response takes an average of 20% less time ( reaching 35% for several results ) - search response takes an average of 20% less time ( reaching 35% for several results )
- app boot takes 98% less time when snapd is installed, but disabled - app boot takes 98% less time when snapd is installed, but disabled
- FPAKMAN_TRAY (--tray) is not enabled by default (0). - BAUH_TRAY (--tray) is not enabled by default (0).
### Fixes ### Fixes
- not showing correctly the latest flatpak app versions when bringing the search results - not showing correctly the latest flatpak app versions when bringing the search results
- [flatpak dependency](https://github.com/vinifmor/fpakman/issues/36) - flatpak client dependency
## [0.5.0] - 2019-08-06
### Improvements
- search results sorting takes an average of 35% less time, reaching 60% in some scenarios
- app boot takes an average of 80% less time
- installed / uninstalled icons replaced by install / uninstall button
- check update button design changed
- app information is now available through an "Info" button
- app extra actions are now available through a "Settings" button instead of a right-click
- a confirmation popup is shown when the "install" / "upgrade all" button is clicked
- "About" icon added to the manage panel
- "Updates" icon left-aligned
- show application suggestions when no app is installed. Can be enabled / disabled through the environment variable / parameter FPAKMAN_SUGGESTIONS (--sugs)
- showing a warning popup after initialization when no Flatpak remotes are set
- new environment variable / argument to enable / disable the tray icon and update-check daemon: FPAKMAN_TRAY (--tray)
- minor GUI improvements
### Fixes:
- apps table not showing empty descriptions
- replacing default app icons by null icons
- maximized window resize fix when filtering apps
- changing table state after retrieving app history / information or an error happens
- i18n
### Comments:
- not adding Flatpak default remote (flathub) when initializing. It requires root actions, and will be addressed in a different way in future releases.
## [0.4.2] - 2019-07-28
### Improvements
- showing a warning dialog when the application starts and **snapd** is unavailable
### Fixes:
- [Snaps read index error](https://github.com/vinifmor/fpakman/issues/30)
## [0.4.1] - 2019-07-25
### Improvements
- retrieving some Snaps data (icon, description and confinement) through Ubuntu API instead of Snap Store
### Fixes:
- not showing app disk cached description when listing installed apps
- not updating disk cached data of installed apps
## [0.4.0] - 2019-07-25
### Features
- supporting snaps
- search filters by application type and updates
- "Refresh" option when right-clicking an installed snap application (see **Comments**)
- snap / flatpak usage can be enabled / disabled via this new environment variables and arguments: FPAKMAN_FLATPAK (--flatpak), FPAKMAN_SNAP (--snap)
### Improvements
- automatically shows all updates after refreshing
- more accurate search results.
- system notifications when an application is installed, removed or downgraded. Also when an error occurs.
- showing management panel when right-clicking the tray icon.
- "Updates" label replaced by an exclamation icon and moved to the right.
- new environments variables / arguments associated with performance: FPAKMAN_DOWNLOAD_ICONS (--download-icons), FPAKMAN_CHECK_PACKAGING_ONCE (--check-packaging-once)
- minor GUI improvements
### Comments
- currently snap daemon (2.40) automatically upgrades your installed applications in background. Although it's possible to check for new updates
programmatically, it requires root access and would mess up with the user experience if every 5 minutes the application asked for the password. But not to let the
user with empty hands, it was added a "Refresh" option when right-clicking an installed snap application. It will update the application if its not already updated by the daemon.
## [0.3.1] - 2019-07-13
### Improvements
- Console output now is optional and not shown by default
- Search bar is cleaned when 'Refresh' is clicked
- Full Flatpak database is not loaded during initialization: speeds up the process and reduces memory usage
- Applications data not available offline are now retrieved from Flathub API on demand and cached in memory and disk (only installed)
- In-memory cached data have an expiration time and are cleaned overtime to reduce memory usage
- Code was refactored to support other types of packaging in the future (e.g: snap)
- flatpak is not a requirement anymore
- the amount of columns of the applications table was reduced to improve the user experience
- new environment variables and arguments: FPAKMAN_ICON_EXPIRATION (--icon-exp), FPAKMAN_DISK_CACHE (--disk-cache)
- minor GUI improvements
### Fixes:
- flatpak 1.0.X: search is now retrieving the application name
- app crashes when there is no internet connection while initializing, downgrading or retrieving app history
## [0.3.0] - 2019-07-02
### Features
- Applications search
- Now when you right-click a selected application you can:
- retrieve its information
- retrieve its commit history
- downgrade
- install and uninstall it
- "About" window available when right-clicking the tray icon.
### Improvements
- Performance and memory usage
- Adding tooltips to toolbar buttons
- "Update ?" column renamed to "Upgrade ?"
- Management panel title renamed
- Showing runtime apps when no app is available
- Allowing to specify a custom app translation with the environment variable **FPAKMAN_LOCALE**
- Adding expiration time for cached app data. Default to 1 hour. The environment variable **FPAKMAN_CACHE_EXPIRATION** can change this value.
- Now the application accepts arguments related to environment variables as well. Check 'README.md'.
- Minor GUI improvements
- Notifying only new updates
- New icon
- Progress bar
## [0.2.1] - 2019-06-24
### Features
- Showing the number of apps and runtime updates available
### Fixes
- Retrieving information for the same AppId from different branches.
## [0.2.0] - 2019-06-18
### Features
- Management panel shows update commands streams
- Management panel status label is "orange" now
### Fixes
- Application name is not properly showing for Flatpak 1.2.X
## [0.1.0] - 2019-06-14
### Features
- System tray icon.
- Applications management window.
- Support for the following locales: PT, EN, ES.
- System notification for new updates.
- Update applications.

View File

@@ -1,4 +1,4 @@
Copyright (c) 2017-2019 Vinícius Moreira Copyright (c) 2019-2020 Vinícius Moreira
zlib/libpng license zlib/libpng license

View File

@@ -1,2 +1,2 @@
include requirements.txt include requirements.txt
recursive-include fpakman/resources * recursive-include bauh/resources *

View File

@@ -1,6 +1,6 @@
## fpakman ## bauh
Non-official graphical user interface for Flatpak / Snap application management. It is a tray icon that let the user known when new updates are available and Non-official graphical user interface for Flatpak / Snap application management (old **fpakman**). It is a tray icon that let the user known when new updates are available and
an application management panel where you can search, update, install and uninstall applications. an application management panel where you can search, update, install and uninstall applications.
### Developed with: ### Developed with:
@@ -17,32 +17,15 @@ an application management panel where you can search, update, install and uninst
- python-pip - python-pip
- python-pyqt5 - python-pyqt5
### Modularization
**fpakman** is divided into:
* Base modules:
**fpakman** -> is the GUI.
**fpakman_api** -> set of abstraction classes to extend and provide new packaging types support for the **fpakman**.
* Extensions:
**fpakman_flatpak** -> adds support for Flatpak applications
**fpakman_snap** -> adds support for Snap applications
...
The extension modules are optional. You can install only the ones you want **fpakman** to work with.
### Distribution ### Distribution
**PyPi** **PyPi**
``` ```
sudo pip3 install fpakman sudo pip3 install bauh
```
Optional (extensions):
```
sudo pip3 install fpakman_snap fpakman_flatpak
``` ```
**AUR** **AUR**
As **fpakman**. There is also a staging version of **fpakman** (**fpakman-staging**) but is intended for testing and may not work properly.
As **bauh** package. There is also a staging version (**bauh-staging**) but is intended for testing and may not work properly.
### Manual installation: ### Manual installation:
@@ -50,30 +33,35 @@ If you prefer a manual and isolated installation, type the following commands wi
``` ```
python3 -m venv env python3 -m venv env
env/bin/pip install . env/bin/pip install .
env/bin/fpakman env/bin/bauh
``` ```
### Autostart ### Autostart
In order to autostart the application, use your Desktop Environment settings to register it as a startup application / script ("fpakman"). In order to autostart the application, use your Desktop Environment settings to register it as a startup application / script (**bauh --tray=1**).
### Settings ### Settings
You can change some application settings via environment variables or arguments (type ```fpakman --help``` to get more information). You can change some application settings via environment variables or arguments (type ```bauh --help``` to get more information).
- **FPAKMAN_UPDATE_NOTIFICATION**: enable or disable system updates notifications. Use **0** (disable) or **1** (enable, default). - **BAUH_UPDATE_NOTIFICATION**: enable or disable system updates notifications. Use **0** (disable) or **1** (enable, default).
- **FPAKMAN_CHECK_INTERVAL**: define the updates check interval in seconds. Default: 60. - **BAUH_CHECK_INTERVAL**: define the updates check interval in seconds. Default: 60.
- **FPAKMAN_LOCALE**: define a custom app translation for a given locale key (e.g: 'pt', 'en', 'es', ...). Default: system locale. - **BAUH_LOCALE**: define a custom app translation for a given locale key (e.g: 'pt', 'en', 'es', ...). Default: system locale.
- **FPAKMAN_CACHE_EXPIRATION**: define a custom expiration time in SECONDS for cached API data. Default: 3600 (1 hour). - **BAUH_CACHE_EXPIRATION**: define a custom expiration time in SECONDS for cached API data. Default: 3600 (1 hour).
- **FPAKMAN_ICON_EXPIRATION**: define a custom expiration time in SECONDS for cached icons. Default: 300 (5 minutes). - **BAUH_ICON_EXPIRATION**: define a custom expiration time in SECONDS for cached icons. Default: 300 (5 minutes).
- **FPAKMAN_DISK_CACHE**: enables / disables disk cache. When disk cache is enabled, the installed applications data are loaded faster. Use **0** (disable) or **1** (enable, default). - **BAUH_DISK_CACHE**: enables / disables disk cache. When disk cache is enabled, the installed applications data are loaded faster. Use **0** (disable) or **1** (enable, default).
- **FPAKMAN_DOWNLOAD_ICONS**: Enables / disables app icons download. It may improve the application speed depending on how applications data are being retrieved. Use **0** (disable) or **1** (enable, default). - **BAUH_DOWNLOAD_ICONS**: Enables / disables app icons download. It may improve the application speed depending on how applications data are being retrieved. Use **0** (disable) or **1** (enable, default).
- **FPAKMAN_CHECK_PACKAGING_ONCE**: If the available supported packaging types should be checked ONLY once. It improves the application speed if enabled, but can generate errors if you uninstall any packaging technology while using it, and every time a supported packaging type is installed it will only be available after a restart. Use **0** (disable, default) or **1** (enable). - **BAUH_FLATPAK**: enables / disables flatpak usage. Use **0** (disable) or **1** (enabled, default)
- **FPAKMAN_TRAY**: If the tray icon and update-check daemon should be created. Use **0** (disable, default) or **1** (enable). - **BAUH_SNAP**: enables / disables snap usage. Use **0** (disable) or **1** (enabled, default)
- **FPAKMAN_SUGGESTIONS**: If application suggestions should be displayed if no app is installed (runtimes do not count as apps). Use **0** (disable) or **1** (enable, default). - **BAUH_CHECK_PACKAGING_ONCE**: If the available supported packaging types should be checked ONLY once. It improves the application speed if enabled, but can generate errors if you uninstall any packaging technology while using it, and every time a supported packaging type is installed it will only be available after a restart. Use **0** (disable, default) or **1** (enable).
- **BAUH_TRAY**: If the tray icon and update-check daemon should be created. Use **0** (disable, default) or **1** (enable).
- **BAUH_SUGGESTIONS**: If application suggestions should be displayed if no app is installed (runtimes do not count as apps). Use **0** (disable) or **1** (enable, default).
### How to improve the application performance ### How to improve the application performance
- If you don't care about restarting **fpakman** every time a new supported packaging technology is installed, set "check-packaging-once=1" (**fpakman --check-packaging-once=1**). This can reduce the application response time up to 80% in some scenarios, since it won't need to recheck if the packaging type is available for every action you request. - If you don't care about a specific packaging technology and don't want the app to deal with it, just disable it via the specific argument or environment variable. For instance, if I don't care
- If you don't mind to see the applications icons, you can set "download-icons=0" (**fpakman --download-icons=0**). The application may have a slight response improvement, since it will reduce the parallelism within it. about **snaps**, I can initialize the application setting "snap=0" (**bauh --snap=0**). This will improve the application response time, since it won't need to do any verifications associated
- If you don't mind app suggestions, disable it (**fpakman --sugs=0**) with the technology that I don't care every time an action is executed.
- If you don't care about restarting the app every time a new supported packaging technology is installed, set "check-packaging-once=1" (**bauh --check-packaging-once=1**). This can reduce the application response time up to 80% in some scenarios, since it won't need to recheck if the packaging type is available for every action you request.
- If you don't mind to see the applications icons, you can set "download-icons=0" (**bauh --download-icons=0**). The application may have a slight response improvement, since it will reduce the parallelism within it.
- If you don't mind app suggestions, disable it (**bauh --sugs=0**)
### Roadmap ### Roadmap
- Support for other packaging technologies - Support for other packaging technologies

View File

@@ -5,8 +5,8 @@ from PyQt5.QtWidgets import QVBoxLayout, QDialog, QLabel
from bauh import __version__, __app_name__ from bauh import __version__, __app_name__
from bauh.core import resource from bauh.core import resource
PROJECT_URL = 'https://github.com/vinifmor/fpakman' PROJECT_URL = 'https://github.com/vinifmor/' + __app_name__
LICENSE_URL = 'https://raw.githubusercontent.com/vinifmor/fpakman/master/LICENSE' LICENSE_URL = 'https://raw.githubusercontent.com/vinifmor/{}/master/LICENSE'.format(__app_name__)
class AboutDialog(QDialog): class AboutDialog(QDialog):

View File

@@ -1,3 +1,4 @@
import os import os
from setuptools import setup, find_packages from setuptools import setup, find_packages
@@ -7,7 +8,8 @@ DESCRIPTION = (
AUTHOR = "Vinicius Moreira" AUTHOR = "Vinicius Moreira"
AUTHOR_EMAIL = "vinicius_fmoreira@hotmail.com" AUTHOR_EMAIL = "vinicius_fmoreira@hotmail.com"
URL = "https://github.com/vinifmor/fpakman" NAME = 'bauh'
URL = "https://github.com/vinifmor/" + NAME
file_dir = os.path.dirname(os.path.abspath(__file__)) file_dir = os.path.dirname(os.path.abspath(__file__))
@@ -15,12 +17,12 @@ with open(file_dir + '/requirements.txt', 'r') as f:
requirements = [line.strip() for line in f.readlines() if line] requirements = [line.strip() for line in f.readlines() if line]
with open(file_dir + '/fpakman/__init__.py', 'r') as f: with open(file_dir + '/{}/__init__.py'.format(NAME), 'r') as f:
exec(f.readlines()[0]) exec(f.readlines()[0])
setup( setup(
name="fpakman", name=NAME,
version=eval('__version__'), version=eval('__version__'),
description=DESCRIPTION, description=DESCRIPTION,
long_description=DESCRIPTION, long_description=DESCRIPTION,
@@ -29,11 +31,11 @@ setup(
python_requires=">=3.5", python_requires=">=3.5",
url=URL, url=URL,
packages=find_packages(), packages=find_packages(),
package_data={"fpakman": ["resources/locale/*", "resources/img/*"]}, package_data={NAME: ["resources/locale/*", "resources/img/*"]},
install_requires=requirements, install_requires=requirements,
entry_points={ entry_points={
"console_scripts": [ "console_scripts": [
"fpakman=fpakman.app" "{name}={name}.app".format(name=NAME)
] ]
}, },
include_package_data=True, include_package_data=True,