Re: extra /tmp on file name line when save html
Rodrigo Arias <[email protected]>
| Newsgroups | gmane.comp.web.dillo.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, On Sat, Jul 06, 2024 at 09:56:17AM -0600, [email protected] wrote: >Hi, > >Thanks Rodrigo for working with Albrecht-S > >i think this issue is now resolved for me > >when saving an html > >1. if i like the highlightd name given in the Filename: box i just click 'ok' > >2. if i want to add more text or suffix to the highlighted name given in the Filename: box i just hit 'end' key (easier then using mouse click in filename box) and enter what i want > >3, if i want to enter a completely new name to save in save_dir (problem being dillo enters /tmp now) > >i don't know if changing rc = chdir("/tmp"); to rc = chdir("/html"); in src/paths.cc is what you meant by your suggestion : > >> One option to work around it is to chdir() to the save_dir, so at least >> it would make a bit more sense. > >but by doing so now > >it now puts /html/'firstkeypressed' an i can put the name i want there >(i didn't know how to put the save_dir variable there instead of my >hardcoded "/html" which would be better) (i get make error ->? >save_dir not defined in this scope) > >so all seems fixed - for me anyway Yeah, that's what I meant, but instead of hard-coding the "/html" we pick it from the preferences as `pref.save_dir` (should be an easy patch). > >thank Albrecht-S for his work and interesting posts in the >https://github.com/fltk/fltk/issues/1004#issuecomment-2210810570 > >i think the only issue left here is Albrecht-S saying that hitting '/' leaves a '/' there >my hitting the '/' key just erases highlight and leaves nothing in the filename box :) Yeah, I'll try to find where it is coming from, but I want finish other things first. Best, Rodrigo. _______________________________________________ Dillo-dev mailing list -- dillo-dev-lx9mn2B4QYRWk0Htik3J/[email protected] To unsubscribe send an email to dillo-dev-leave-lx9mn2B4QYRWk0Htik3J/[email protected]