- Open terminal.
cd ~/.local/share/applications
(or/usr/share/applications
if you want it to be accessible to everyone)vim com.website.AppName.desktop
- Type the ff:
[Desktop Entry]
Type=Application
Computer Information: | |
Manufacturer: LENOVO | |
Model: 2325YWN | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: GenuineIntel | |
CPU Brand: Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz | |
CPU Family: 0x6 | |
CPU Model: 0x3a |
# Download Parsec portable app | |
$client = New-Object System.Net.WebClient | |
$client.DownloadFile("https://builds.parsecgaming.com/package/parsec-flat-windows32.zip", "$HOME\Downloads\parsec-flat-windows32.zip") | |
# Extract the zip file | |
$ParsecDir = "$HOME\Downloads\parsec-portable" | |
Expand-Archive "$HOME\Downloads\parsec-flat-windows32.zip" -DestinationPath $ParsecDir | |
# Clean up | |
Remove-Item "$HOME\Downloads\parsec-flat-windows32.zip" |
# Import a custom function to retry deleting a folder in case it's still locked | |
Invoke-Expression -Command (New-Object Net.WebClient).DownloadString("https://gist.github.com/PrateekKumarSingh/65afe12a3fda5ef9ba42bf0673026728/raw/423d55256c185b8f5be819b2e1ef1aa2391fad2e/Retry-Command.ps1") | |
# Clean up Parsec files | |
$ParsecDir = "$HOME\Downloads\parsec-portable" | |
$ParsecShortcut = "$HOME\Desktop\Parsec.lnk" | |
Stop-Process -Name "parsecd" | |
Retry-Command -ScriptBlock {Remove-Item $ParsecDir -Recurse} -TimeoutInSecs 3 -Verbose | |
Remove-Item $ParsecShortcut -ErrorAction Ignore |