Skip to content

Commit

Permalink
Match installed Gimp version when installing
Browse files Browse the repository at this point in the history
Thanks secondplanet
  • Loading branch information
pft committed Mar 13, 2014
1 parent 0f3572a commit 3c474d1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gimp-install.el
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ For more information consult the file README."
(interactive)
(let* ((gmd (file-name-directory
(or load-file-name buffer-file-name)))
(gimp-version
(let ((command (shell-command-to-string "gimp --version")))
(string-match "[0-9]\.[0-9]" command)
(match-string 0 command)))
(gimp-dir
(or to-dir
(expand-file-name
Expand All @@ -61,8 +65,8 @@ For more information consult the file README."
(if (eq window-system 'w32)
(format "C:/Documents and Settings/%s/%s"
user-login-name
".gimp-2.6/")
"~/.gimp-2.6/")))))
(concat ".gimp-" gimp-version "/"))
(concat "~/.gimp-" gimp-version "/"))))))
(gimp-emacs-dir (expand-file-name (concat gimp-dir "/emacs/")))
(emacs-interaction.scm "emacs-interaction.scm")
(emacs-interaction.scm-target
Expand Down

0 comments on commit 3c474d1

Please sign in to comment.