why does my clipboard just clear.

Sometimes the clipboard just clears after I suspend for a time. Today was a good example I did some stuff last night, suspend, just check some stuff this am and suspend. This pm the clipboard is clear.
In the properties I have save on quit checked.
:thinking:

hm... random thought - maybe its being discarded from the cache at some point ?

Yes that is the problem but we need no "maybe" :laughing: And that cashe be @ /home/kmartin/.cache/xfce4/clipman/ But I am not so adept at sorting logs, e.g. /var/log/ to find maybe a time stamp?
Or is this looking in the wrong direction?
Thanks cscs.

maybe something like
journalctl | grep -i clip
?

That yields:
`
╔09:58 PM 𓀗 kmartin@Jane→[~] (1.2Gi/7.7Gi)
β•š$ journalctl | grep -i clip
╔09:58 PM 𓀗 kmartin@Jane→[~] (1.2Gi/7.7Gi)
β•š$ journalctl | grep -i clipman
╔09:58 PM 𓀗 kmartin@Jane→[~] (1.2Gi/7.7Gi)
β•š$ journalctl | grep -i xfce4-clipman
╔09:59 PM 𓀗 kmartin@Jane→[~] (1.2Gi/7.7Gi)
β•š$ journalctl | grep -i xfce4

`
Then:

