Re: [COOT] set Coot download folder path in preferences

2018-03-26 Thread Paul Emsley


On 24/03/18 18:28, Kenneth Satyshur wrote:
>
> coot 0.8.9 crashes when reading cif file. I tried reading my G4P.cif
> file and coot crashed with the following output:
>
>

For the moment try using Modern fileselector dialogs (Edit Preferences
General).

Paul.




Re: [COOT] set Coot download folder path in preferences

2018-03-24 Thread Kenneth Satyshur
coot 0.8.9 crashes when reading cif file. I tried reading my G4P.cif file and 
coot crashed with the following output:


** (coot-bin:167556): WARNING **: Widget not found: 
cif_dictionary_file_selector_create_molecule_checkbutton
/home/xray/ccp4/ccp4-7.0/ccp4-7.0/bin/coot: line 288: 167556 Segmentation fault 
 (core dumped) $coot_bin "$@"
catching the crash log:
Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "pk-gtk-module"
coot-exe: "/home/xray/ccp4/ccp4-7.0/ccp4-7.0/libexec/coot-bin"
coot-version:
/home/xray/ccp4/ccp4-7.0/ccp4-7.0/libexec/coot-bin
platform:
/bin/uname
core: #f
No core file found.  No debugging


Appears to crash for reading any cif restraints file.

kas


Kenneth A. Satyshur, M.S., Ph.D.

Senior Scientist,

Depts. Bacteriology, Bio Molecular Chemistry,

Neuroscience, Oncology, Carbone Cancer Center,

and the School of Pharmacy

University of Wisconsin-Madison

Madison, Wisconsin, 53706

608-215-5207


From: Mailing list for users of COOT Crystallographic Software 
 on behalf of Paul Emsley 
Sent: Wednesday, March 21, 2018 8:42:49 PM
To: COOT@JISCMAIL.AC.UK
Subject: Re: set Coot download folder path in preferences

On 19/03/2018 17:34, Xiao Lei wrote:
>
> I would like to change the default Coot download folder path (let's say after 
> fetch a pdb, Coot saved the
> pdb in the default download folder). I looked into the Edit--> Preferences in 
> Coot and I could not find a
> place to change the PATH.  How could I find this option in Coot?
>

You could create a link from your chosen directory to coot-download in the 
current directory before coot
creates the directory.

Alternatively, you could use the dirty hack attached - edit it to set the 
directory that you choose and put
this script in your ~/.coot-preferences directory.

Paul.


Re: [COOT] set Coot download folder path in preferences

2018-03-21 Thread Paul Emsley

On 19/03/2018 17:34, Xiao Lei wrote:


I would like to change the default Coot download folder path (let's say after fetch a pdb, Coot saved the 
pdb in the default download folder). I looked into the Edit--> Preferences in Coot and I could not find a 
place to change the PATH.  How could I find this option in Coot?




You could create a link from your chosen directory to coot-download in the current directory before coot 
creates the directory.


Alternatively, you could use the dirty hack attached - edit it to set the directory that you choose and put 
this script in your ~/.coot-preferences directory.


Paul.


(define (my-chosen-download-directory)
  "/home/xiaolei/coot-download" ;; or some such
)

(define (get-directory dir-name)

  (if (string? dir-name)
  (if (string=? dir-name "coot-download")
  (set! dir-name (my-chosen-download-directory

  (if (file-exists? dir-name)

  (if (is-directory? dir-name)
  dir-name
  #f)

  (let ((status (make-directory-maybe dir-name)))

(if (= status 0)
dir-name

(let ((h (getenv "HOME")))
  (if (not (string? h))
  #f ;; couldnt find home.  Baah.
  (begin
(let ((new-dir (append-dir-dir h dir-name)))
  (let ((status (make-directory-maybe new-dir)))
(if (= status 0)
new-dir
#f))



Re: [COOT] set Coot download folder path in preferences

2018-03-20 Thread Bernhard Lohkamp

This is currently not possible. Maybe something for the wishlist...

B

On 19/03/2018 18:34, Xiao Lei wrote:

Dear Coot users,

I would like to change the default Coot download folder path (let's say 
after fetch a pdb, Coot saved the pdb in the default download folder). I 
looked into the Edit--> Preferences in Coot and I could not find a place 
to change the PATH.  How could I find this option in Coot?


Thanks ahead.




--
***

Dr. Bernhard Lohkamp
Associate Professor/Docent
Div. Molecular Structural Biology
Dept. of Medical Biochemistry and Biophysics (MBB)
Karolinska Institutet
S-17177 Stockholm
Sweden

phone: (+46) 08-52487695
fax:   (+46) 08-327626
email: bernhard.lohk...@ki.se


[COOT] set Coot download folder path in preferences

2018-03-19 Thread Xiao Lei
Dear Coot users,

I would like to change the default Coot download folder path (let's say
after fetch a pdb, Coot saved the pdb in the default download folder). I
looked into the Edit--> Preferences in Coot and I could not find a place to
change the PATH.  How could I find this option in Coot?

Thanks ahead.