Brilliant!

grep XAUTHORITY ~/.*

found

/home/dave/.bashrc: export XAUTHORITY=~/.Xauthority

and commenting the line out in .bashrc fixed the problem

I don't know how the export got into my .bashrc

Possibly to do with me recently upgrading to 23.04 from 22.04 via 22.10, 
without checking 22.10 in any detail.   Or, it took two attempts to 
download 23.04 due to slow network and repositories timing out and 
something glitched.  More likely it could have been me fiddling with X 
in the past.

Whatever the cause, many thanks for your help

Cheers,

Dave

On 19/05/2023 02:59, Daniel van Vugt wrote:
> Thanks for the bug report.
>
> I can't seem to reproduce the issue here. Perhaps you just need to
> delete ~/.Xauthority or perhaps there's something in your local config
> setting it? Try:
>
>    grep XAUTHORITY ~/.*
>

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to xorg in Ubuntu.
https://bugs.launchpad.net/bugs/2020127

Title:
  x apps fail to launch from terminal shell

Status in xorg package in Ubuntu:
  New

Bug description:
  New upgrade to 23.04

  In terminal typing xeyes, idle or other X app including ubuntu-bug
  fails to launch with error Invalid MIT-MAGIC-COOKIE-1 keyError: cannot
  open display: :0

  Desktop and remote access from another machine to a shell on this host
  with ssh -X work correctly

  echo $XAUTHORITY is /home/dave/.Xauthority   File exists and contains
  2 cookies

  Clue:

  export XAUTHORITY=$(ls /run/user/1000/.mutter-Xwayland*) ubuntu-bug

  links to a working per session cookie, and I'm able to type this.

  Expected behaviour: display just works when an X application is
  started from a shell.

  ProblemType: Bug
  DistroRelease: Ubuntu 23.04
  Package: xorg 1:7.7+23ubuntu2
  ProcVersionSignature: Ubuntu 6.2.0-20.20-generic 6.2.6
  Uname: Linux 6.2.0-20-generic x86_64
  ApportVersion: 2.26.1-0ubuntu2
  Architecture: amd64
  BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
  CasperMD5CheckResult: unknown
  CompositorRunning: None
  CurrentDesktop: ubuntu:GNOME
  Date: Thu May 18 18:44:46 2023
  DistUpgraded: 2023-05-16 20:52:31,229 DEBUG Running PostInstallScript: 
'/usr/lib/ubuntu-advantage/upgrade_lts_contract.py'
  DistroCodename: lunar
  DistroVariant: ubuntu
  DkmsStatus:
   virtualbox/7.0.6, 5.19.0-42-generic, x86_64: installed
   virtualbox/7.0.6, 6.2.0-20-generic, x86_64: installed
  ExtraDebuggingInterest: Yes, if not too technical
  GraphicsCard:
   Advanced Micro Devices, Inc. [AMD/ATI] Pitcairn XT [Radeon HD 7870 GHz 
Edition] [1002:6818] (prog-if 00 [VGA controller])
     Subsystem: Hightech Information System Ltd. Pitcairn XT [Radeon HD 7870 
GHz Edition] [1787:2321]
  InstallationDate: Installed on 2021-03-06 (802 days ago)
  InstallationMedia: Ubuntu 20.10 "Groovy Gorilla" - Release amd64 (20201022)
  MachineType: Gigabyte Technology Co., Ltd. Z490 AORUS ELITE AC
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.2.0-20-generic 
root=UUID=c3300897-9f55-4525-91f6-ac8cfbe405f3 ro quiet splash vt.handoff=7
  SourcePackage: xorg
  Symptom: display
  UpgradeStatus: Upgraded to lunar on 2023-05-16 (1 days ago)
  dmi.bios.date: 08/28/2020
  dmi.bios.release: 5.17
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: F5
  dmi.board.asset.tag: Default string
  dmi.board.name: Z490 AORUS ELITE AC
  dmi.board.vendor: Gigabyte Technology Co., Ltd.
  dmi.board.version: x.x
  dmi.chassis.asset.tag: Default string
  dmi.chassis.type: 3
  dmi.chassis.vendor: Default string
  dmi.chassis.version: Default string
  dmi.modalias: 
dmi:bvnAmericanMegatrendsInc.:bvrF5:bd08/28/2020:br5.17:svnGigabyteTechnologyCo.,Ltd.:pnZ490AORUSELITEAC:pvrDefaultstring:rvnGigabyteTechnologyCo.,Ltd.:rnZ490AORUSELITEAC:rvrx.x:cvnDefaultstring:ct3:cvrDefaultstring:skuDefaultstring:
  dmi.product.family: Z490 MB
  dmi.product.name: Z490 AORUS ELITE AC
  dmi.product.sku: Default string
  dmi.product.version: Default string
  dmi.sys.vendor: Gigabyte Technology Co., Ltd.
  version.compiz: compiz N/A
  version.libdrm2: libdrm2 2.4.114-1
  version.libgl1-mesa-dri: libgl1-mesa-dri 23.0.2-1ubuntu1
  version.libgl1-mesa-glx: libgl1-mesa-glx 23.0.2-1ubuntu1
  version.xserver-xorg-core: xserver-xorg-core 2:21.1.7-1ubuntu3
  version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
  version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-3
  version.xserver-xorg-video-intel: xserver-xorg-video-intel 
2:2.99.917+git20210115-1
  version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 
1:1.0.17-2build1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/2020127/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to