Jan 16 21:27:20 Jane dbus-daemon[12498]: [session uid=0 pid=12496] Activating service name='org.gtk.vfs.Daemon' requested by ':1.1' (uid=0 pid=12501 comm="/usr/lib/xfce4/notifyd/xfce4-notifyd ")
Jan 16 22:45:05 Jane unknown[12501]: xfce4-notifyd: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
Jan 16 22:45:05 Jane xfce4-notifyd[927]: xfce4-notifyd: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
Jan 16 22:45:05 Jane systemd[732]: xfce4-notifyd.service: Main process exited, code=exited, status=1/FAILURE
Jan 16 22:45:05 Jane systemd[732]: xfce4-notifyd.service: Failed with result 'exit-code'.
Jan 17 06:29:33 Jane at-spi-bus-launcher[791]: dbus-daemon[797]: Activating service name='org.a11y.atspi.Registry' requested by ':1.94' (uid=1000 pid=5444 comm="xfce4-session ")
Jan 17 06:29:36 Jane dbus-daemon[751]: [session uid=1000 pid=751] Activating via systemd: service name='org.freedesktop.Notifications' unit='xfce4-notifyd.service' requested by ':1.255' (uid=1000 pid=5971 comm="xfce4-power-manager ")
Jan 17 07:48:10 Jane unknown[6068]: xfce4-notifyd: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
Jan 17 07:48:10 Jane systemd[732]: xfce4-notifyd.service: Main process exited, code=exited, status=1/FAILURE
Jan 17 07:48:10 Jane systemd[732]: xfce4-notifyd.service: Failed with result 'exit-code'.
Jan 17 19:04:03 Jane at-spi-bus-launcher[791]: dbus-daemon[797]: Activating service name='org.a11y.atspi.Registry' requested by ':1.118' (uid=1000 pid=5403 comm="xfce4-session ")
Jan 17 19:04:04 Jane dbus-daemon[751]: [session uid=1000 pid=751] Activating via systemd: service name='org.freedesktop.Notifications' unit='xfce4-notifyd.service' requested by ':1.317' (uid=1000 pid=5507 comm="xfce4-power-manager ")
Jan 18 00:20:11 Jane unknown[5530]: xfce4-notifyd: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
Jan 18 00:20:11 Jane systemd[732]: xfce4-notifyd.service: Main process exited, code=exited, status=1/FAILURE
Jan 18 00:20:11 Jane systemd[732]: xfce4-notifyd.service: Failed with result 'exit-code'.
Jan 18 00:20:19 Jane at-spi-bus-launcher[791]: dbus-daemon[797]: Activating service name='org.a11y.atspi.Registry' requested by ':1.157' (uid=1000 pid=9830 comm="xfce4-session ")
Jan 18 00:20:20 Jane dbus-daemon[751]: [session uid=1000 pid=751] Activating via systemd: service name='org.freedesktop.Notifications' unit='xfce4-notifyd.service' requested by ':1.454' (uid=1000 pid=9921 comm="xfce4-power-manager ")
Jan 18 00:20:54 Jane xfce4-notifyd[9945]: xfce4-notifyd: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
Jan 18 00:20:54 Jane systemd[732]: xfce4-notifyd.service: Main process exited, code=exited, status=1/FAILURE
Jan 18 00:20:54 Jane systemd[732]: xfce4-notifyd.service: Failed with result 'exit-code'.
Jan 18 05:49:08 Jane at-spi-bus-launcher[791]: dbus-daemon[797]: Activating service name='org.a11y.atspi.Registry' requested by ':1.178' (uid=1000 pid=10951 comm="xfce4-session ")
Jan 18 05:49:09 Jane dbus-daemon[751]: [session uid=1000 pid=751] Activating via systemd: service name='org.freedesktop.Notifications' unit='xfce4-notifyd.service' requested by ':1.504' (uid=1000 pid=11045 comm="xfce4-power-manager ")
Jan 18 05:52:40 Jane xfce4-notifyd[11068]: xfce4-notifyd: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
Jan 18 05:52:40 Jane systemd[732]: xfce4-notifyd.service: Main process exited, code=exited, status=1/FAILURE
Jan 18 05:52:40 Jane systemd[732]: xfce4-notifyd.service: Failed with result 'exit-code'.
Jan 18 05:53:57 Jane dbus-daemon[758]: [session uid=1000 pid=758] Activating via systemd: service name='org.gtk.vfs.Daemon' unit='gvfs-daemon.service' requested by ':1.4' (uid=1000 pid=750 comm="xfce4-session ")
Jan 18 05:53:57 Jane dbus-daemon[758]: [session uid=1000 pid=758] Activating via systemd: service name='org.a11y.Bus' unit='at-spi-dbus-bus.service' requested by ':1.7' (uid=1000 pid=750 comm="xfce4-session ")
Jan 18 05:53:57 Jane dbus-daemon[758]: [session uid=1000 pid=758] Activating service name='org.xfce.Xfconf' requested by ':1.4' (uid=1000 pid=750 comm="xfce4-session ")
Jan 18 05:53:57 Jane at-spi-bus-launcher[793]: dbus-daemon[799]: Activating service name='org.a11y.atspi.Registry' requested by ':1.0' (uid=1000 pid=750 comm="xfce4-session ")
Jan 18 05:54:06 Jane dbus-daemon[758]: [session uid=1000 pid=758] Activating via systemd: service name='org.freedesktop.Notifications' unit='xfce4-notifyd.service' requested by ':1.28' (uid=1000 pid=885 comm="xfce4-power-manager ")
Jan 18 05:54:06 Jane dbus-daemon[523]: [system] Activating via systemd: service name='org.freedesktop.UPower' unit='upower.service' requested by ':1.89' (uid=1000 pid=885 comm="xfce4-power-manager ")
Jan 18 07:24:55 Jane unknown[923]: xfce4-notifyd: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
Jan 18 07:24:55 Jane systemd[734]: xfce4-notifyd.service: Main process exited, code=exited, status=1/FAILURE
Jan 18 07:24:55 Jane systemd[734]: xfce4-notifyd.service: Failed with result 'exit-code'.
Jan 18 18:08:38 Jane at-spi-bus-launcher[793]: dbus-daemon[799]: Activating service name='org.a11y.atspi.Registry' requested by ':1.21' (uid=1000 pid=7834 comm="xfce4-session ")
Jan 18 18:08:39 Jane dbus-daemon[758]: [session uid=1000 pid=758] Activating via systemd: service name='org.freedesktop.Notifications' unit='xfce4-notifyd.service' requested by ':1.90' (uid=1000 pid=7933 comm="xfce4-power-manager ")
╔09:59 PM 𓀗 kmartin@Jane→[~] (1.2Gi/7.7Gi)

Sorry to throw this up but I'm lost reading this. I think that uid=1000 i.e. me is being told:

