Skip to content

Commit 9676e0a

Browse files
committed
Install OpenMRac to "Start" menu
1 parent 31c0e22 commit 9676e0a

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

src/Makefile.linux

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,14 @@ clean:
2424
$(TARGET): $(OBJS)
2525
$(LINK) -o $(TARGET) $(OBJS) $(LFLAGS)
2626

27-
install: $(TARGET)
28-
sudo rm -f /usr/bin/openmrac
27+
install: $(TARGET) uninstall
2928
sudo cp openmrac /usr/bin/openmrac
29+
sudo cp openmrac.ico /usr/share/pixmaps/openmrac.ico
30+
sudo cp openmrac.desktop /usr/share/applications/openmrac.desktop
31+
sudo update-desktop-database || true
3032

3133
uninstall:
3234
sudo rm -f /usr/bin/openmrac
35+
sudo rm -f /usr/share/pixmaps/openmrac.ico
36+
sudo rm -f /usr/share/applications/openmrac.desktop
37+
sudo update-desktop-database || true

src/openmrac.desktop

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[Desktop Entry]
2+
Categories=Application;Game;
3+
Exec=openmrac
4+
Icon=/usr/share/pixmaps/openmrac.ico
5+
Name=OpenMRac
6+
Terminal=false
7+
Type=Application

0 commit comments

Comments
 (0)