question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Linux: Be more restrictive with executable name

See original GitHub issue
  • Version: 7.11.3
  • Target: Linux (any)

Currently electron-builder uses productName info for naming app’s main executable, which may be painful for Linux binaries being run from command terminal, if that info contains uppercase letters, spaces, etc.

I would like to suggest a new option executableName for Linux binaries, with the following restrictions:

  • should not contain spaces
  • should not contain uppercase letters
  • should not contain any special characters which have some meaning for the shell (e.g.: &).

If no executableName is provided in package.json, electron-builder could calculate it from name or productName options (convert to lowercase, strip spaces, replace special characters with - or _, etc.).

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
develarcommented, Nov 3, 2016

Yes. Also, in any case, all file names are sanitised using https://www.npmjs.com/package/sanitize-filename

1reaction
develarcommented, Nov 3, 2016

but it’s not clear to me in your documentation which character set is allowed for name.

name according to npm rules — https://docs.npmjs.com/files/package.json#name “must not have uppercase letters in the name”, “name can’t contain any non-URL-safe characters.”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Classic SysAdmin: Understanding Linux File Permissions
The setuid/setguid permissions are used to tell the system to run an executable as the owner with the owner's permissions. Be careful using ......
Read more >
Restricting symbols to local scope for linux executable
The simplest solution is to rename the symbols (by changing source code) in your executable so they don't conflict with the shared library...
Read more >
CSC128: Permissions and Links: chmod and ls
It is important that in most cases, it makes no sense to set permissions on yourself more restrictive than group or other, therefore:...
Read more >
Linux File Permissions: Understanding setuid, setgid, and ...
In some cases, the sticky bit is more intuitively referred to as a "restricted deletion flag" or "restricted deletion bit". The /tmp directory ......
Read more >
Linux Chmod Command Help and Examples
The command name chmod stands for "change mode." It restricts the way a file can be accessed. For more information about file modes, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found