Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5b36fb75 authored by android-build-prod (mdb)'s avatar android-build-prod (mdb) Committed by Gerrit Code Review
Browse files

Merge "Remove settitle"

parents a1dc661f cd2b3869
Loading
Loading
Loading
Loading
+0 −21
Original line number Diff line number Diff line
@@ -301,7 +301,6 @@ function printconfig()

function set_stuff_for_environment()
{
    settitle
    setpaths
    set_sequence_number

@@ -316,26 +315,6 @@ function set_sequence_number()
    export BUILD_ENV_SEQUENCE_NUMBER=13
}

function settitle()
{
    # This used to be opt-out with STAY_OFF_MY_LAWN, but this breaks folks
    # actually using PROMPT_COMMAND (https://issuetracker.google.com/38402256),
    # and the attempt to set the title doesn't do anything for the default
    # window manager in debian right now, so switch it to opt-in for anyone
    # who actually wants this.
    if [ "$ANDROID_BUILD_SET_WINDOW_TITLE" = "true" ]; then
        local arch=$(gettargetarch)
        local product=$TARGET_PRODUCT
        local variant=$TARGET_BUILD_VARIANT
        local apps=$TARGET_BUILD_APPS
        if [ -z "$apps" ]; then
            export PROMPT_COMMAND="echo -ne \"\033]0;[${arch}-${product}-${variant}] ${USER}@${HOSTNAME}: ${PWD}\007\""
        else
            export PROMPT_COMMAND="echo -ne \"\033]0;[$arch $apps $variant] ${USER}@${HOSTNAME}: ${PWD}\007\""
        fi
    fi
}

function addcompletions()
{
    local T dir f