Launcher problem
Renaud (Ron) OLGIATI
renaud at olgiati-in-paraguay.org
Tue Jun 30 15:14:04 CEST 2020
On Tue, 30 Jun 2020 12:49:14 +0100
Chris Green <cl at isbd.net> wrote:
> > > > 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 ~/
> syntax.
> > 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.
Thought I did when I put /home/ron/bin/librecad $1 in the launcher
> 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.
The script works when launched from the CLI
Cheers,
Ron.
--
The first thing we do, let's kill all the lawyers.
-- Wm. Shakespeare
-- http://www.olgiati-in-paraguay.org --
More information about the Xfce
mailing list