Go to file
Giuseppe Speranza 22a4f56832
pages.rs: fix run of orphans packages (#53)
* pages.rs: fix run of orphans packages

This avoid "error: no targets specified (use -h for help)" when `pacman -Qtdq` is empty.

`pacman -Qtdq` can be started without root, and has a return value other than 0 if it finds no packages.
So if it finds packages, it succeeds and goes to the true condition that it deletes packages.
Otherwise do echo. (echo doesn't require root)

Signed-off-by: Peppe289 <gsperanza204@gmail.com>

* pages.rs: format with rustfmt

Signed-off-by: Peppe289 <gsperanza204@gmail.com>

* 👷 use msg dialog to inform user; use Exec::cmd

---------

Signed-off-by: Peppe289 <gsperanza204@gmail.com>
Co-authored-by: Vladislav Nepogodin <nepogodin.vlad@gmail.com>
2023-03-13 03:38:13 +04:00
.github 🔧 Update CI 2022-12-29 22:41:03 +04:00
.tx 🎉 initial commit 2021-09-16 02:07:24 +04:00
build-aux Rewrite in Rust 2022-06-02 01:23:20 +04:00
data 🧹 cleanup 2023-02-18 20:58:37 +04:00
hooks Rewrite in Rust 2022-06-02 01:23:20 +04:00
icons 🚧 add new options & fix icons 2022-07-06 01:32:23 +04:00
po Rewrite in Rust 2022-06-02 01:23:20 +04:00
src pages.rs: fix run of orphans packages (#53) 2023-03-13 03:38:13 +04:00
ui 👷 add more ids for styling 2023-02-19 01:10:10 +04:00
utils 🚧 update 2021-09-21 03:46:45 +04:00
.gitignore Rewrite in Rust 2022-06-02 01:23:20 +04:00
Cargo.lock 🔖 Bump version 2023-02-19 01:53:00 +04:00
Cargo.toml 🔖 Bump version 2023-02-19 01:53:00 +04:00
LICENSE 🎉 initial commit 2021-09-16 02:07:24 +04:00
cachyos-hello.desktop 🚧 add new options & fix icons 2022-07-06 01:32:23 +04:00
cachyos-welcome.gresource.xml 🧹 cleanup 2023-02-18 20:58:37 +04:00
meson.build 🔖 Bump version 2023-02-19 01:53:00 +04:00
meson_options.txt Rewrite in Rust 2022-06-02 01:23:20 +04:00
postinstall.sh 🧹 cleanup 2023-02-19 01:50:26 +04:00
rustfmt.toml Rewrite in Rust 2022-06-02 01:23:20 +04:00