Skip to content
Snippets Groups Projects
Commit cc625946 authored by Gerhard Gonter's avatar Gerhard Gonter :speech_balloon:
Browse files

alternative method to find notes path on cygwin

parent bac31d9c
No related branches found
No related tags found
No related merge requests found
...@@ -50,9 +50,21 @@ use Tomboy::Directory; ...@@ -50,9 +50,21 @@ use Tomboy::Directory;
use Tomboy::TOC; use Tomboy::TOC;
my $toc_file; my $toc_file;
my $note_dir= $ENV{'HOME'} . '/.local/share/tomboy';
# TODO: does not work on cygwin!
my $note_dir_changed= 0; my $note_dir_changed= 0;
my $note_dir;
if ($ENV{'OSTYPE'} eq 'cygwin')
{
my $p= `cygpath -O`;
chop ($p);
my @p= split('/', $p);
pop (@p);
$note_dir= join ('/', @p, qw(AppData Roaming Tomboy notes));
}
else
{
$note_dir= $ENV{'HOME'} . '/.local/share/tomboy';
}
my $start_tb= 0; my $start_tb= 0;
my $start_visual_editor= 0; # AKA $EDITOR my $start_visual_editor= 0; # AKA $EDITOR
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment