rauschma / openurl Goto Github PK
View Code? Open in Web Editor NEWNode.js module for opening a URL via the operating system
Node.js module for opening a URL via the operating system
i couldn't find any way to attach a file ?
Hi there,
I'm using Ubuntu 14.04 with Firefox 54.0 (64-bit).
I used openurl
to open a URL in Firefox, and then closed the browser.
Incidentally, I got these errors in the terminal (after closing the browser window):
Error:
(firefox:5945): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed
(firefox:5945): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed
(firefox:5945): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed
(firefox:5945): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed
(firefox:5945): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed
(firefox:5945): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed
(firefox:5945): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed
(firefox:5945): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed
(firefox:5945): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed
(firefox:5945): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed
(firefox:5945): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed
(firefox:5945): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed
(firefox:5945): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed
(firefox:5945): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed
at Socket.<anonymous> (/home/luke/io1/node_modules/openurl/openurl.js:35:25)
at emitNone (events.js:91:20)
at Socket.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
But that's not the main issue. When I opened Firefox, it forgot all my settings, theme, etc. Although, it remembered by account and history.
So what's going on here?
I can see you added .idea
to your .npmignore
. Yet when I look at the published openurl
folder in my node_modules
folder I can see that a .idea
folder is included. I don't think this folder was intentionally published and recommend removing it.
Publishing folders by accident can lead to exposing private information that you may otherwise not want to be made available.
Related to: npm/npm#5673
This module ships with Apollo 2 Universal Starter Kit . On running the script an error is thrown which I don't understand.
spin error Error: ATTENTION: default value of option force_s3tc_enable overridden by environment.
at Socket.<anonymous> (/home/adam/PhpstormProjects/joboty/node_modules/openurl/openurl.js:35:25)
at Socket.emit (events.js:164:20)
at endReadableNT (_stream_readable.js:1054:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
Maybe it's my mistake of understanding, but it can only run locally right?
Can you add support for Android?
When trying to use openurl to open a link with equals, eg, "http://www.google.com/test=a", openurl ends up opening an explorer window instead of the browser.
I found a alternate way to open URLs with special characters in Windows that you may want to use instead:
var exec = require("child_process").exec
execStr = "explorer.exe ^\"" + url + "^\"";
exec(execStr);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.