Skype for Linux behind a proxy server

Can I connect to Skype through a proxy server?

This might seem as a question with a simple answer, but in the Skype For Linux (ß-version), there seems to be no Network menu. I spent some time trying to understand why and how to alter the network configurations in the Skype for Linux (in my case tried with Ubuntu 16.4) and apparently nothing worked.
I had all the environment variables set correctly but Skype was not fetching them.
If you need to run Skype behind a corporate proxy, there you need to alter the script which invokes Skype and inject your proxy info in there.
By typing a $which skypeforlinux in your command line, you may find out something like: /usr/bin/skypeforlinux
If this does not exist, you may create it.

This is a bash script that calls the compiled ‘skypeforlinux’ program.
Just before the invocation of the executable program, you need to add an export and a proxy reference for http & https:

#!/bin/bash

SCRIPT=$(readlink -f "$0")
USR_DIRECTORY=$(readlink -f $(dirname $SCRIPT)/..)

SKYPE_PATH="$USR_DIRECTORY/share/skypeforlinux/skypeforlinux"
SKYPE_LOGS="$HOME/.config/skypeforlinux/logs"

mkdir -p $SKYPE_LOGS
export http_proxy='proxy.server:8888' &&
export https_proxy='proxy.server:8888' &&
nohup "$SKYPE_PATH" --executed-from="$(pwd)" --pid=$$ "$@" > "$SKYPE_LOGS/skype-startup.log" 2>&1 &