[beta] aurkonsult - Gui "aur explorer" for plasma

I present an aur-explorer gui, written in Qt for plasma (aurkonsult)
Some users run pamac gui only for consult aur ? :+1:

It uses the new aur database (so no banning of our IP)

This beta version (0.1.30) is not present in aur but PKGBUILD is available (makepkg -si -p PKGBUILD.git)

Config:

“new” aur proposes 2 databases. By default, this script uses the simple.

  • simple : 7Mb to download
  • extended: 9Mb - We have in addition dependencies. add --ext option

We can save database in:

  • /tmp/ or
  • ~/.cache/packages-meta{-ext}-v1.json

Use

  • First button “Update” (ctrl+u) : Load database from aur only if a new version is available (every 5 minutes)
  • “Packages” (ctrl+L) : the packages list
    • red: packages “out of date” in aur
    • green(if manjaro theme): new packages since last database update
  • “Check” (ctrl+c) : list of our installed aur packages (don’t test -git packages version !)
  • “New packages” (ctrl+n) : list of new packages since the last database update
  • “Info” : package details
  • “install”: only run konsole (no installation in gui! it’s an explorer only!)

multi drag&drop for console, browser (we can also drop in info and Install buttons)

  • default : yay -Si / or pamac info (if option --pamac)
  • ALT : pamac -S / pamac build
  • SHIFT : url project

ctrl++ or ctrl+- for Zoom +/-


Database is only saved in /tmp, so we download a new every day


check:

10 Likes

What’s this now?

warning: file '/home/yochanan/.local/share/packages-meta-v1.time' not found!

I tried editing a PKGBUILD, but it never did anything:

wget: https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=stretchly-bin

For the sake of reporting something, the tooltips on the buttons do not all have a starting capital letter, and also “new paquages” :rofl:

Teamviewer appears in red for the AUR version column, but it is same version as local column. Seems like a bug to me.

When I right click a package, I have the ‘Instal yay’ action, if I click it, it opens Konsole, nothing more.
When I click the Install button, the same, it opens Konsole.

I see this in the terminal output Warning: not possible to load konsole!

And I crashed it by clicking the Update button (from the check my aur ackages page)

:: Download Database... in /tmp/packages-meta-v1.json
Server: nginx
Date: Wed, 24 Nov 2021 17:17:07 GMT
Content-Type: application/gzip
Content-Length: 6834315
Last-Modified: Wed, 24 Nov 2021 17:14:08 GMT
Connection: close
ETag: "619e72e0-68488b"
Expires: Wed, 24 Nov 2021 17:22:07 GMT
Cache-Control: max-age=300
Content-Encoding: gzip
Accept-Ranges: bytes


expire: 2021-11-24 17:22:07
cache expire in: 0:04:59.909252
database is updated 200
loadPackages()

:: Load Database...
json to data duration: --- 0.7780141830444336 seconds ---
Traceback (most recent call last):
  File "/media/SSD_500Go/Downloads/aur-db.kde(1).py", line 475, in initStyleOption
    if pkg["LocalVersion"] == pkg["Version"]:
KeyError: 'LocalVersion'


When clicking update I do get crash too but different one related to my locale

Crash Traceback
Traceback (most recent call last):
  File "/home/arisa/Desktop/GIT/papajoke/main.py", line 618, in run
    old_locale = locale.getlocale(locale.LC_ALL)
  File "/usr/lib/python3.9/locale.py", line 592, in getlocale
    raise TypeError('category LC_ALL is not supported')
TypeError: category LC_ALL is not supported
zsh: abort (core dumped)  python main.py
command "locale"
locale: Cannot set LC_ALL to default locale: No such file or director
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME=en_DE.UTF-8
LC_COLLATE=en_DE.UTF-8
LC_MONETARY=en_DE.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT=en_DE.UTF-8
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

I have kinda messy locales yay but nothing else crashes because of it

Info button crashes too for me

Info button Traceback
Traceback (most recent call last):
  File "/home/arisa/Desktop/GIT/papajoke/main.py", line 808, in onInfo
    self.win.populate_Info(pkg)
  File "/home/arisa/Desktop/GIT/papajoke/main.py", line 1101, in populate_Info
    if pkg["PackageBase"] == pkg["Name"]:
KeyError: 'PackageBase'
zsh: abort (core dumped)  python main.py

when I force LC_ALL=“en_US.UTF-8” it crashes too with the same error as the person above

Traceback
/tmp/packages-meta-v1.json

:: Download Database... in /tmp/packages-meta-v1.json
database is updated 200
loadPackages()

:: Load Database...
json to data duration: --- 0.5571067333221436 seconds ---
Traceback (most recent call last):
  File "/home/arisa/Desktop/GIT/papajoke/main.py", line 476, in initStyleOption
    if pkg["LocalVersion"] == pkg["Version"]:
KeyError: 'LocalVersion'
zsh: abort (core dumped)  LC_ALL="en_US.UTF-8" python main.py
Install button log
New package since:  in 'highlight' color

loadPackages()

:: Load Database...
json to data duration: --- 0.6266999244689941 seconds ---
Deps filter: want: set() not: set()
search end: shi
Deps filter: want: set() not: set()
search end: shin
Deps filter: want: set() not: set()
search end: shiny
Go to: https://gitlab.com/Arisa_Snowbell/shiny-mirrors
Warning Dbus:  The name org.kde.klauncher5 was not provided by any .service files
Warning: not possible to load konsole!

Also maybe the Exit button is not necessary? As on most DE’s there is Window Decoration and almost all people have close button there

link is not related to the warning
app saves in this file the last update date: useful for the “New” button. It saves because the database is in /tmp so there is no way to find this date the next day.
There is a .time file for the 2 databases. only this is write in home

ls -l ~/.local/share/*.time
-rw-r--r-- 1 patrick users 10 24 nov.  13:18 /home/patrick/.local/share/packages-meta-ext-v1.time
-rw-r--r-- 1 patrick users 10 24 nov.  17:12 /home/patrick/.local/share/packages-meta-v1.time

EDIT: v0.1.13, now use ~/.cache/


Edit pkgbuild : I don’t know, it’s a dbus service that calls xdg-open (opens kate on my plasma)
xdg-utils not installed or a dbus module in python-qt5 ?

Ah, I see. Forgot to check that directory.

❯ ls -l ~/.local/share/*.time
.rw-r--r-- yochanan yochanan 10 B Wed Nov 24 09:54:57 2021  /home/yochanan/.local/share/packages-meta-v1.time

xdg-utils is indeed installed. I’m using GNOME, so there be may things to change so it’s more agnostic and not expecting to run on KDE.

no :wink: red is “out of date” as aur page

OK, me too, thanks
EDIT: fixed v0.1.13

Gratz, I say it’s about time we get something based on Qt at last ! (pamac :eyes: cough cough!)

P.S. Please make it as hardcore-dependant on KDE as possible, I already am sending notice to KaOS devs for further… collaborations. :stuck_out_tongue_winking_eye:

EDIT: fixed v0.1.13


ok, tanks, database is not fixed, at me to test if PackageBase exists (is not in all items)
EDIT: fixed v0.1.13


Yes, is for plasma :wink: here dbus run org.kde.klauncher5 for load application
you use plasma ?

EDIT:

qdbus | grep org.kde

we have org.kde.klauncher5 , not you ?

1 Like

I am using Plasma KDE

It seems I don’t have klauncher5

new version 0.1.21 (nothing visible :upside_down_face:)

  • core has been rewritten: less bug and code more clear for me - And use less memory
  • not use dbus for edit PKGBUILD
  • .time files are now written in ~/.cache/
  • multi drag&drop for console, browser (we can also drop in info and Install buttons)
    • default : yay -Si / or pamac info (if option --pamac)
    • ALT : pamac -S / pamac build
    • SHIFT : url project

Note: in “detail package information” we can go through the current list (useful ? not, but for dev is good)

  • select “Name” field et use UP or DOWN keyboard key

EDIT new 0.1.22 : speed…speed and speed :wink:

1 Like

Good work, it doesn’t crash for me anymore anywhere and almost everything works as it should,
the only problem I am still having is the install button, at the moment it doesn’t anymore write klauncher5 doesn’t exist but “Error: not possible to load konsole!” and it opens Konsole but nothing else, it’s empty, no command written or launched

Make test from kde iso …

All is good, no packages installed (pyqt5 installed by manjaro-printer), no changes in plasma or konsole config
Dbus command for konsole is ok (no konsole open before test)

we receive a normal security notification :wink: (for konsole, manjaro and achlinux stable, it’s ok)
test : x11, wayland is more strict for security but i not have card for test


ps: if send command by dbus not work (??), we have drag&drop (with alt for install)

What is “Install yay” supposed to do when we right click a package?

To me it opens Konsole, that’s all.

As screenshot :wink: (oops, typo error “–as-deps” fixed):

  • open konsole AND (sometime :hot_face:)
  • only write in console “yay -S package --asdeps” or “pamac build package” (write but not validate command !)

We have same thing with drag & drop (alt: install or default: -S )


It is an aur explorer and in no way, intended to install itself
Maybe the “install” button and context menu is too much for this app …


EDIT:
fised - thanks to @omano, now app can load konsole and send commands