Stirling-Tools / Stirling-PDF

#1 Locally hosted web application that allows you to perform various operations on PDF files
https://stirlingpdf.com
MIT License
43.96k stars 3.58k forks source link

Creating a appmenu shortcut with unix local installation #2081

Open rain-jpg opened 2 hours ago

rain-jpg commented 2 hours ago

Semicolons prevent the .desktop file from being displayed in the appmenu. When I edit the semicolons with kwrite from /usr/share/applications/stirling-pdf.desktop , the appmenu shortcut is displayed but does not work when I click on it.

location=$(pwd)/gradlew image=$(pwd)/docs/stirling-transparent.svg

cat > ~/.local/share/applications/Stirling-PDF.desktop <<EOF [Desktop Entry] Name=Stirling PDF; GenericName=Launch StirlingPDF and open its WebGUI; Category=Office; Exec=xdg-open http://localhost:8080 && nohup $location bootRun &; Icon=$image; Keywords=pdf; Type=Application; NoDisplay=false; Terminal=true; EOF

Frooodle commented 2 hours ago

does not work when I click on it

Can you expand on this? Any error messages?

rain-jpg commented 1 hour ago

I deleted the semicolons from the code to make the shortcut showing up in the appmenu (thats solves the creating a application menu shortcut) but when i click on it to launch the tool it shows a little terminal icon jumping near the cursor and nothing happens. I checked if the terminal running in the background and it wasn't there. Btw there was no browser launch when I'm running the app manually via terminal. I was copy pasting to the browser. Sorry there wasn't any error messages. Let me check on a fresh fedora install. I will be back.