Closed Kolpixx closed 2 years ago
This will work in a script as bash will replace $HOME with the path. It won't work if you put that straight in the desktop file.
Who wrote this lol. This is right.
Directly calling $HOME, doesn't work, but this does:
echo "[Desktop Entry] Name=Temps Comment=Temps is a beautiful weather app that resides in your system tray. GenericName=Weather App Exec=temps Icon=$(echo $HOME)/pi-apps/apps/Temps/icon-64.png StartupNotify=true Terminal=false Type=Application Categories=Utility; " | sudo tee /usr/share/applications/Temps.desktop
Uhh, echo $HOME
should work same with $HOME
.
Well, :man_shrugging:. I don't know.
I edited them back.
Anyway what I wanted to say is that referencing $HOME
will work as long as it's in the install script and not straight in the desktop file.
For example putting
path=$HOME/folder/binary
Straight in the desktop file won't work, but doing this will work:
echo "Path=$HOME/folder/binary" > /path/to/applications/app.desktop
@KolpixTV Sorry for starting a discussion in your app request.. :smiley:
@Botspot Could you enable Discussions for things like this?
No Problem.
So is there a ZIP File with the Final script that works? If not what do i have to change?
No Problem.
So is there a ZIP File with the Final script that works? If not what do i have to change?
I am not familiar with this game, you may try with my latest zip here. If everything works well, that should be the final one.
Ok Thanks i'll try it :D
it works fine
Should we mention in the description that DDnet launches in fullscreen and ignores the Esc and F11 keys?
Should we mention in the description that DDnet launches in fullscreen and ignores the Esc and F11 keys?
Certainly. maybe we should handle a way to exit ourselves (if it's possible)?
Certainly. maybe we should handle a way to exit ourselves (if it's possible)?
Alt+F4 appears to work. Honestly, I'm tempted to install xephyr
along with this app to run it in a window. :)
Well that was easy. Unfortunately the built-in mouse pointer does not work, but it was worth a shot.
You can Go in the graphic settings and Turn Off fullscreen there
You can Go in the graphic settings and Turn Off fullscreen there
Can we maybe do that automatically (by changing a config file) like stuntrally does?
You can Go in the graphic settings and Turn Off fullscreen there
Can we maybe do that automatically (by changing a config file) like stuntrally does?
That's easy. Just edit ~/.teeworlds/settings_ddnet.cfg
and change gfx_fullscreen 1
to gfx_fullscreen 0
.
One-liner to do so:
sed -i s+"gfx_fullscreen 1"+"gfx_fullscreen 0"+g $HOME/.teeworlds/settings_ddnet.cfg
I think this can be added at the last of the install script.
That's easy. Just edit
~/.teeworlds/settings_ddnet.cfg
and changegfx_fullscreen 1
togfx_fullscreen 0
. One-liner to do so:sed -i s+"gfx_fullscreen 1"+"gfx_fullscreen 0"+g $HOME/.teeworlds/settings_ddnet.cfg
I think this can be added at the last of the install script.
Does that file exist before running the program?
That's easy. Just edit
~/.teeworlds/settings_ddnet.cfg
and changegfx_fullscreen 1
togfx_fullscreen 0
. One-liner to do so:sed -i s+"gfx_fullscreen 1"+"gfx_fullscreen 0"+g $HOME/.teeworlds/settings_ddnet.cfg
I think this can be added at the last of the install script.
Does that file exist before running the program?
The file doesn't exist before first run. But we can simply create it:
mkdir $HOME/.teeworlds && echo "gfx_fullscreen 0" > $HOME/.teeworlds/settings_ddnet.cfg
Is this app installable with
sudo apt install
?Yes but the apt Version is outdated.
If you've created a zip file for this app, upload it here DDnet.zip
I did not tested it on x64 but im shure it will also work there. I will try it later today or tomorrow. And when it works i will send a ZIP File with the install script for x64 (i think it's the same as for 32x xD)
Here is the newest Version:
https://github.com/Botspot/pi-apps/issues/1093#issuecomment-955682513