(list->vector val)))))))))
(define (start-gtk name args)
- (if (let ((path (system-library-pathname "gtk-shim.so" #f)))
- (and path (file-loadable? path)))
- (if (let ((s (get-environment-variable "DISPLAY")))
- (and (string? s) (not (string-null? s))))
- (start-gtk* name args)
- (warn "DISPLAY not set"))
- (error "Gtk shim not loadable.")))
+ (let ((path (system-library-pathname "gtk-shim.so")))
+ (if (not (file-loadable? path)) (error "Gtk shim not loadable."))
+ (if (let ((s (get-environment-variable "DISPLAY")))
+ (and (string? s) (not (string-null? s))))
+ (start-gtk* name args)
+ (warn "DISPLAY not set"))))
(define (start-gtk* name args)
;; Call start_gtk. Signals an error if gtk_init_check returns 0.