Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] xpdf "save as" directory



Kalin,

> I'll double check if "~" is a good way to code this... may be $HOME or
> get it from /etc/passwd for running user?

Once we make it to allow xpdfrc to configure the path, we may not have
to worry about this.

Rgds,
Kiyoshi

2010/10/31, Kalin KOZHUHAROV <me.kalin@example.com>:
> Hi Kiyoshi,
>
> On Sun, Oct 31, 2010 at 09:31, Kiyoshi Kawaguchi <kkawaguc8020@example.com>
> wrote:
>> I was able to change the default directory in "Save As" dialog but in
>> the source code level like this:
>>
>> In XPDFViewer.cc file, in function XPDFViewer::initSaveAsDialog(), in
>> the if-block of the latter part of the function routine,
>>
>> [before] s1 = XmStringCreatedLocalized(dir->getCString());  // This
>> gets the dir of the currently opened file.
>>
>> [after] s1 = XmStringCreatedLocalized("~");  // Let's force it to the
>> home directory. ;)
>>
>> For making it controllable by the user via xpdfrc, then I need to take
>> a look at GlobalParams.cc for further modification.....
>>
> I'll double check if "~" is a good way to code this... may be $HOME or
> get it from /etc/passwd for running user?
>
> If you spend a bit more time to make it configurable via .xpdfrc file
> or environment variable or menu, you can send your patch to the
> "official tree" by mailing
> derekn@example.com (see http://www.foolabs.com/xpdf/home.html)
>
> Cheers,
> Kalin.
>
> --
> To unsubscribe from this mailing list,
> please see the instructions at http://lists.tlug.jp/list.html
>
> The TLUG mailing list is hosted by the award-winning Internet provider
> ASAHI Net.
> Visit ASAHI Net's English-language Web page: http://asahi-net.jp/en/


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links