Giter Club home page Giter Club logo

nw-sample-apps's People

Contributors

ayushmanchhabra avatar cesine avatar drewish avatar gwicksted avatar jaredatron avatar joshplant avatar paxa avatar sapioit avatar thejaredwilcurt avatar toots avatar zcbenz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nw-sample-apps's Issues

No Dev Tools & Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory

nw-sample-apps/frameless-window$ nw frameless_window.

[5056:5068:0406/174022.206380:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[5056:5087:0406/174022.248398:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[5056:5087:0406/174022.248475:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[5056:5087:0406/174022.248543:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[5056:5087:0406/174022.248598:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[5056:5087:0406/174022.248662:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[5056:5082:0406/174022.298227:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[5056:5082:0406/174022.298286:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[5078:5078:0406/174022.387372:ERROR:viz_main_impl.cc(150)] Exiting GPU process due to errors during initialization
[5169:5169:0406/174022.461412:ERROR:vaapi_wrapper.cc(573)] Could not get a valid VA display

Dev Tool button does not load Dev Tools
nw-sample-apps/custom-tray-menu$ npm start

> nw-custom-tray-window@ start /home/user/nw-sample-apps/custom-tray-menu
> nw .

[5407:5419:0406/174207.530602:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[5407:5438:0406/174207.580657:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[5407:5438:0406/174207.580743:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[5407:5438:0406/174207.580838:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[5407:5438:0406/174207.580906:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[5407:5438:0406/174207.580977:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[5407:5432:0406/174207.632558:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[5407:5432:0406/174207.632633:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[5428:5428:0406/174207.714097:ERROR:viz_main_impl.cc(150)] Exiting GPU process due to errors during initialization
[5519:5519:0406/174207.786360:ERROR:vaapi_wrapper.cc(573)] Could not get a valid VA display

Feature request: Listen Notifications from 3rdParty apps on MacOS

On MacOS, installed user apps can send notifications, that can read by Cocoa like using NSDistributedNotificationCenter so something like

NSDistributedNotificationCenter *center = [NSDistributedNotificationCenter defaultCenter];
[center addObserver:self selector:@selector(allNotifications:) name:nil object:nil];

Is possible to build an API to listen for notifications to be added to the Notifications API: https://github.com/nwjs/nw.js/wiki/Notification

update examples

can you update examples for support for both current release of node-webkit, and also add more samples/examples that show added functionality, this repo hasn't been updated in over a year after all

can't open mini code editor

OSX 10.7.5
node-webkit 25.0.1324.0 (1324.0)

$ /Applications/node-webkit.app/Contents/MacOS/node-webkit foo.nw 
[8567:1201/005321:ERROR:renderer_main.cc(218)] Running without renderer sandbox
[8565:1201/005321:INFO:CONSOLE(26)] "Uncaught Invalid menu type: undefined", source: menu.js (26)

http source in script tag is not working

I'm trying <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> in one of my html but when i run it in nodewebkit im gettting below error
Failed to load resource: net:: ERR_FILE_NOT_FOUND
file://code.jquery.com/jquery-1.9.1.min.js

Is there a way i can initialise a js file without creating a local dir like js/ and then put them in?

Frameless + Maximize / Minimize does not keep the current route.

I'm using AngularJS v1.3.15 and NW v0.12.1 with Windows 7 SP1 64 Bits.
My application (Web API) have a problem with window operations. When I called win.maximize() or anyone, the route change to Index.

I think that "var win = nw.Window.get();" see the index as your current window, because the window.location.path refers to index.

However, if I keep frame = true in my package.json, the frame buttons work perfectly.
The behavior of object window is different of nw than native frame.

Issue with "scandir()"

I just discovered NW.JS and this sample-repo. Trying it on file-explorer:

f:\MinGW32\src\Languages\NWJS\Samples> ..\SDK\nw.exe file-explorer

and navigating to my Documents folder on my C:, showed this dialogue:

image

It should have been c:\Users\gvane\Documents. It exist with some files and sub-directories.
The above directory does not exist.

The directory value (c:\Users\gvane\Documents) is what
SHGetFolderPath (CSIDL_PERSONAL, SHGFP_TYPE_DEFAULT) returns here.
And it'sthe same as %USERPROFILE%\Documents.

I'm on Win-10. Version-stuff from nw.exe:

nw.js v0.85.0
Node v21.1.0
Chromium 122.0.6261.69
commit hash: 0782fe7-2f7cef5-14203a4-3b8c807

Mac node-webkit.app - no package.json in the package?

Trying to get started on the Mac. Keep getting "invalid package" no 'package.json' file... but it is in there. Tried with a few samples from the github examples page and the quick start. Both fail. (or maybe I did?)

Doesn't seem to be working.

All I see are 3 different coloured blocks. Using Chromes Developer Tools I can see the following javascript error repeated about 63 times:

Uncaught Error: Unable to get render view in DeallocateObject

Archive Abandoned Project?

Since this repo hasn't been updated in 7+ years, I recommend archiving it. After archiving, this repo would still be readable for reference purposes. However, it'll be obvious that it's an abandoned project (especially if the README gets a quick update, too).

nw install fails on Debian 10

Trying to install nw as per readme.md under: https://github.com/zcbenz/nw-sample-apps

nw installation fails - can't figure out the failure reason even after reading the error log.

Please help.

On Debian 10, running with sudo for system-wide installation:

$ sudo npm install -g nw

The last part of the error log:

3564 silly postinstall [email protected]
3565 info lifecycle [email protected]~postinstall: [email protected]
3566 verbose lifecycle [email protected]~postinstall: unsafe-perm in lifecycle false
3567 verbose lifecycle [email protected]~postinstall: PATH: /opt/nodejs/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/opt/nodejs/lib/node_modules/nw/node_modules/.bin:/opt/nodejs/lib/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
3568 verbose lifecycle [email protected]~postinstall: CWD: /opt/nodejs/lib/node_modules/nw
3569 silly lifecycle [email protected]~postinstall: Args: [ '-c', 'node scripts/install.js' ]
3570 silly lifecycle [email protected]~postinstall: Returned: code: 1  signal: null
3571 info lifecycle [email protected]~postinstall: Failed to exec postinstall script
3572 timing action:postinstall Completed in 16579ms
3573 verbose unlock done using /root/.npm/_locks/staging-64689f1deb8f5141.lock for /opt/nodejs/lib/node_modules/.staging
3574 timing stage:rollbackFailedOptional Completed in 121ms
3575 timing stage:runTopLevelLifecycles Completed in 24181ms
3576 verbose stack Error: [email protected] postinstall: `node scripts/install.js`
3576 verbose stack Exit status 1
3576 verbose stack     at EventEmitter.<anonymous> (/opt/nodejs/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
3576 verbose stack     at EventEmitter.emit (events.js:182:13)
3576 verbose stack     at ChildProcess.<anonymous> (/opt/nodejs/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
3576 verbose stack     at ChildProcess.emit (events.js:182:13)
3576 verbose stack     at maybeClose (internal/child_process.js:962:16)
3576 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
3577 verbose pkgid [email protected]
3578 verbose cwd /home/<user>/foo/bar
3579 verbose Linux 4.19.0-6-amd64
3580 verbose argv "/opt/nodejs/bin/node" "/usr/bin/npm" "install" "-g" "nw"
3581 verbose node v10.15.0
3582 verbose npm  v6.13.7
3583 error code ELIFECYCLE
3584 error errno 1
3585 error [email protected] postinstall: `node scripts/install.js`
3585 error Exit status 1
3586 error Failed at the [email protected] postinstall script.
3586 error This is probably not a problem with npm. There is likely additional logging output above.
3587 verbose exit [ 1, true ]

Many thanks!

Request to relocate repo to NW Utils

Hi @zcbenz,

I'm a member of a GitHub organisation called NW Utils (https://github.com/nwutils/). I'm trying to consolidate NW tooling so it's easier to find useful projects and give much needed life to stagnant ones. I also think this would be a great opportunity to exchange ideas and learn new things.

Let me know what you think and if you’d be willing to.

Best Regards
Ayushman

Add License

User Story: As a programmer I may want to use some of the sample app code in my own (possibly open source) code.

Problem: The repo does not a license

Suggestion: Add a license which makes clear, if the code is proprietary or could be used in own projects. (The chrome apps example-repo from with which this repo is seemingly related, uses the Apache 2.0 license)

npm install -d failed on my system

npm ERR! owner ls Couldn't get owner data nw-tests
npm ERR! 404 404 Not Found: nw-tests
npm ERR! 404
npm ERR! 404 'nw-tests' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.

npm ERR! System Darwin 14.3.0
npm ERR! command "/Users/None/Develop/node-v0.10.32-darwin-x64/bin/node" "/Users/None/Develop/node-v0.10.32-darwin-x64/bin/npm" "owner" "ls" "nw-tests"
npm ERR! cwd /Users/None/node-webkit/nw.js/tests
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code E404
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/None/node-webkit/nw.js/tests/npm-debug.log
npm ERR! not ok code 0

Custom Tray Menu doesnt work on MacOSX

NW.JS Version: v0.15.4
NW.JS Commit hash: 63bc85a-0fc8753-3ee2c58-8655cb9

/Users/theaifam5/Desktop/Test/custom-tray-menu/custom_tray_menu.js:3
var gui = global.window.nwDispatcher.requireNwGui();
                                    ^
TypeError: Cannot read property 'requireNwGui' of undefined
    at Object.<anonymous> (/Users/theaifam5/Desktop/Test/custom-tray-menu/custom_tray_menu.js:3:37)
    at Module._compile (module.js:565:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:482:32)
    at tryModuleLoad (module.js:441:12)
    at Function.Module._load (module.js:433:3)
    at Module.require (module.js:492:17)
    at require (internal/module.js:20:19)
    at self.require (<anonymous>:11:26)

Buttons also doesn't work.

webgl example does not run correctly

I am running node-js v0.11.11 and node-webkit v0.9.2 in Windows.

When I run nw webgl, a windows pop up, but the content is not rendered correctly. Here is the FULL screen shot of the window created by node-webkit:

iss

run the notification get an error

use nwbuild -r . run the notification,then click the nw-notify menu get the error
the nw.js version is 0.17.4
Cannot read property 'requireNwGui' of undefined(…)

please add unmaximized

please give me code of unmaximized .
document.querySelector('#maximize-window-button').onclick = function () {
gui.Window.get().maximize();
};

address_bar and folder_view

I was wondering where you got the address bar and folder_view packages that you are requiring from the main.js file in the file-explorer sample. I can't seem to find where it comes from or whether or not they're a part of nw

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.