Web lists-archives.com

Re: [PATCH xpdf] Add desktop menu entry




On 2017-10-28 13:55, Ken Brown wrote:
> On 10/28/2017 3:26 PM, Brian Inglis wrote:
>> On 2017-10-28 12:00, Ken Brown wrote:
>>> On 10/27/2017 5:00 PM, Yaakov Selkowitz wrote:
>>>> ---
>>>>    xpdf.cygport | 4 ++++
>>>>    1 file changed, 4 insertions(+)
>>>
>>> After making this change I get the following warning when starting xpdf in an
>>> xterm window:
>>>
>>> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-kbrown'
>>>
>>> I googled the message, but none of the solutions appeared to apply.  Do you know
>>> how to suppress this warning?  I assume it results from the fact that I'm not
>>> working in a desktop environment.
>>
>> Normally set to /run/user/$(id -u)/, sometimes .../$(id -un)/, created by first
>> app after login.
>> I have a postinstall script to create /run/{,blkid,lock,user}/ directories with
>> mode a+rwxt, remove /var/{run,lock} directories and create symlinks from those
>> to /run/{,lock}/, to provide a more normal Unix/Linux environment for ported
>> apps.
>>
>>  From https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html:
> [...]
> 
> Thanks for all the information, Brian, but I think you misunderstood the context
> of my question.  I'm the maintainer of xpdf, and Yaakov suggested a modification
> to my .cygport file.  This results in a warning (presumably when xpdf is not run
> under a desktop environment).  I'm simply asking if there's an easy way to
> suppress the warning so that users aren't annoyed by it.

It's part of the desktop environment support, even if that is only dwm, so I
don't think you can eliminate the message, except by exporting
XDG_RUNTIME_DIR=/run/user/`id -u` or equivalent for it to use; you may have to
create it.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple