aarnt / octoxbps

A Qt-based XBPS front end
GNU General Public License v2.0
73 stars 10 forks source link

New release #8

Closed notramo closed 4 years ago

notramo commented 4 years ago

I see a lot of activity on the master branch, but the latest release was in 2016 (and Void Linux still ships that version).

mobinmob commented 4 years ago

I have a template for current master (c6b8669) as v. 0.2.3 : https://github.com/mobinmob/void-packages/tree/octoxbps for anyone who wants to test it. It is working fine for me :)

AngryPhantom commented 4 years ago

@mobinmob I'm sorry, I'm still learning Void but how do I launch octoxbps with admin rights? If I run it with sudo I get this error.

AngryPhantom commented 4 years ago

@mobinmob Oops, my bad... I have version 0.2.2 for some reason. I've followed the xbps-src instructions:

$ git clone git://github.com/void-linux/void-packages.git $ cd void-packages $ ./xbps-src binary-bootstrap $ ./xbps-src pkg octoxbps And then: sudo xbps-install --repository hostdir/binpkgs octoxbps

What am I doing wrong? And sorry for my noob questions :(

mobinmob commented 4 years ago

@mobinmob I'm sorry, I'm still learning Void but how do I launch octoxbps with admin rights? If I run it with sudo I get this error.

You are not supposed to run octoxbps with admin rights. You run it as a user and it uses a su/sudo frontend for privilege elevation. That is why I suggested kdesu.

AngryPhantom commented 4 years ago

I can't figure out why it pulled the previous version. See my comment above, please.

mobinmob commented 4 years ago

@AngryPhantom : 2.2 is the latest released version. I have a template for the master in my repo/fork, not the official one.

AngryPhantom commented 4 years ago

@mobinmob Oh, I see... And how can I use it? Simply git clone your repo?

mobinmob commented 4 years ago

$ git clone https://github.com/mobinmob/void-packages $ cd void-packages $ ./xbps-src binary-bootstrap $ git checkout octoxbps $ ./xbps-src pkg octoxbps And then: $ xi octoxbps xi is from the xtools package.

AngryPhantom commented 4 years ago

Thanks, man! Now it works as expected (asking for pass when installing packages).

Offtopic: At first I didn't understand you and tried to install the very package with 'sudo xi octoxbps-0.2.3_2.x86_64.xbps' and got an error that this package was not found in repository pool. But then I searched Void docs and found out that it's meant to 'install a package into a repo', nothing more. So, the question: is it really impossible in Void to install a package as it is (not from any local/online repo)? Assuming that I installed Void on another machine and have just this one package. No?

mobinmob commented 4 years ago

Thanks, man! Now it works as expected (asking for pass when installing packages).

;) The octoxbps-sudo helper and the integrated terminal is really nice.

Offtopic: At first I didn't understand you and tried to install the very package with 'sudo xi octoxbps-0.2.3_2.x86_64.xbps' and got an error that this package was not found in repository pool. But then I searched Void docs and found out that it's meant to 'install a package into a repo', nothing more. So, the question: is it really impossible in Void to install a package as it is (not from any local/online repo)? Assuming that I installed Void on another machine and have just this one package. No?

If you are asking for just the package directly (like pacman -U package or gdebi package) the answer is no. xbps needs repo metadata to work but it is extremely easy to create them with xbps-rindex. In fact, xbps-src creates repo metadata/repos with xbps-rindex per git branch. Your octoxbps package is in such a repo (hostdir/binpkgs/octoxbps).

AngryPhantom commented 4 years ago

@mobinmob Thank you!

AngryPhantom commented 4 years ago

@aarnt Is it possible to disable searching for packages while typing in octxbps? I mean, it's a bit heavy on CPU resources and when I type something it freezes for a second before I type another letter. Really annoying. Or just tell me what do I have to change in the code myself, please. I'd like to type some letters and then hit enter. Honestly I don't understand why because the simplest script like this one:

xbps-query -Rs "" | cut --delimiter " " --fields 1-2 | fzf --multi --exact --cycle --reverse --preview 'xbps-query -R {2}'

is fast as a lightning actually. Is it really that Qt is the culprit or what?..

Thank you.

aarnt commented 4 years ago

Hi @AngryPhantom You can can uncheck Search/Use Instant Search for that. And you are right it is heavy on 12k packages. Maybe there is something that could be implemented to fix.

AngryPhantom commented 4 years ago

@aarnt

Search/Use Instant Search

Omg, I went blind for a moment probably. Was looking for some Preferences and/or options for that.

Thank you and sorry for bothering. Awesome tool. Keep up the good work. Cheers!

aarnt commented 4 years ago

@AngryPhantom :-)

AngryPhantom commented 4 years ago

What I meant is that this script is fast as hell when you type anything: xbps-query -Rs "" | cut --delimiter " " --fields 1-2 | fzf --multi --exact --cycle --reverse --preview 'xbps-query -R {2}' The same package database. Strange.

aarnt commented 4 years ago

@AngryPhantom But just out of curiosity. Are you using Search by description or search by name in OctoXBPS? Moreover, what's your CPU? Here I have a 11 year old CPU running VoidLinux in VM. Search by description is slow but search by name not exactly.

AngryPhantom commented 4 years ago

@aarnt By name. When I type anything I can see that both CPU cores are like 50% in my conky monitor. And it 'freezes' after every letter which is not the case with the script. CPU: AMD Athlon II X2 245

notramo commented 4 years ago

@aarnt Don't forget the original topic of this issue.

AngryPhantom commented 4 years ago

@mobinmob Sorry for bothering, I have another tiny question: what should I do if I want to edit the sources and then rebuild the package? I mean what should be done between (or instead of) these steps:

$ ./xbps-src binary-bootstrap
$ ./xbps-src pkg octoxbps

If I understand correctly the latter command just does everything and won't let me intrude and edit the sources before building, right?

mobinmob commented 4 years ago

Just edit the template in srcpkgs/octoxbps/template Please use my forked repo or even my email for further questions.

AngryPhantom commented 4 years ago

@mobinmob Can't find your email...

notramo commented 4 years ago

@aarnt Is there any reason that prevents releasing a new version?

aarnt commented 4 years ago

@notramo

Pending code adaptation for Qt 5.15.

Kelvino9 commented 4 years ago

Looking forward to the new release although OctoXBPS 0.2.2 does its job pretty well on my Xfce, KDE and Mate machines. Using OctoXBPS for daily system update notifications and it overall adds a lot of usability to a graphical user experience.

aarnt commented 4 years ago

@Kelvino9 You're right. Xbps is a very competent pkgman but the fact It ships with many executables can be daunting to new users.

Kelvino9 commented 4 years ago

That's true. I had to fiddle around for a while to make OctoXBPS work as intended on Xfce and Mate. On KDE it almost or immediately worked out of the box. Can't remember anymore.

The system update notification is awesome although I couldn't figure out how to avoid entering a password for a repo sync.

aarnt commented 4 years ago

@Kelvino9 Don't worry, those issues will be fixed in 0.3.0. No password for notifier syncing and no kde/gnome/lxqt dependencies to get root privileges anymore.

Kelvino9 commented 4 years ago

Thanks @aarnt! That's amazing news.

aarnt commented 4 years ago

v0.3.0 released!

testbird commented 3 years ago

You can can uncheck Search/Use Instant Search for that. And you are right it is heavy on 12k packages. Maybe there is something that could be implemented to fix.

Unnecessary load might be avoidable by only starting a search after getting the second character, and setting a timeout after each typed character to 1000-<number-of-chars*200)ms.