What's wrong with suse_paste.sh "Failed to get path for session '1"??
Devs, All, I'm getting strange output from suse_paste.sh when pasting. It can't find "session '1"? Here is what I get when pasting: Aug 17 15:34:58 - "Tideman W/Debug Output" tideman-fmt.c Pasted as: https://paste.opensuse.org/886f21092d86 Failed to get path for session '1 2': No session '1 2' known Graphics server not found. Copying to clipboard is not possible. expires: Sat Sep 14 03:34:59 PM CDT 2024 This is a new one. Any ideas? -- David C. Rankin, J.D.,P.E.
On 8/17/24 10:38 PM, David C. Rankin wrote:
Devs, All,
Hi David.
I'm getting strange output from suse_paste.sh when pasting. It can't find "session '1"?
The name suse_paste.sh seems odd, the script should be installed by the package as just /usr/bin/susepaste.
Here is what I get when pasting:
Aug 17 15:34:58 - "Tideman W/Debug Output" tideman-fmt.c Pasted as: https://paste.opensuse.org/886f21092d86 Failed to get path for session '1 2': No session '1 2' known Graphics server not found. Copying to clipboard is not possible. expires: Sat Sep 14 03:34:59 PM CDT 2024
This is a new one. Any ideas?
The issue is when multiple login sessions are active under ones username: ``` $ loginctl list-sessions --no-legend | awk "/georg/{ print \$1 }" 1 11 ``` I now submitted a patch for this: https://github.com/openSUSE/paste/pull/25. But there might be other unhandled scenarios. The error handling in this script is unfortunately rather poor. Cheers, Georg
On 8/17/24 4:26 PM, Georg Pfuetzenreuter via openSUSE Users wrote:
On 8/17/24 10:38 PM, David C. Rankin wrote:
Devs, All,
Hi David.
The issue is when multiple login sessions are active under ones username:
``` $ loginctl list-sessions --no-legend | awk "/georg/{ print \$1 }" 1 11 ```
You nailed it: $ loginctl list-sessions --no-legend 1 1000 david seat0 2959 user - no - 2 1000 david - 3116 manager - no - This I've not seen before. More gifts from systemd that just keeps on giving :)
I now submitted a patch for this: https://github.com/openSUSE/paste/pull/25.
But there might be other unhandled scenarios. The error handling in this script is unfortunately rather poor.
Cheers, Georg
Thank you Georg! -- David C. Rankin, J.D.,P.E.
On 8/17/24 11:56 PM, David C. Rankin wrote:
On 8/17/24 4:26 PM, Georg Pfuetzenreuter via openSUSE Users wrote:
On 8/17/24 10:38 PM, David C. Rankin wrote:
Devs, All,
Hi David.
The issue is when multiple login sessions are active under ones username:
``` $ loginctl list-sessions --no-legend | awk "/georg/{ print \$1 }" 1 11 ```
You nailed it:
$ loginctl list-sessions --no-legend 1 1000 david seat0 2959 user - no - 2 1000 david - 3116 manager - no -
I'm a bit surprised with your output, it does not have any tty information, so whilst my patch will remove the "weird" errors, it would still not make clipboard functionality work for you. I can adjust it to instead read the session based on the seat, I'm not sure how reliable that is, but maybe more than assuming a tty, given a seat0 always exists.
This I've not seen before. More gifts from systemd that just keeps on giving :)
I now submitted a patch for this: https://github.com/openSUSE/paste/pull/25.
But there might be other unhandled scenarios. The error handling in this script is unfortunately rather poor.
Cheers, Georg
Thank you Georg!
On 8/17/24 5:29 PM, Georg Pfuetzenreuter via openSUSE Users wrote:
The issue is when multiple login sessions are active under ones username:
``` $ loginctl list-sessions --no-legend | awk "/georg/{ print \$1 }" 1 11 ```
You nailed it:
$ loginctl list-sessions --no-legend 1 1000 david seat0 2959 user - no - 2 1000 david - 3116 manager - no -
I'm a bit surprised with your output, it does not have any tty information, so whilst my patch will remove the "weird" errors, it would still not make clipboard functionality work for you.
I can adjust it to instead read the session based on the seat, I'm not sure how reliable that is, but maybe more than assuming a tty, given a seat0 always exists.
We may be nibbling at the edges of a series of weird behavior I've seen in TW regarding desktop behavior. From my standpoint, I've basically done a fresh install of TW recreating what I had running in Leap 15.4, but I see weird issues with libinput in Gtk apps, etc.. Let me boot 15.4 and test there and see if there are any differences. Thank you for your help! Yes, I think by seat is the way to go. That will be unique for each login. -- David C. Rankin, J.D.,P.E.
On 8/17/24 17:29, Georg Pfuetzenreuter via openSUSE Users wrote:
You nailed it:
$ loginctl list-sessions --no-legend 1 1000 david seat0 2959 user - no - 2 1000 david - 3116 manager - no -
I'm a bit surprised with your output, it does not have any tty information, so whilst my patch will remove the "weird" errors, it would still not make clipboard functionality work for you.
I can adjust it to instead read the session based on the seat, I'm not sure how reliable that is, but maybe more than assuming a tty, given a seat0 always exists.
Booting to 15.4 instead of Tumbleweed, things are indeed different: $ loginctl list-sessions --no-legend 2 1000 david seat0 I wonder if this Tumbleweed phantom "manager" login is what is screwing up the rest of my desktop in TW? At least as far as the libinput oddness with Gtk apps that so far is yet unexplained. Oh well, take this for whatever it's worth. If there shouldn't be 2 sessions in TW -- is that something I need to file as a bug? I've spent a week or two trying to put my finger on why TW is FUBAR with focus-follows-mouse and Gtk apps? -- David C. Rankin, J.D.,P.E.
On 8/18/24 1:02 AM, David C. Rankin wrote:
On 8/17/24 17:29, Georg Pfuetzenreuter via openSUSE Users wrote:
You nailed it:
$ loginctl list-sessions --no-legend 1 1000 david seat0 2959 user - no - 2 1000 david - 3116 manager - no -
I'm a bit surprised with your output, it does not have any tty information, so whilst my patch will remove the "weird" errors, it would still not make clipboard functionality work for you.
I can adjust it to instead read the session based on the seat, I'm not sure how reliable that is, but maybe more than assuming a tty, given a seat0 always exists.
Booting to 15.4 instead of Tumbleweed, things are indeed different:
$ loginctl list-sessions --no-legend 2 1000 david seat0
I wonder if this Tumbleweed phantom "manager" login is what is screwing up the rest of my desktop in TW? At least as far as the libinput oddness with Gtk apps that so far is yet unexplained.
Oh well, take this for whatever it's worth. If there shouldn't be 2 sessions in TW -- is that something I need to file as a bug? I've spent a week or two trying to put my finger on why TW is FUBAR with focus-follows-mouse and Gtk apps?
Unfortunately, I don't know what's "expected" in that regard or if it's related. My Wayland Tumbleweed shows the separate user and manager sessions as well, but the user one _with_ an entry in the tty column.
On 8/17/24 6:49 PM, Georg Pfuetzenreuter via openSUSE Users wrote:
Unfortunately, I don't know what's "expected" in that regard or if it's related. My Wayland Tumbleweed shows the separate user and manager sessions as well, but the user one _with_ an entry in the tty column.
Chuckling... I guess there really are things in this world that shall remain mysteries. My output is with X11 in both cases, no Wayland installed at all. (or at least not installed intentionally) As long as we can make susepaste happy, then we are good. My little wrapper script keeps a running log of pastes for me that is convenient. It's been a bit spotty lately, at least since July 19, e.g. $ tail -n40 ~/suse/pastes <snip> Nov 20 20:19:46 - "Rev words in file in-order" file-rev-words-in-order.c Pasted as: https://susepaste.org/d92d1e1fe1cf https://paste.opensuse.org/d92d1e1fe1cf Link is also in your clipboard. expires: Mon 18 Dec 2023 08:34:18 PM CST Dec 8 13:16:37 - "Iteration by Index and by Pointer" months-by-char.c Pasted as: https://susepaste.org/71aa2315306f https://paste.opensuse.org/71aa2315306f Link is also in your clipboard. expires: Fri 05 Jan 2024 01:17:08 PM CST Dec 19 21:55:03 - "Archlinux udevadm info for /dev/ttyACM0" udevadm-2pi.txt Pasted as: https://susepaste.org/bb73cdfe5dd7 https://paste.opensuse.org/bb73cdfe5dd7 Link is also in your clipboard. expires: Tue 16 Jan 2024 09:55:20 PM CST Dec 19 21:55:37 - "openSUSE udevadm info for /dev/ttyACM0" udevadm-wiz.txt Pasted as: https://susepaste.org/2c4d323524ee https://paste.opensuse.org/2c4d323524ee Link is also in your clipboard. expires: Tue 16 Jan 2024 09:55:52 PM CST Jul 19 05:40:56 - "nvidia-390xx-linux-6.10.patch" kernel-6.10.patch Paste failed :-( expires: Fri Nov 1 05:40:57 AM CDT 2024 Jul 19 05:42:20 - "nvidia-390xx-linux-6.10.patch" kernel-6.10.patch Paste failed :-( expires: Fri Nov 1 05:42:20 AM CDT 2024 Jul 23 00:51:40 - "Nvidia Adjust Backlight" /home/david/img/tmp/nvidia-backlight-adjust_acpi.png Paste failed :-( expires: Tue Aug 20 12:51:41 AM CDT 2024 Jul 24 18:22:20 - "dbus Nvidia Backlight" dbus-set-nv-backlight.cpp Pasted as: https://paste.opensuse.org/7678f5d3b5c5 Link is also in your clipboard. Aug 17 15:34:58 - "Tideman W/Debug Output" tideman-fmt.c Pasted as: https://paste.opensuse.org/886f21092d86 Graphics server not found. Copying to clipboard is not possible. expires: Sat Sep 14 03:34:59 PM CDT 2024 Amazingly, the July 24 paste seems to have worked, but only provided the paste.opensuse.org link, but did copy to the clipboard. Seems this last one is the only one that was really unhappy. Thank you again for your help Georg! -- David C. Rankin, J.D.,P.E.
On 18.08.2024 03:31, David C. Rankin wrote:
On 8/17/24 6:49 PM, Georg Pfuetzenreuter via openSUSE Users wrote:
Unfortunately, I don't know what's "expected" in that regard or if it's related. My Wayland Tumbleweed shows the separate user and manager sessions as well, but the user one _with_ an entry in the tty column.
Chuckling...
I guess there really are things in this world that shall remain mysteries. My output is with X11 in both cases, no Wayland installed at all. (or at least not installed intentionally)
How is this session started?
On 8/18/24 2:25 AM, Andrei Borzenkov wrote:
Does kdm3 support systemd-logind at all? Do you have other systems with kdm3 and pre-systemd 256? What is output of loginctl there?
I seriously doubt kdm3 supports systemd-logind, but it works fine. On 15.4 there is no "manager" login -- which makes sense given what you said earlier. Booting to 15.4 instead of Tumbleweed I get: $ loginctl list-sessions --no-legend 2 1000 david seat0 -- David C. Rankin, J.D.,P.E.
On 18.08.2024 10:43, David C. Rankin wrote:
On 8/18/24 2:25 AM, Andrei Borzenkov wrote:
Does kdm3 support systemd-logind at all? Do you have other systems with kdm3 and pre-systemd 256? What is output of loginctl there?
I seriously doubt kdm3 supports systemd-logind, but it works fine. On 15.4 there is no "manager" login -- which makes sense given what you said earlier.
Booting to 15.4 instead of Tumbleweed I get:
$ loginctl list-sessions --no-legend 2 1000 david seat0
So, there is no change. Looking at susepaste source, it does not use TTY field at all, so the obvious fix is to ignore session of type "manager". If it results in more than one real user session, it had been always broken already. Now, if the intent is to make it work for multiple user sessions ... there is apparently undocumented session ID argument "auto" which magically shows you your current session. Id=1 User=1001 Name=bor Timestamp=Sun 2024-08-18 07:38:13 MSK TimestampMonotonic=62977112 VTNr=2 Seat=seat0 TTY=tty2 Remote=no Service=gdm-autologin Scope=session-1.scope Leader=1442 Audit=1 Type=wayland Class=user Active=yes State=active IdleHint=no IdleSinceHint=1723965638090394 IdleSinceHintMonotonic=9807885579 LockedHint=no bor@bor-Latitude-E5450:~$ So, no "loginctl --list-sessions" needed at all. It was added in v243. Leap 15.5 has v249. Do not have 15.4 anymore, but susepaste can fallback to the current code if systemd version is older.
On 18.08.2024 11:15, Andrei Borzenkov wrote:
On 18.08.2024 10:43, David C. Rankin wrote:
On 8/18/24 2:25 AM, Andrei Borzenkov wrote:
Does kdm3 support systemd-logind at all? Do you have other systems with kdm3 and pre-systemd 256? What is output of loginctl there?
I seriously doubt kdm3 supports systemd-logind, but it works fine. On 15.4 there is no "manager" login -- which makes sense given what you said earlier.
Booting to 15.4 instead of Tumbleweed I get:
$ loginctl list-sessions --no-legend 2 1000 david seat0
So, there is no change. Looking at susepaste source, it does not use TTY field at all, so the obvious fix is to ignore session of type "manager". If it results in more than one real user session, it had been always broken already.
Now, if the intent is to make it work for multiple user sessions ... there is apparently undocumented session ID argument "auto" which magically shows you your current session.
Sorry, lost the command invocation bor@bor-Latitude-E5450:~$ loginctl show-session auto
Id=1 User=1001 Name=bor Timestamp=Sun 2024-08-18 07:38:13 MSK TimestampMonotonic=62977112 VTNr=2 Seat=seat0 TTY=tty2 Remote=no Service=gdm-autologin Scope=session-1.scope Leader=1442 Audit=1 Type=wayland Class=user Active=yes State=active IdleHint=no IdleSinceHint=1723965638090394 IdleSinceHintMonotonic=9807885579 LockedHint=no bor@bor-Latitude-E5450:~$
So, no "loginctl --list-sessions" needed at all. It was added in v243. Leap 15.5 has v249. Do not have 15.4 anymore, but susepaste can fallback to the current code if systemd version is older.
On 8/18/24 3:15 AM, Andrei Borzenkov wrote:
So, no "loginctl --list-sessions" needed at all. It was added in v243. Leap 15.5 has v249. Do not have 15.4 anymore, but susepaste can fallback to the current code if systemd version is older.
That sounds great. No multiple user-logins needed here, and I suspect it would be a rare thing for people using susepaste. Thanks for looking into this. susepaste has been a great tool. -- David C. Rankin, J.D.,P.E.
On 18.08.2024 01:29, Georg Pfuetzenreuter via openSUSE Users wrote:
You nailed it:
$ loginctl list-sessions --no-legend 1 1000 david seat0 2959 user - no - 2 1000 david - 3116 manager - no -
I'm a bit surprised with your output, it does not have any tty information, so whilst my patch will remove the "weird" errors, it would still not make clipboard functionality work for you.
"manager" session type is new in systemd 256.
* The per-user service manager will now be tracked as a distinct "manager" session type among logind sessions of each user.
I cannot reproduce the missing tty, it is still present. So, it must be some local configuration problem. How is this session started? bor@tw:~> loginctl list-sessions --no-legend 1 1001 bor seat0 1317 user tty2 no - 2 1001 bor - 1386 manager - no - bor@tw:~> loginctl --version systemd 256 (256.4+suse.6.g5bba1ebe17)
On 2024-08-18 00:29, Georg Pfuetzenreuter via openSUSE Users wrote:
On 8/17/24 11:56 PM, David C. Rankin wrote:
On 8/17/24 4:26 PM, Georg Pfuetzenreuter via openSUSE Users wrote:
On 8/17/24 10:38 PM, David C. Rankin wrote:
Devs, All,
Hi David.
The issue is when multiple login sessions are active under ones username:
``` $ loginctl list-sessions --no-legend | awk "/georg/{ print \$1 }" 1 11 ```
You nailed it:
$ loginctl list-sessions --no-legend 1 1000 david seat0 2959 user - no - 2 1000 david - 3116 manager - no -
I'm a bit surprised with your output, it does not have any tty information, so whilst my patch will remove the "weird" errors, it would still not make clipboard functionality work for you.
Clipboard with susepaste has NEVER worked for me, in several opensuse distros. Currently using Leap 15.5 and XFCE. cer@Telcontar:~> susepaste -n "Carlos E.R." -t "test" -e 30 pp.jpg Pasted as: https://susepaste.org/fe8a75af3286 https://paste.opensuse.org/fe8a75af3286 Link is also in your clipboard. cer@Telcontar:~> No, it is not in my clipboard (my clipboard contains "users@lists.opensuse.org"). And the first link is wrong. cer@Telcontar:~> loginctl list-sessions --no-legend 16 1000 cer seat0 tty1 5 1000 cer seat0 c1 0 root cer@Telcontar:~> cer@Telcontar:~> loginctl show-session auto Id=5 User=1000 Name=cer Timestamp=Fri 2024-06-21 19:22:22 CEST TimestampMonotonic=234789488 VTNr=7 Seat=seat0 Display=:0 Remote=no Service=sddm Desktop=XFCE Scope=session-5.scope Leader=5232 Audit=5 Type=x11 Class=user Active=yes State=active IdleHint=no IdleSinceHint=0 IdleSinceHintMonotonic=0 LockedHint=no cer@Telcontar:~> -- Cheers / Saludos, Carlos E. R. (from 15.5 x86_64 at Telcontar)
On 18.08.2024 15:18, Carlos E. R. wrote:
On 2024-08-18 00:29, Georg Pfuetzenreuter via openSUSE Users wrote:
On 8/17/24 11:56 PM, David C. Rankin wrote:
On 8/17/24 4:26 PM, Georg Pfuetzenreuter via openSUSE Users wrote:
On 8/17/24 10:38 PM, David C. Rankin wrote:
Devs, All,
Hi David.
The issue is when multiple login sessions are active under ones username:
``` $ loginctl list-sessions --no-legend | awk "/georg/{ print \$1 }" 1 11 ```
You nailed it:
$ loginctl list-sessions --no-legend 1 1000 david seat0 2959 user - no - 2 1000 david - 3116 manager - no -
I'm a bit surprised with your output, it does not have any tty information, so whilst my patch will remove the "weird" errors, it would still not make clipboard functionality work for you.
Clipboard with susepaste has NEVER worked for me, in several opensuse distros. Currently using Leap 15.5 and XFCE.
cer@Telcontar:~> susepaste -n "Carlos E.R." -t "test" -e 30 pp.jpg Pasted as: https://susepaste.org/fe8a75af3286 https://paste.opensuse.org/fe8a75af3286 Link is also in your clipboard. cer@Telcontar:~>
No, it is not in my clipboard (my clipboard contains "users@lists.opensuse.org").
Works for me on Leap 15.5 with XFCE.
And the first link is wrong.
This is years old version.
cer@Telcontar:~> loginctl list-sessions --no-legend 16 1000 cer seat0 tty1 5 1000 cer seat0 c1 0 root
Which is irrelevant because version in Leap 15.5 does not use it.
On 2024-08-18 14:44, Andrei Borzenkov wrote:
On 18.08.2024 15:18, Carlos E. R. wrote:
On 2024-08-18 00:29, Georg Pfuetzenreuter via openSUSE Users wrote:
On 8/17/24 11:56 PM, David C. Rankin wrote:
On 8/17/24 4:26 PM, Georg Pfuetzenreuter via openSUSE Users wrote:
On 8/17/24 10:38 PM, David C. Rankin wrote:
I'm a bit surprised with your output, it does not have any tty information, so whilst my patch will remove the "weird" errors, it would still not make clipboard functionality work for you.
Clipboard with susepaste has NEVER worked for me, in several opensuse distros. Currently using Leap 15.5 and XFCE.
cer@Telcontar:~> susepaste -n "Carlos E.R." -t "test" -e 30 pp.jpg Pasted as: https://susepaste.org/fe8a75af3286 https://paste.opensuse.org/fe8a75af3286 Link is also in your clipboard. cer@Telcontar:~>
No, it is not in my clipboard (my clipboard contains "users@lists.opensuse.org").
Works for me on Leap 15.5 with XFCE.
And the first link is wrong.
This is years old version.
It is the official version on 15.5, AFAIK. cer@Telcontar:~> which susepaste /usr/bin/susepaste cer@Telcontar:~> rpm -qf /usr/bin/susepaste susepaste-0.6-bp155.5.4.noarch cer@Telcontar:~> I tried another computer, the link is not in the clipboard. -- Cheers / Saludos, Carlos E. R. (from 15.5 x86_64 at Telcontar)
On 8/18/24 3:49 PM, Carlos E. R. wrote:
On 2024-08-18 14:44, Andrei Borzenkov wrote:
On 18.08.2024 15:18, Carlos E. R. wrote:
On 2024-08-18 00:29, Georg Pfuetzenreuter via openSUSE Users wrote:
On 8/17/24 11:56 PM, David C. Rankin wrote:
On 8/17/24 4:26 PM, Georg Pfuetzenreuter via openSUSE Users wrote:
On 8/17/24 10:38 PM, David C. Rankin wrote: And the first link is wrong.
This is years old version.
It is the official version on 15.5, AFAIK.
cer@Telcontar:~> which susepaste /usr/bin/susepaste cer@Telcontar:~> rpm -qf /usr/bin/susepaste susepaste-0.6-bp155.5.4.noarch cer@Telcontar:~>
I tried another computer, the link is not in the clipboard.
The susepaste version in 15.5/15.6 does not have some improvements which are already in Tumbleweed (like Wayland clipboard support and removal of the old link). We can submit an update to maintenance, but I figured to wait for the session/seat patch.
David C. Rankin composed on 2024-08-17 15:38 (UTC-0500):
I'm getting strange output from suse_paste.sh when pasting. It can't find "session '1"?
Where did this suse_paste.sh come from? # inxi -S System: Host: 00srv Kernel: 5.14.21-150500.55.68-default arch: x86_64 bits: 64 Console: pty pts/9 Distro: openSUSE Leap 15.5 # ls -gG /usr/bin/suse* -rwxr-xr-x 1 8589 Oct 26 2023 /usr/bin/suse-update-mime-defaults -rwxr-xr-x 1 6267 Mar 4 04:01 /usr/bin/susehelp -rwxr-xr-x 1 1822 Mar 4 04:01 /usr/bin/susehelp-khelpcenter -rwxr-xr-x 1 4065 Mar 4 04:01 /usr/bin/susehelpindex -rwxr-xr-x 1 4297 May 17 2023 /usr/bin/susepaste -rwxr-xr-x 1 3952 May 17 2023 /usr/bin/susepaste-screenshot -rwxr-xr-x 1 337056 Jun 13 08:37 /usr/bin/susetags2solv # ls -gG /usr/sbin/suse* -rwxr-xr-x 1 30 Mar 4 04:01 /usr/sbin/susedig.sh # ls -gG /bin/suse* ls: cannot access '/bin/suse*': No such file or directory # ls -gG /sbin/suse* ls: cannot access '/sbin/suse*': No such file or directory # # inxi -S System: Host: fi965 Kernel: 6.4.0-150600.21-default arch: x86_64 bits: 64 Console: pty pts/0 Distro: openSUSE Leap 15.6 # ls -Gg /usr/bin/suse* -rwxr-xr-x 1 4297 Jul 22 2023 /usr/bin/susepaste -rwxr-xr-x 1 3952 Jul 22 2023 /usr/bin/susepaste-screenshot -rwxr-xr-x 1 337056 Jun 13 08:37 /usr/bin/susetags2solv # ls -Gg /usr/sbin/suse* ls: cannot access '/usr/sbin/suse*': No such file or directory # ls -Gg /bin/suse* ls: cannot access '/bin/suse*': No such file or directory # ls -Gg /sbin/suse* ls: cannot access '/sbin/suse*': No such file or directory # # pinxi -S System: Host: fi965 Kernel: 6.9.9-1-default arch: x86_64 bits: 64 Console: pty pts/0 Distro: openSUSE Tumbleweed 20240815 # ls -gG /usr/bin/suse* -rwxr-xr-x 1 5080 May 31 18:24 /usr/bin/susepaste -rwxr-xr-x 1 3924 May 31 18:24 /usr/bin/susepaste-screenshot -rwxr-xr-x 1 372920 Jul 11 07:19 /usr/bin/susetags2solv -rwxr-xr-x 1 8700 Jan 17 2024 /usr/bin/suse-update-mime-defaults # ls -gG /usr/sbin/suse* ls: cannot access '/usr/sbin/suse*': No such file or directory # ls -gG /bin/suse* -rwxr-xr-x 1 5080 May 31 18:24 /bin/susepaste -rwxr-xr-x 1 3924 May 31 18:24 /bin/susepaste-screenshot -rwxr-xr-x 1 372920 Jul 11 07:19 /bin/susetags2solv -rwxr-xr-x 1 8700 Jan 17 2024 /bin/suse-update-mime-defaults # ls -gG /sbin/suse* ls: cannot access '/sbin/suse*': No such file or directory #
Here is what I get when pasting:
Aug 17 15:34:58 - "Tideman W/Debug Output" tideman-fmt.c Pasted as: https://paste.opensuse.org/886f21092d86 Failed to get path for session '1 2': No session '1 2' known Graphics server not found. Copying to clipboard is not possible. expires: Sat Sep 14 03:34:59 PM CDT 2024
This is a new one. Any ideas? -- Evolution as taught in public schools is, like religion, based on faith, not based on science.
Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata
On 8/17/24 4:32 PM, Felix Miata wrote:
Where did this suse_paste.sh come from?
Sorry Felix, That was just my script name that calls susepaste :) #!/bin/bash [[ $1 =~ [-][-]*[Hh].* ]] && { ## trap help (-h --help -Help, etc..) cat << EOF usage: ${0/*\//} title file [syntax expire (minutes)] options: -n NICK -t TITLE -k KEY API key to paste as you -f SYNTAX (asm, awk, bash, c, cpp, css, diff, html4strict, php, sql, text) -e EXPIRE (default 1 hour) 30 30 Minutes 60 1 Hour 360 6 Hours 720 12 Hours 1440 1 Day 10080 1 Week 40320 1 Month 151200 3 Months 604800 1 Year 1209600 2 Years 1814400 3 Years 0 Never EOF exit 0 } [ -z "$1" ] || [ -z "$2" ] && { ## validate title and filename given printf "error: insufficient input\nusage: %s title file [syntax expire (minutes)]\n" "${0/*\//}" >&2 exit 1 } [ -r "$2" ] || { ## validate file is readable printf "error: file not readable '%s'\n" "$2" >&2 exit 1 } ## set log directory logdir="/$HOME/suse" log="/$logdir/pastes" ni="David C Rankin" ## nick key="************" ## key ti="$1" ## title fn="$2" ## filename syn="${3:-text}" ## plain text (asm, awk, bash, c, cpp, diff, text, ...) min="${4:-40320}" ## one month [ -d "$logdir" ] || mkdir -p "$logdir" ## check or create logdir [ -f "$log" ] || touch "$log" ## check or create log file printf "%s - \"%s\" %s " "$(date '+%b %e %T')" "$ti" "$fn" | tee -a "$log" susepaste -n "$ni" -k "$key" -t "$ti" -e "$min" -f "$syn" "$fn" | tee -a "$log" printf "expires: %s\n" "$(date -d "now + $min minutes")" | tee -a "$log" -- David C. Rankin, J.D.,P.E.
On 2024-08-17 23:32, Felix Miata wrote:
David C. Rankin composed on 2024-08-17 15:38 (UTC-0500):
I'm getting strange output from suse_paste.sh when pasting. It can't find "session '1"?
Where did this suse_paste.sh come from?
# inxi -S System: Host: 00srv Kernel: 5.14.21-150500.55.68-default arch: x86_64 bits: 64 Console: pty pts/9 Distro: openSUSE Leap 15.5 # ls -gG /usr/bin/suse*
Try "which suse_paste.sh" and if it fails, "locate suse_paste.sh". Maybe "rpm -q -f `which suse_paste.sh`" too. I don't have it in 15.5. -- Cheers / Saludos, Carlos E. R. (from 15.5 x86_64 at Telcontar)
participants (5)
-
Andrei Borzenkov
-
Carlos E. R.
-
David C. Rankin
-
Felix Miata
-
Georg Pfuetzenreuter