How to use DRI_PRIME automatically from launcher

5,878

Your command should be:

env DRI_PRIME=1 steam steam://rungameid/227300

From env man page:

NAME
       env - run a program in a modified environment

SYNOPSIS
       env [OPTION]... [-] [NAME=VALUE]... [COMMAND [ARG]...]

DESCRIPTION
       Set each NAME to VALUE in the environment and run COMMAND.
Share:
5,878

Related videos on Youtube

c.k.
Author by

c.k.

Updated on September 18, 2022

Comments

  • c.k.
    c.k. over 1 year

    DRI_PRIME

    I thought something like the command ("komut" in picture)in the desktop launcher from attached picture but it doesn't work unfortunately.You get what i intend to do i hope. so how do i make that work.

  • lordparthurnaax
    lordparthurnaax almost 5 years
    I am using Photoshop CS6 using playonlinux. Is there a similar way to use DRI_PRIME for playonlinux installations? Thanks :)