Package Details: plasma-desktop-git 5.22.80_r8480.g7452d5c9b-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
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.36
First Submitted: 2014-03-31 06:31
Last Updated: 2021-05-30 18:02

Required by (57)

Sources (1)

Latest Comments

1 2 3 4 5 6 ... Next › Last »

Neko-san commented on 2021-09-27 22:11

@IslandCOder Sorry, I just discovered that the case statements interfere with the the large for-loop that checks for directory names

So, the majority of the script is ignored as soon as the first case option is called

IslandC0der commented on 2021-09-07 01:16

Awesome! :D

Neko-san commented on 2021-09-06 20:52

This works, thanks!

IslandC0der commented on 2021-09-06 11:33

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

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

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

@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

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

Neko-san commented on 2021-08-21 02:36

@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

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.