Jan 17 19:04:04 Jane dbus-daemon[751]: [session uid=1000 pid=751] Activating via systemd: service name='org.freedesktop.Notifications' unit='xfce4-notifyd.service' requested by ':1.317' (uid=1000 pid=5507 comm="xfce4-power-manager ")
Jan 18 00:20:11 Jane unknown[5530]: xfce4-notifyd: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
Jan 18 00:20:11 Jane systemd[732]: xfce4-notifyd.service: Main process exited, code=exited, status=1/FAILURE
Jan 18 00:20:11 Jane systemd[732]: xfce4-notifyd.service: Failed with result 'exit-code'.

Failed and exited... if this is even related? :man_shrugging:
Sorry for the slow replies I have to spend a lot of time reading journalctl -h, grep --help etc...
Thanks again.

edit: Maybe I'm just deep in denial Clipman β€” Clipboard manager plugin for the Xfce4 panel. It keeps the clipboard contents around while it is usually lost when you close an application. It is able to handle text and images, and has a feature to execute actions on specific text selections by matching them against regular expressions.

This is the clipman text cache path /home/kmartin/.cache/xfce4/clipman/textsrc.
Do i have to do it my self? seams simple enough, but I can't believe xfce failed what appears simple???
In Properties they have a clipboard

Size of the history box

So you may limit the size of the list; what of the buffer size?
I found nothing on the xfce forum.....useful. IDK?

DK if I want to shave this Yak :thought_balloon:
:zzz:

I want to point out that this is an xfce4 issue with the clipman plugin.

That said, here is where I'm at.

/home/user name/.cache/xfce4/clipman/textsrc
is where xfce4 stores the clipboard. But if you delete that file, logout-login it is still in some buffer for the panel widget.
When you open the panel widget and click on an entry, the file reappears in
/home/user name/.cache/xfce4/clipman/textsrc !
anyway ... here is what I have been trying.

1.) copy the clipboard file to a safe place.
/home/user name/.cache/xfce4/clipman_clipboard_bak/textsrc.bak
I have backup and restore aliases in my .bashrc setup to automate tests. I also have a little script to run on logout to do the backup:

'#' rstclip = restore clipboard
alias rstclip='cp --preserve=mode,ownership,timestamps,xattr /home/user name/.cache/xfce4/clipman_clipboard_bak/textsrc.bak /home/user name/.cache/xfce4/clipman/textsrc

'#' bkclip = backup clipboard to: /home/user name/.cache/xfce4/clipman_clipboard_bak/textsrc.bak
alias bkclip='cp --preserve=mode,ownership,timestamps,xattr /home/user name/.cache/xfce4/clipman/textsrc /home/user name/.cache/xfce4/clipman_clipboard_bak/textsrc.bak'

test run:
bkclip writes the .bakfile.
delete the textsrc file (like randomly happens).
I clear the clipboard in the panel widget. Don't know when this happens when a failure occures for sure.
rstclip
backup is restored but the clipboard widget is still empty.
logout-login
The clipman clipboard widget is restored you must click on an entry to select it. In common usage copying something does the same thing.
I setup an entry in Settings / Sessions and Startup / Applications Startup to copy the clipboard on logout. It does but that's not enough...

Now the bad news (which I hate to report) this works on Arch but does not restore /home/user name/.cache/xfce4/clipman/textsrc on Manjaro.
Same results on my old beater slaptop and desktop, both have Arch and Manjaro xfce4 more or less the same xfce4.
2/8/2020 Just went to check something in my Arch/laptop and the clipboard was empty. Ran rstclip, logedout/in, the clipboard was restored and functioned
properly. That was a good real world test.
2/12 passed test on desktop. After updating Arch,rebooting clipboard was "empty" ran rstclip, logout/in and clipboard is restored.
2/14 again desktop.

here is the bash script for /usr/local/bin/copy-clipman call it from sessions and startup at logout.

fwiw ?

#!/bin/bash
# Copy clipman's clipboard to a safe .bak file.
# This is the clipman clipboard text cache path /home/username/.cache/xfce4/clipman/textsrc.
# so made a directory: /clipman_clipboard_bak/textsrc.bak to cp textsrc to. Copying to /clipman did not work.
cp --preserve=mode,ownership,timestamps,xattr .cache/xfce4/clipman/textsrc .cache/xfce4/clipman_clipboard_bak/textsrc.bak

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by