Skip to content

Commit

Permalink
Add username to temporary directory (/tmp/tuxguitar-<username>/), oth…
Browse files Browse the repository at this point in the history
…erwise TuxGuitar can only be started by one user on Linux and BSD
  • Loading branch information
helge17 committed Sep 6, 2023
1 parent 20c5654 commit 785c915
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion TuxGuitar/doc/CHANGES
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
TuxGuitar 1.6.0 (2023-08-29) changes:
TuxGuitar 1.6.0 (2023-09-06) changes:

* Add click & drag selection
* Copy/paste and repeat selection
Expand Down
2 changes: 1 addition & 1 deletion TuxGuitar/doc/INSTALL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Install TuxGuitar

You can find ready to use installation packages for Linux, Windows, MacOS FreeBSD and Android on
You can find ready to use installation packages for Linux, Windows, MacOS, FreeBSD and Android on

[https://github.com/helge17/tuxguitar/releases/](https://github.com/helge17/tuxguitar/releases/)

Expand Down
4 changes: 2 additions & 2 deletions TuxGuitar/share/help/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ <h1>TuxGuitar project: About</h1>
<h2>Description</h2>
<p>TuxGuitar is a multitrack tablature editor and player written in Java using SWT Graphic libraries. It is a multi-platform application available for Linux, Windows, MacOS, FreeBSD and other operating systems. TuxGuitar is open-source software, released under the GNU Lesser General Public License.</p>
<h2>Website</h2>
<p>You should check TuxGuitar project website on <b><a href=https://github.com/helge17/tuxguitar>https://github.com/helge17/tuxguitar</a></b>.</p>
<p>You should check TuxGuitar project website on <b><a href="https://github.com/helge17/tuxguitar">https://github.com/helge17/tuxguitar</a></b>.</p>
<h2>Source repository</h2>
<p>TuxGuitar source repository can be browsed on <b><a href=https://github.com/helge17/tuxguitar>https://github.com/helge17/tuxguitar</a></b>.</p>
<p>TuxGuitar source repository can be browsed on <b><a href="https://github.com/helge17/tuxguitar">https://github.com/helge17/tuxguitar</a></b>.</p>
<h2>Contribution</h2>
<p>If you have sufficient skills and some ideas, you are free to join the project.</p>
<h2>Authors</h2><br />
Expand Down
2 changes: 1 addition & 1 deletion TuxGuitar/src/org/herac/tuxguitar/app/TGMainSingleton.java
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public URL parseUrl(String spec) throws MalformedURLException {
}

private File getTemporaryFolder() {
return new File(System.getProperty("java.io.tmpdir") + File.separator + "tuxguitar");
return new File(System.getProperty("java.io.tmpdir") + File.separator + "tuxguitar" + "-" + System.getProperty("user.name"));
}

private File getUrlFolder() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
public class TGDocumentationDialog {

private static final String RESOURCE_PATH = "help";
private static final String TEMPORAL_PATH = System.getProperty("java.io.tmpdir") + File.separator + "tuxguitar";
private static final String TEMPORAL_PATH = System.getProperty("java.io.tmpdir") + File.separator + "tuxguitar" + "-" + System.getProperty("user.name");

private TGViewContext context;

Expand Down

0 comments on commit 785c915

Please sign in to comment.