Tijuco

Creating launchers for Microsoft Office 365 on Fedora Linux

First, download the .svg icons from Microsoft office Logo Icon of Flat style - Available in SVG, PNG, EPS, AI & Icon fonts and save at /usr/share/icons/hicolor/scalable/apps/ with the names outlook.svg, excel.svg, powerpoint.svg, word.svg and office.svg

Then logged with root copy and paste the content bellow in your terminal:

launch="#! /usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Exec=office office
Name=Microsoft Office 365
Icon=/usr/share/icons/hicolor/scalable/apps/office.svg
Categories=Office;"
app=`echo "$launch" | grep Exec | cut -d" " -f2`
echo "$launch" > /usr/share/applications/office.desktop

launch="#! /usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Exec=office excel
Name=Microsoft Excel
Icon=/usr/share/icons/hicolor/scalable/apps/excel.svg
Categories=Office;"
app=`echo "$launch" | grep Exec | cut -d" " -f2`
echo "$launch" > /usr/share/applications/excel.desktop

launch="#! /usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Exec=office powerpoint
Name=Microsoft Power Point
Icon=/usr/share/icons/hicolor/scalable/apps/powerpoint.svg
Categories=Office;"
app=`echo "$launch" | grep Exec | cut -d" " -f2`
echo "$launch" > /usr/share/applications/powerpoint.desktop

launch="#! /usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Exec=office word
Name=Microsoft Word
Icon=/usr/share/icons/hicolor/scalable/apps/word.svg
Categories=Office;"
echo "$launch" > /usr/share/applications/word.desktop

launch="#! /usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Exec=office outlook
Name=Microsoft Outlook
Icon=/usr/share/icons/hicolor/scalable/apps/outlook.svg
Categories=Office;"
app=`echo "$launch" | grep Exec | cut -d" " -f2`
echo "$launch" > /usr/share/applications/outlook.desktop

The last step is to create the file /bin/office with the content bellow and make it executable by all (755)

#!/bin/bash

office() { 
firefox "https://www.office.com/?auth=1" 
}
excel() {
 firefox "https://office.live.com/start/Excel.aspx?omkt=en-US&auth=1&nf=1"
}
powerpoint() {
 firefox "https://office.live.com/start/PowerPoint.aspx?omkt=en-US&auth=1&nf=1"
}
word() {
 firefox "https://office.live.com/start/Word.aspx?omkt=en-US&auth=1&nf=1"
}
outlook() {
 firefox "https://outlook.live.com/mail/inbox"
}

$1

The result:

Good Luck!!!

· office365, fedora