netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

Add functionality to configure NetBeans snap

Open boris-github opened this issue 2 years ago • 2 comments

Description

NetBeans 19 delivered as a snap has no way to be configured. For example, to set the minimum Java heap size requires a modification of the configuration file:

/snap/netbeans/current/netbeans/etc/netbeans.conf

When opening the file, we see that it is unwritable: Screenshot of terminal

If trying to configure it as a snap, we see that there are no configuration options:

$ sudo snap get netbeans
error: snap "netbeans" has no configuration

Please add functionality to configure the NetBeans snap.

Use case/motivation

No response

Related issues

Related comments: link1, link2

Are you willing to submit a pull request?

No

boris-github avatar Oct 01 '23 11:10 boris-github

You can copy the configuration file to <userdir>/etc/netbeans.conf and edit it there.

Which is not to say improvements in configuration options (across all packaging) aren't a good idea.

neilcsmith-net avatar Oct 01 '23 12:10 neilcsmith-net

That would look like:

mkdir $HOME/snap/netbeans/current/etc
cp /snap/netbeans/current/netbeans/etc/netbeans.conf $HOME/snap/netbeans/current/etc/netbeans.conf

From that point you can edit $HOME/snap/netbeans/current/etc/netbeans.conf

lkishalmi avatar Nov 14 '25 20:11 lkishalmi