Settings as command-line options?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Settings as command-line options?

Christoph Raab
Dear fellow Inkscapists,

thanks to the "Larger" option for icon sizes in the 0.92 version, more of the icons are now usable on my laptop's high-DPI display. Using an external monitor, that makes them too large of course, and changing the setting means starting Inkscape, going into the preferences, and restarting. Since everything else works fine, I didn't want to try compiling with GTK3 enabled since it's marked "experimental".

But can I give these these icon size preferences as an option when starting Inkscape? Then I could just start a different script depending on what monitor I'm using. Of course it would be ideal if that's already an option, since then I could eventually switch to a binary distribution. But I don't mind compiling it myself either, if it's something I can add in myself. Does somebody know how this could work?

Best,
Christoph

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Inkscape-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/inkscape-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Settings as command-line options?

Maren Hachmann
I think it would probably work if one has two preferences files, and
renames them dynamically in that startup script.

The better option would probably be to set the environment variable for
the INKSCAPE_PROFILE_DIR to a different directory (see man page). I
still need to try that out (it's definitely better than using one
preferences file for different Inkscape versions) :)

Regards,
 Maren

Am 09.01.2017 um 10:38 schrieb Christoph Raab:

> Dear fellow Inkscapists,
>
> thanks to the "Larger" option for icon sizes in the 0.92 version, more
> of the icons are now usable on my laptop's high-DPI display. Using an
> external monitor, that makes them too large of course, and changing the
> setting means starting Inkscape, going into the preferences, and
> restarting. Since everything else works fine, I didn't want to try
> compiling with GTK3 enabled since it's marked "experimental".
>
> But can I give these these icon size preferences as an option when
> starting Inkscape? Then I could just start a different script depending
> on what monitor I'm using. Of course it would be ideal if that's already
> an option, since then I could eventually switch to a binary
> distribution. But I don't mind compiling it myself either, if it's
> something I can add in myself. Does somebody know how this could work?
>
> Best,
> Christoph
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>
>
>
> _______________________________________________
> Inkscape-user mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/inkscape-user
>


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Inkscape-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/inkscape-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Settings as command-line options?

Christoph Raab
Hi Maren,

thanks for the pointer! I didn't know about the preferences file, but now I've found the relevant options in there (comparing to /ui/dialog/inkscape-preferences.cpp), which are:
toolbox/tools/small "Toolbox icon size:"
toolbox/small "Control bar icon size"
toolbox/secondary "Secondary toolbar icon size"
(with the path describing nested XML groups)
Guess you'd need an XML parser to maintain two files where these two options are different, but changes are applied to both, but for now this seems to work. Thanks!

Best,
Christoph

On Mon, Jan 9, 2017 at 1:56 PM Maren Hachmann <[hidden email]> wrote:
I think it would probably work if one has two preferences files, and
renames them dynamically in that startup script.

The better option would probably be to set the environment variable for
the INKSCAPE_PROFILE_DIR to a different directory (see man page). I
still need to try that out (it's definitely better than using one
preferences file for different Inkscape versions) :)

Regards,
 Maren

Am 09.01.2017 um 10:38 schrieb Christoph Raab:
> Dear fellow Inkscapists,
>
> thanks to the "Larger" option for icon sizes in the 0.92 version, more
> of the icons are now usable on my laptop's high-DPI display. Using an
> external monitor, that makes them too large of course, and changing the
> setting means starting Inkscape, going into the preferences, and
> restarting. Since everything else works fine, I didn't want to try
> compiling with GTK3 enabled since it's marked "experimental".
>
> But can I give these these icon size preferences as an option when
> starting Inkscape? Then I could just start a different script depending
> on what monitor I'm using. Of course it would be ideal if that's already
> an option, since then I could eventually switch to a binary
> distribution. But I don't mind compiling it myself either, if it's
> something I can add in myself. Does somebody know how this could work?
>
> Best,
> Christoph
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>
>
>
> _______________________________________________
> Inkscape-user mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/inkscape-user
>


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Inkscape-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/inkscape-user

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Inkscape-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/inkscape-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Settings as command-line options?

Maren Hachmann
I've solved it like this for my own needs on Linux Mint
(needed an Inkscape 0.92 and an Inkscape 0.91 on my desktop, with
separate preferences files):

- don't update 0.91, which is installed already.
- compile Inkscape 0.92 with prefix /opt/inkscape0.92
- create additional directory ~/.config/inkscape0.92
- inside, create symlinks to extensions, symbols and icons directory in
~/.config/inkscape
- create desktop starter for Inkscape 0.92 with the following command:

env INKSCAPE_PROFILE_DIR="/home/<username>/.config/inkscape0.92"
/opt/inkscape0.92/bin/inkscape

Regards,
 Maren

Am 11.01.2017 um 17:53 schrieb Christoph Raab:

> Hi Maren,
>
> thanks for the pointer! I didn't know about the preferences file, but
> now I've found the relevant options in there (comparing to
> /ui/dialog/inkscape-preferences.cpp), which are:
> toolbox/tools/small "Toolbox icon size:"
> toolbox/small "Control bar icon size"
> toolbox/secondary "Secondary toolbar icon size"
> (with the path describing nested XML groups)
> Guess you'd need an XML parser to maintain two files where these two
> options are different, but changes are applied to both, but for now this
> seems to work. Thanks!
>
> Best,
> Christoph
>
> On Mon, Jan 9, 2017 at 1:56 PM Maren Hachmann <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     I think it would probably work if one has two preferences files, and
>     renames them dynamically in that startup script.
>
>     The better option would probably be to set the environment variable for
>     the INKSCAPE_PROFILE_DIR to a different directory (see man page). I
>     still need to try that out (it's definitely better than using one
>     preferences file for different Inkscape versions) :)
>
>     Regards,
>      Maren
>
>     Am 09.01.2017 um 10:38 schrieb Christoph Raab:
>     > Dear fellow Inkscapists,
>     >
>     > thanks to the "Larger" option for icon sizes in the 0.92 version, more
>     > of the icons are now usable on my laptop's high-DPI display. Using an
>     > external monitor, that makes them too large of course, and
>     changing the
>     > setting means starting Inkscape, going into the preferences, and
>     > restarting. Since everything else works fine, I didn't want to try
>     > compiling with GTK3 enabled since it's marked "experimental".
>     >
>     > But can I give these these icon size preferences as an option when
>     > starting Inkscape? Then I could just start a different script
>     depending
>     > on what monitor I'm using. Of course it would be ideal if that's
>     already
>     > an option, since then I could eventually switch to a binary
>     > distribution. But I don't mind compiling it myself either, if it's
>     > something I can add in myself. Does somebody know how this could work?
>     >
>     > Best,
>     > Christoph
>     >
>     >
>     >
>     ------------------------------------------------------------------------------
>     > Check out the vibrant tech community on one of the world's most
>     > engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>     >
>     >
>     >
>     > _______________________________________________
>     > Inkscape-user mailing list
>     > [hidden email]
>     <mailto:[hidden email]>
>     > https://lists.sourceforge.net/lists/listinfo/inkscape-user
>     >
>
>
>     ------------------------------------------------------------------------------
>     Check out the vibrant tech community on one of the world's most
>     engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>     _______________________________________________
>     Inkscape-user mailing list
>     [hidden email]
>     <mailto:[hidden email]>
>     https://lists.sourceforge.net/lists/listinfo/inkscape-user
>
>
>
> ------------------------------------------------------------------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
>
>
>
> _______________________________________________
> Inkscape-user mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/inkscape-user
>


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Inkscape-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/inkscape-user
Loading...