Skip to content

Instantly share code, notes, and snippets.

@sudotac
Created February 6, 2018 14:38
Show Gist options
  • Save sudotac/305c2448e82a3f593f01c702b8801f6e to your computer and use it in GitHub Desktop.
Save sudotac/305c2448e82a3f593f01c702b8801f6e to your computer and use it in GitHub Desktop.
LINE (Chrome拡張機能 https://chrome.google.com/webstore/detail/line/ophjlpahpchlmihnnnihgmmeilfjmjjc ) のデスクトップエントリー
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=LINE
Exec=chromium --profile-directory=Default --app=chrome-extension://ophjlpahpchlmihnnnihgmmeilfjmjjc/index.html
Icon=naver-line
StartupWMClass=crx_ophjlpahpchlmihnnnihgmmeilfjmjjc
#
# Execute the following command if you want icon for desktop entry
# for s in {32,48,64,96,128}; do xdg-icon-resource install --size ${s} --context apps ~/.config/chromium/Default/Extensions/ophjlpahpchlmihnnnihgmmeilfjmjjc/2.1.0_0/res/img/line_logo_${s}x${s}_on.png naver-line; done
@KennFatt
Copy link

Thanks for sharing this snippet!

For Google Chrome user, run this instead to applying the icons:

for s in {32,48,64,96,128}; do xdg-icon-resource install --size ${s} --context apps ~/.config/google-chrome/Default/Extensions/ophjlpahpchlmihnnnihgmmeilfjmjjc/*/res/img/line_logo_${s}x${s}_on.png naver-line; done

@anakaiti
Copy link

To install, copy the file into ~/.local/share/applications.
You can append Categories=GNOME;GTK;Network;InstantMessaging; to the file to make it show up in the right menu category.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment