+ if ($options{use_links}) {
+ if ($ENV{DISPLAY}) {
+ system('chromium',
+ # links2 doesn't like the leading http:// of proxies for some reason
+ exists $options{http_proxy}?('--proxy-server',(map {s{http://}{}; $_} $options{http_proxy})):(),
+ '--temp-profile',
+ $url,
+ ) == 0 or next;
+ rename('temp.pdf',"${pmid}.pdf") if -e 'temp.pdf';
+ } else {