Package Details: plasma-desktop-git 6.0.80_r11524.gf3a8cd50e-1

Git Clone URL: https://aur.archlinux.org/plasma-desktop-git.git (read-only, click to copy)
Package Base: plasma-desktop-git
Description: KDE Plasma Desktop
Upstream URL: https://kde.org/plasma-desktop/
Licenses: LGPL-2.0-or-later
Groups: plasma-git
Conflicts: knetattach, knetattach-git, plasma-desktop, user-manager, user-manager-git
Provides: knetattach, knetattach-git, plasma-desktop, user-manager, user-manager-git
Replaces: knetattach-git, user-manager-git
Submitter: arojas
Maintainer: IslandC0der (chaotic-aur)
Last Packager: IslandC0der
Votes: 9
Popularity: 0.000000
First Submitted: 2014-03-31 06:31 (UTC)
Last Updated: 2024-03-02 13:37 (UTC)

Dependencies (85)

Required by (40)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 .. 12 Next › Last »

IslandC0der commented on 2021-09-06 11:33 (UTC)

Ohh, what if you add

sudo -v || exit
sleep 1

before the while loop?

I didn't need that when I tested it, but maybe that fixes your issue

Neko-san commented on 2021-09-03 22:10 (UTC)

What I meant was: it does save the authentication temporarily, but when it prompts for it in the script, the script just runs past it instead of waiting for authentication

It can still be entered but you're kind of on a time limit because the script just decides it doesn't care to wait Lol

IslandC0der commented on 2021-09-01 01:57 (UTC)

Hmm that's actually expected, it should just save your authentication temporarily.

What happens if you run it twice? Does it still ask for the password the second time?

PS: sorry for the late reply!

Neko-san commented on 2021-08-23 04:42 (UTC)

@IslandC0der Nothing apparently?

Welcome to fish, the friendly interactive shell
Type `help` for instructions on how to use fish
neko-san@ARCH ~/asp> bash
[neko-san@ARCH asp]$ sudo -v
[sudo] password for neko-san: 
[neko-san@ARCH asp]$ 

IslandC0der commented on 2021-08-22 14:12 (UTC)

Hmm, what happens if you just run sudo -v on a fresh terminal?

Neko-san commented on 2021-08-21 02:36 (UTC) (edited on 2021-08-21 17:34 (UTC) by Neko-san)

@IslandC0der Would here be right?

EDIT: I tried this and the prompt just got skipped :v

asp update

trap "exit" INT TERM
trap "kill 0" EXIT
while true; do
  sudo -v
  sleep 295
done &

for dir in */; do (
  cd $dir
  git fetch

IslandC0der commented on 2021-08-20 15:26 (UTC) (edited on 2021-08-20 15:27 (UTC) by IslandC0der)

Good question! After a lot of messing around, I found this. So, just add this code to the start of your script:

trap "exit" INT TERM
trap "kill 0" EXIT
while true; do
  sudo -v
  sleep 295
done &

and you'll only have to provide the password once at the start, and it will continuously loop sudo, preventing it from expiring.

Note: this will depend on your sudo timeout: the default is 5 minutes (hence sleeping for 295 seconds, for a 5 second buffer), but if you have something different, you will have to adjust it.

If you don't have a timeout, like me, simply having sudo -v at the beginning of the script would be enough.

Neko-san commented on 2021-08-19 04:12 (UTC)

@IslandC0der Seems to work, yeah One last thing: is there something I can do to make makepkg install these itself without authentication every single time it does so in the script?

Like, I get the reason why but it gets in the way of smooth operation in this circumstance :/

IslandC0der commented on 2021-08-19 01:52 (UTC) (edited on 2021-08-19 01:54 (UTC) by IslandC0der)

Yup, that should do the trick :D

Does it work?

Neko-san commented on 2021-08-19 01:10 (UTC)

@IslandC0der Like this?

      if [[ $? != 0 ]]; then
        ## Error-handling code goes here
        echo $dir >> ~/asp/errors.log
        notify-send "Makepkg failed to compile $dir" --app-name=aspUpdate.sh --icon=script-error --urgency=critical
      fi