denemo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Denemo-devel] binreloc for mingw builds?


From: Richard Shann
Subject: Re: [Denemo-devel] binreloc for mingw builds?
Date: Sun, 18 Jan 2015 15:09:47 +0000

On Sun, 2015-01-18 at 08:55 -0600, Jeremiah Benham wrote:
> 
> 
> On Sun, Jan 18, 2015 at 7:05 AM, Richard Shann
> <address@hidden> wrote:
>         On Sat, 2015-01-17 at 19:11 +0000, Richard Shann wrote:
>         > On Sat, 2015-01-17 at 20:05 +0100, Andreas Schneider wrote:
>         > > For an USB stick installation, wouldn't it be better to
>         have the .denemo
>         > > user configuration on the stick, too? If people use it at
>         PC pools, then
>         > > they would want to carry around their configuration as
>         well. An
>         > > advantage would also be that you could use relative paths
>         so that
>         > > everything will be found independent of drive letter
>         changes.
>         >
>         > yes :)
>         > Just it needs a bit of coding ...
>         >
>         
>         It occurred to me that the current coding uses the HOME
>         directory, so we
>         should be able to just set that to the USB stick in our batch
>         file
>         before running Denemo.
> 
> 
> I am confused why are we using HOME to look for fonts. 

We aren't, this thread is to do with user's preferences which are saved
by Denemo on exit in .denemo-1.2.1 in the HOME directory.
As Andreas suggested if different people are putting their USB stick
into the same machine (using some sort of "guest" account) then they
would like their preferences to be saved onto their USB stick not onto
the Guest user home directory (where it will overwrite the last user's
preferences).

> 
> Shouldn't the font path should be:
> get_executable_dir (), "..", "share", "fonts", "truetype", "denemo",
> NULL
> 
> Then it would not matter if the fonts are in home or on a usb or even
> in Downloads
> 
see the other email in the thread about fonts. The zip file has them in
usr/share/fonts/truetype/denemo/
but the Denemo C code expects them in usr/share/denemo/fonts
I will be able to test all this in an hour or so I hope - no virgin
machine with windows on it here.
> 
>  
>         I tried this out in the Denemo.bat file - it didn't work, and
>         that may
>         be because in Denemo we get the HOME directory via a gtk call
>         which
>         perhaps ignores the environment variable and goes to the
>         windows
>         registry instead.
>         But, we could potentially copy the .denemo-xxx folder before
>         and after
> 
> 
> I thought the .denemo-xxx folder is just for user prefs and actions. 
yes - see above

>  
>         Denemo runs in the batch file. This would avoid having to try
>         to decide
>         at run time if the program is being run from a USB stick.
>         (Because the
>         batch file only lives on the USB stick).
> 
> 
> Is this for storing the .denemo-xxx with the directory bundle?

this would be moving all the user's preferences, shortcuts, palettes etc
off the "Guest" account and onto his USB stick when he quits Denemo, so
that it is available next time he comes to the machine and starts
Denemo.bat up again.

Richard






reply via email to

[Prev in Thread] Current Thread [Next in Thread]