Second thoughts...

The --no-markup option prevents zenity from interpreting \n which makes
the dialog hard to read in most cases. So only adding --no-markup is not
a viable solution.

As a possible alternative I played with sed() a bit. The script includes
this line:

TEXT="$PARA1\n\n$(fold -s $ERR)\n\n$PARA2"

My thought is to add a new line right after that. Something along these
lines:

TEXT=$(printf '%s' "$TEXT" | sed 's/</\&lt;/g')

which would replace all occurrences of '<' with '&lt;'. Can you please
test that and see if it helps in your case.

** Changed in: gdm3 (Ubuntu)
       Status: In Progress => Incomplete

** Changed in: lightdm (Ubuntu)
       Status: In Progress => Incomplete

** Summary changed:

- lightdm config-error-dialog.sh should pass --no-markup
+ config-error-dialog.sh should pass --no-markup

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

Title:
  config-error-dialog.sh should pass --no-markup

Status in gdm3 package in Ubuntu:
  Incomplete
Status in lightdm package in Ubuntu:
  Incomplete

Bug description:
  I modified my ~/.profile to call "logger". This resulted in in
  producing some output on stderr like

  ```
  <13>Jul 11 13:02:46 /usr/sbin/lightdm-session[1408]: profile sourced ...
  ```

  This showed an empty zenity prompt.

  Logs suggest zenity was failing because it was treating `<13>` as
  pango markup.

  ```
   from markup due to error parsing markup: Error on line 3 char 6: “13” is not 
a valid 
  ```

  We should not assume the error message strings contain valid markup,
  since their source is unknown.

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to