Skip to content

Embedded EPS is not loaded if the user name contains a space (Linux) #3978

Description

@kovzol

I have a .tm input (from TeXmacs 2.1.4) which contains embedded eps. If I want to load the file in Mogan, I get such messages on the terminal:

2026-07-16-08.15.51.255 TeXmacs] io, /usr/bin/gs -dQUIET  -dNOPAUSE  -dBATCH  -dSAFER  -sDEVICE=pngalpha  -dGraphicsAlphaBits=4  -dTextAlphaBits=4  -g356x356 -sOutputFile=/tmp/Kovács Zoltán/.lolly/212651/FFB23BF6_02D6_4840_8154_6C7725480280..png  -r72.0x129.0  -c " -36.0 -36.0 translate gsave " -f /tmp/Kovács\ Zoltán/.lolly/212651/9568CC52_4BB9_4460_8AF5_FF9AB53375A0.ps  -c " grestore "

This is, however, wrong, because -sOutputFile receives a string that contains a space character.
I found that the command line is created in TeXmacs/plugins/binary/progs/binary/gs.scm by appending (url->system to). If I prepend ' and append ' to this, then I can avoid the error. This is just a hotfix, there should be a better fix for that. I am also unsure why my name is used to create the path for a tempory file, is this intentional?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions