Code Monkey home page Code Monkey logo

Comments (7)

Bloodyaugust avatar Bloodyaugust commented on May 13, 2024

+1 for this. Sucks that we can specify it for 2/3 platforms.

from nw-builder.

hotrush avatar hotrush commented on May 13, 2024

+1

from nw-builder.

stkevintan avatar stkevintan commented on May 13, 2024

+1

from nw-builder.

adam-lynch avatar adam-lynch commented on May 13, 2024

There aren't many maintainers on this project. I personally haven't a clue about this topic. Pull-requests are more than welcome 😄

from nw-builder.

maxrimue avatar maxrimue commented on May 13, 2024

@adam-lynch I would like to create a PR but unfortunately don't have time right now to get to know your code, as I'm also not as good in JavaScript yet. However, all you need to do is, to create a .desktop file for Linux builds (I think this is comparable to the plist for OS X?) which needs to be placed in the root of the resulting build folder. With the .desktop file, the resulting applications will also be treated by all Linux distros as applications, perhaps more than they do right now.

The .desktop file has a structure like this:

[Desktop Entry]
Type=Application                          # Indicates the type
Version=1.0                               # The version of the desktop entry specification to which this file complies
Name=nw.jsApp                             # The name of the application
Comment=Some nw.js app I created          # A comment which can/will be used as a tooltip
Exec=myApp                                # The executable of the application.
Icon=someIcon                             # The name of the icon that will be used to display this entry
Terminal=false                            # Describes whether this application needs to be run in a terminal or not
Categories=Education;Languages;nwjs;      # Describes the categories in which this entry should be shown

You could introduce a new universal icon property for the API with that, I would prefer linuxIcon though as most Distros seem to support png and svg for their logo.
Thanks for creating this module, helps a lot. I hope you consider putting in this functionality; ask me when you need something.

from nw-builder.

vleong2332 avatar vleong2332 commented on May 13, 2024

+1

from nw-builder.

ayushmanchhabra avatar ayushmanchhabra commented on May 13, 2024

Resolved by #661

from nw-builder.

Related Issues (20)

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.