You are not logged in.
aarchup don't stop synchronizing servers
when i try "aarchup --debug --loop-time 60", aarchup keep synchronizing servers without stopping
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
Archlinux X86_64
Offline
aarchup don't stop synchronizing servers
when i try "aarchup --debug --loop-time 60", aarchup keep synchronizing servers without stopping
:: Synchronizing package databases... core is up to date extra is up to date community is up to date :: Synchronizing package databases... core is up to date extra is up to date community is up to date :: Synchronizing package databases... core is up to date extra is up to date community is up to date :: Synchronizing package databases... core is up to date extra is up to date community is up to date :: Synchronizing package databases... core is up to date extra is up to date community is up to date :: Synchronizing package databases... core is up to date extra is up to date community is up to date :: Synchronizing package databases... core is up to date extra is up to date community is up to date :: Synchronizing package databases... core is up to date extra is up to date community is up to date :: Synchronizing package databases... core is up to date extra is up to date community is up to date :: Synchronizing package databases... core is up to date extra is up to date community is up to date :: Synchronizing package databases... core is up to date extra is up to date community is up to date :: Synchronizing package databases... core is up to date extra is up to date community is up to date :: Synchronizing package databases... core is up to date extra is up to date community is up to date :: Synchronizing package databases... core is up to date extra is up to date community is up to date :: Synchronizing package databases... core is up to date extra is up to date community is up to date :: Synchronizing package databases... core is up to date extra is up to date community is up to date :: Synchronizing package databases... core is up to date extra is up to date community is up to date :: Synchronizing package databases... core is up to date extra is up to date community is up to date :: Synchronizing package databases... core is up to date extra is up to date community is up to date :: Synchronizing package databases... core is up to date extra is up to date community is up to date :: Synchronizing package databases... core is up to date extra is up to date community is up to date :: Synchronizing package databases... core is up to date extra is up to date community is up to date :: Synchronizing package databases... core is up to date extra is up to date community is up to date :: Synchronizing package databases... core is up to date extra is up to date community is up to date
could you post the full output of running it with --debug?
Offline
problem solved, my fault, I can not just use aarchup needs to be /usr/bin/aarchup
Archlinux X86_64
Offline
problem solved, my fault, I can not just use aarchup needs to be /usr/bin/aarchup
just out of curiosity what output of "$ which aarchup"
Offline
American_Jesus wrote:problem solved, my fault, I can not just use aarchup needs to be /usr/bin/aarchup
just out of curiosity what output of "$ which aarchup"
$ which aarchup
/usr/bin/aarchup
Archlinux X86_64
Offline
aericson wrote:American_Jesus wrote:problem solved, my fault, I can not just use aarchup needs to be /usr/bin/aarchup
just out of curiosity what output of "$ which aarchup"
$ which aarchup /usr/bin/aarchup
thats wierd there should be no difference between $ aarchup and $ /usr/bin/aarchup
Offline
Hi
Can you help me, all is works - but i cann't see icons in tray... only notify-osd...
Offline
Hi
Can you help me, all is works - but i cann't see icons in tray... only notify-osd...
It's not supposed to. Aarchup is only supposed to notify. At the screenshot at the first post it shows an icon because that's how gnome-shell handles it.
Offline
Hi, I try to run aarchup like this
/usr/bin/aarchup --loop-time 2 --icon /usr/share/aarchup/archlogo.svg &
and get:
(process:1670): libnotify-CRITICAL **: notify_notification_show: assertion `error == NULL || *error == NULL' failed
What am I doing wrong?
I get the same error. Basically if I try and run aarchup as a cron.hourly script, i.e. running as
su - $arch_user -c "XAUTHORITY= ....
I get:
DEBUG(error): It could have been caused by an enviroment restart.
DEBUG(error): Trying to work around it by reinitin libnotify.
(process:30782): libnotify-CRITICAL **: notify_notification_show: assertion `error == NULL || *error == NULL' failed
and no notification.
If I just run "XAUTHORITY= ...." in a terminal that works fine and the notification pops up ok. So it's the
su -$arch_user -c
bit which is causing the error. Any suggestions as I'd really like to run aarchup as a cron job. Many thanks!
p.s. I'm running Gnome 3.
Last edited by dangermouse (2013-06-29 22:04:23)
Offline
innn wrote:Hi, I try to run aarchup like this
/usr/bin/aarchup --loop-time 2 --icon /usr/share/aarchup/archlogo.svg &
and get:
(process:1670): libnotify-CRITICAL **: notify_notification_show: assertion `error == NULL || *error == NULL' failed
What am I doing wrong?
I get the same error. Basically if I try and run aarchup as a cron.hourly script, i.e. running as
su - $arch_user -c "XAUTHORITY= ....
I get:
DEBUG(error): It could have been caused by an enviroment restart. DEBUG(error): Trying to work around it by reinitin libnotify. (process:30782): libnotify-CRITICAL **: notify_notification_show: assertion `error == NULL || *error == NULL' failed
and no notification.
If I just run "XAUTHORITY= ...." in a terminal that works fine and the notification pops up ok. So it's the
su -$arch_user -c
bit which is causing the error. Any suggestions as I'd really like to run aarchup as a cron job. Many thanks!
p.s. I'm running Gnome 3.
amielke suggested that the following works at Gnome 3 at https://aur.archlinux.org/packages/aarchup/
DISPLAY=:0 /usr/bin/aarchup --uid $(id -u $arch_user) --icon /usr/share/aarchup/archlogo.svg
I don't have the means to test it now, sorry.
Can't get it to work in my box (not gnorme) via crontab either.
Hope someone else can help you with that.
Last edited by aericson (2013-06-30 00:36:01)
Offline
amielke suggested that the following works at Gnome 3 at https://aur.archlinux.org/packages/aarchup/
DISPLAY=:0 /usr/bin/aarchup --uid $(id -u $arch_user) --icon /usr/share/aarchup/archlogo.svg
I don't have the means to test it now, sorry.
Can't get it to work in my box (not gnorme) via crontab either.Hope someone else can help you with that.
Many thanks for the reply! Sadly that just gives the same error. It works when executed from a command line, but not when run as part of a cron.hourly script.
It's good to know you can't get it to work via crontab either. I might give up on that then. Has anyone been able to get it to work via crontab? Might be worth amending the documentation to say it is a known bug and/or doesn't work at all using crontab?
Many thanks.
Offline
@dangermouse: Maybe try to set XAUTHORITY in the cron script?
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
@dangermouse: Maybe try to set XAUTHORITY in the cron script?
Hi Progandy many thanks for the suggestion! Any advice on how to do that?
Offline
I'll wait a bit to see if someone can come up with a solution, will change documentation if necessary after.
Sorry about that, it used to work before, eventually some update must have broken it.
Offline
No worries aericson. I realized after I posted that aarchup is a fork so would have inherited the previous documentation. It's no big deal if it doesn't work using cron as long as there is another way to get it to run. Problem is at the moment I can't even get it to run using the loop option.
I currently have the following in my ./config/autostart folder:
/usr/bin/aarchup --icon /usr/share/aarchup/archlogo.svg &
and that works when I log into gnome to give me a 1-time notification of any updates (which is great btw!). However when I try and add the loop-time option to give me updates every X minutes:
/usr/bin/aarchup --loop-time 10 --icon /usr/share/aarchup/archlogo.svg &
it stops working even once. I can run the above command in a terminal and it works, but it needs me to enter my sudo password. I'm guessing the sudo password is what is stopping it from running in my autostart. Any ideas how I can fix it? Many thanks!
Offline
No worries aericson. I realized after I posted that aarchup is a fork so would have inherited the previous documentation. It's no big deal if it doesn't work using cron as long as there is another way to get it to run. Problem is at the moment I can't even get it to run using the loop option.
I currently have the following in my ./config/autostart folder:
/usr/bin/aarchup --icon /usr/share/aarchup/archlogo.svg &
and that works when I log into gnome to give me a 1-time notification of any updates (which is great btw!). However when I try and add the loop-time option to give me updates every X minutes:
/usr/bin/aarchup --loop-time 10 --icon /usr/share/aarchup/archlogo.svg &
it stops working even once. I can run the above command in a terminal and it works, but it needs me to enter my sudo password. I'm guessing the sudo password is what is stopping it from running in my autostart. Any ideas how I can fix it? Many thanks!
You will also need to allow pacman -Sy to be executed without asking for
sudo's password. Edit visudo:
$ sudo visudo
Add the following line to the end of the file.
user ALL=(ALL) NOPASSWD: /usr/bin/pacman -Sy
done that?
Offline
You will also need to allow pacman -Sy to be executed without asking for sudo's password. Edit visudo: $ sudo visudo Add the following line to the end of the file. user ALL=(ALL) NOPASSWD: /usr/bin/pacman -Sy
done that?
Doh! I hadn't done that. Sorry for the newbie mistake. Many thanks for the help!
Offline
Have added the line using:
sudo visudo
but it's still not working.It doesn't autostart and when I try and run it from a terminal it still asks for a password.
Offline
progandy wrote:@dangermouse: Maybe try to set XAUTHORITY in the cron script?
Hi Progandy many thanks for the suggestion! Any advice on how to do that?
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
Have added the line using:
sudo visudo
but it's still not working.It doesn't autostart and when I try and run it from a terminal it still asks for a password.
you changed 'user' to your user name right?
does 'sudo pacman -Sy' asks for password?
Offline
you changed 'user' to your user name right?
does 'sudo pacman -Sy' asks for password?
Apologies! Sorry I should have done that. Everything is working great now. Many thanks for maintaining a great package!
Last edited by dangermouse (2013-06-30 20:39:34)
Offline
aericson wrote:you changed 'user' to your user name right?
does 'sudo pacman -Sy' asks for password?
Apologies! Sorry I should have done that. Everything is working great now. Many thanks for maintaining a great package!
No problems, I forgot the line to change the user when I copied here
Offline
Hi
This works great for me in crontab. It looks for gnome-shell process, and looks for DBUS id in its env. If someone find a way to make it run with 'su' it may be better.
GSPID=$(pidof gnome-shell)
if [ -e "/proc/$GSPID/environ" ]; then
export $(</proc/$GSPID/environ tr \\0 \\n | grep -E '^DBUS_SESSION_BUS_ADDRESS=')
export XAUTHORITY=$(/usr/bin/find /var/run/gdm -path "*${arch_user}*/database")
export DISPLAY=:0
/usr/bin/aarchup --uid $(id -u $arch_user) --icon /usr/share/aarchup/archlogo.svg
fi
Hope that will help.
Offline
I'm just trying to track some findings regarding LXQt's notification daemon and would like to ask two questions in this context:
Desktop Notifications Specification states, among other, three message components "Application Name", "Summary" and "Body".
Could you tell me which ones are sent to notification daemon by aarchup?
The second one is about the message body's nature. In general I'd like to know whether it's just ordinary text or markup. In particular I'd like to know how line breaks are marked - control characters like \n or \r, empty lines or what ever.
Thanks in advance.
Offline
I'm just trying to track some findings regarding LXQt's notification daemon and would like to ask two questions in this context:
Desktop Notifications Specification states, among other, three message components "Application Name", "Summary" and "Body".
Could you tell me which ones are sent to notification daemon by aarchup?The second one is about the message body's nature. In general I'd like to know whether it's just ordinary text or markup. In particular I'd like to know how line breaks are marked - control characters like \n or \r, empty lines or what ever.
Thanks in advance.
Application name: "New Updates"
Summary: "New updates for Arch Linux available!"
Category: "update"
Body is the text (after the summary line) itself as seen on the screenshot:
It starts with the string "There are updates for:\n" followed by the packages.
They are separated by a single "\n" character. And the limit of packages is defined by the command line flag -m|--maxentries (30 packages by default).
The following depends on your configuration:
Urgency (default: normal), timeout (default: 60min) and icon (default: nothing).
Hope that helps. Setting the --debug flag might help you.
Offline