Giter Club home page Giter Club logo

Comments (2)

MarkHedleyJones avatar MarkHedleyJones commented on May 26, 2024

Hi,
A wrapper script should do it. I just made a simple test case with the following bash scripts:

~/test1.sh

echo $HOME
echo $TEST

and a second, ~/test2.sh

export TEST=goat
sh ~/test1.sh

Then I give the second script execute permissions
chmod +x test2.sh
Set test to something distinctive that isn't goat
export TEST=dog

Run the test2 script through dmenu-extended with the double semi-colons so the resulting window stays open after execution (/home/mark/test2.sh;;) and the result I get is:

/home/mark
goat

If I run the same script directly I get

/home/mark
dog

Is that doing what you want?

from dmenu-extended.

vestingz avatar vestingz commented on May 26, 2024

Thank you very much for your suggestion! The example worked as expected, however, i could not make it work with my scenario (starting libreoffice with a different GTK_THEME variable). The solution was finally to create a .desktop file and just exec env $VAR=VAL libreoffice --writer. Thanks again for your kind help :)

from dmenu-extended.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.