I cant use my variables in the next autostart
@$x="https://mypage.com/#"
@y=`cat /proc/cpuinfo | grep Serial | cut -d ' ' -f 2`
@chromium-browser --incognito $x$y
the y variable get the serial number
When chromium opens I get %24x%24y in urll browser. What I want is https://mypage.com/#myserialnumber .
Edit 20/03/2020
First I created the file
pi@raspberrypi:~ $ touch vars.sh
Then change the file
pi@raspberrypi:~ $ nano vars.sh
#!/bin/bash
x="https://mypage.com/#"
y=`cat /proc/cpuinfo | grep Serial | cut -d ' ' -f 2`
f=$x$y
I change the autostart to this
@source ~/.vars.sh
@chromium-browser --incognito $f
but the result is the same %24f in the urll browser