feat: add .desktop file and icon for task manager persistence
Installs ollie.svg to hicolor scalable apps and org.ollie.gui.desktop to /usr/share/applications. Sets desktopFileName so Plasma can match the running window to the .desktop entry when pinned.
This commit is contained in:
parent
5984dec374
commit
74f51519f6
7
Makefile
7
Makefile
|
|
@ -29,6 +29,11 @@ install:
|
|||
# Binaries
|
||||
install -m755 $(BUILD_DIR)/ollie-tray /usr/bin/
|
||||
install -m755 $(BUILD_DIR)/ollie-gui /usr/bin/
|
||||
# Desktop file and icon
|
||||
mkdir -p /usr/share/applications
|
||||
install -m644 gui/org.ollie.gui.desktop /usr/share/applications/
|
||||
mkdir -p /usr/share/icons/hicolor/scalable/apps
|
||||
install -m644 gui/ollie.svg /usr/share/icons/hicolor/scalable/apps/ollie.svg
|
||||
# KRunner plugin
|
||||
mkdir -p /usr/lib64/qt6/plugins/kf6/krunner
|
||||
install -m755 $(BUILD_DIR)/lib/kf6/krunner/krunner_ollie.so \
|
||||
|
|
@ -65,6 +70,8 @@ install:
|
|||
uninstall:
|
||||
@echo "=== Uninstalling ollie-kde ==="
|
||||
rm -f /usr/bin/ollie-tray /usr/bin/ollie-gui
|
||||
rm -f /usr/share/applications/org.ollie.gui.desktop
|
||||
rm -f /usr/share/icons/hicolor/scalable/apps/ollie.svg
|
||||
rm -f /usr/lib64/libollie-plasmoid-plugin.so
|
||||
rm -f /usr/lib64/qt6/plugins/kf6/krunner/krunner_ollie.so
|
||||
rm -f /usr/lib64/qt6/plugins/kf6/ktexteditor/ollie_kate.so
|
||||
|
|
|
|||
|
|
@ -37,7 +37,8 @@ static QIcon makeBrainIcon()
|
|||
int main(int argc, char *argv[])
|
||||
{
|
||||
QGuiApplication app(argc, argv);
|
||||
app.setApplicationName("ollie");
|
||||
app.setApplicationName("ollie-gui");
|
||||
app.setDesktopFileName("org.ollie.gui");
|
||||
app.setOrganizationName("ollie");
|
||||
app.setWindowIcon(makeBrainIcon());
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<!-- FA6 brain glyph rendered as text; requires Font Awesome 6 Free Solid -->
|
||||
<text x="256" y="410" text-anchor="middle" font-family="Font Awesome 6 Free Solid, Font Awesome 6 Free" font-weight="900" font-size="480" fill="#eeeeee"></text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 385 B |
|
|
@ -0,0 +1,9 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Ollie
|
||||
Comment=AI assistant
|
||||
Exec=ollie-gui
|
||||
Icon=ollie
|
||||
Categories=Utility;Development;
|
||||
Terminal=false
|
||||
StartupWMClass=ollie-gui
|
||||
Reference in New Issue