File create-budgie-reset-panel-menu-shortcut of Package kimi-utils-ubuntu-budgie
#!/bin/bash # How to create a specified Encoding # "echo "$var" | iconv --from-code=utf-8 --to-code=utf-16le --output=file2.txt fileDir="$(xdg-user-dir HOME)/.local/share/applications" menuFileName="reset-budgie-panel.desktop" fullFilePath="$fileDir/$menuFileName" if test -f "$fullFilePath" ; then rm -f "$fullFilePath" fi echo "[Desktop Entry]" >> "$fullFilePath" # echo "Encoding=UTF-8" >> "$fullFilePath" echo "Name=Reset Budgie panel" >> "$fullFilePath" echo "Name[sv]=Starta om Budgie panel" >> "$fullFilePath" echo "Comment=Reset whole Budgie panel when problems like no logout button." >> "$fullFilePath" echo "Comment[sv]=Starta om Budgie panel när du saknar viktiga funktioner som logout" >> "$fullFilePath" echo "Type=Application" >> "$fullFilePath" echo "Icon=system-restart-symbolic" >> "$fullFilePath" echo "Exec=sh -c 'budgie-panel --replace --reset'" >> "$fullFilePath" echo "Keywords=reset;budgie;panel;" >> "$fullFilePath" echo "Keywords[sv]=starta;omstart;budgie;panel;" >> "$fullFilePath" echo "StartupWMClass=system" >> "$fullFilePath" echo "Categories=System;Settings;" >> "$fullFilePath" if test -f "$fullFilePath" ; then echo "[OK] Reset Budgie panel menu item was created in:" echo " $fullFilePath" else echo "[ERROR] Reset Budgie panel menu item was not created." fi