cl at isbd.net
Tue Jun 30 13:49:14 CEST 2020
On Tue, Jun 30, 2020 at 07:12:29AM -0400, Renaud (Ron) OLGIATI wrote:
> On Tue, 30 Jun 2020 12:08:35 +0200
> "jEsuSdA 8)" <listas at jesusda.com> wrote:
> > El 29/6/20 a las 17:33, Renaud (Ron) OLGIATI escribió:
> > > I have been having a problem with LibreCAD, the font size used for
> the menus, the menu bar, and the status bar are so small that the program
> is unusable as it is.
> > > Found a solution which is to launch it from the CLI with xrandr --dpi
> 96 && librecad, which solves the font size problem.
> > > So I tried to put that in my LibreCAD launcher, replacing librecad
> %F with /usr/bin/xrandr --dpi 96 && librecad %F
> > > Sadly, it does not work, and librecad does not start.
> > > Am I missing something ?
> > May be you can create a script "librecad.sh" with the content:
> > 8<----------
> > #!/bin/bash
> > /usr/bin/xrandr --dpi 96 && librecad $1
> > exit
> > 8<----------
> > And then, you can change the launcher to call it instead.
> > I use this method with some launchers that does not work at all if the
> > command line has several parameters.
> Thank you for the pointer.
> Tried this, running ~/bin/librecad from the CLI works beautifully, but
> if I put ~/bin/librecad %F in the launcher it gives me an error window
> Failed to execute ~/bin/librecad %F
> Failed to execute child process "~/bin/librecad" (no such file or directory)
Well that's simply because the launcher doesn't understand the ~/
> and if I put /home/ron/bin/librecad $1 in the launcher LibreCAD starts
> with the unreadable small font.
Which you have avoided by giving a full path to the script.
What you actually might need to do is launch a terminal window running
bash and then get that to run your script that does what you want. If
you work at it you can make the terminal window invisible or at least
disappear when you get the GUI you want running.
More information about the Xfce