Mobian .desktop file creation
#5
(07-20-2023, 03:24 PM)alaraajavamma Wrote:
(07-20-2023, 03:05 PM)MadameMalady Wrote: #!/bin/bash
[Desktop Entry]
Type=Application
NoDisplay=false
Version=0.1.9
Type=Application
Terminal=true
Exec=/home/mobian/MyWaydroidManager/MyWaydroidManager.py
X-Purism-FormFactor=Workstation;Mobile;
Name=My Waydroid Manager
Comment=Manage Waydroid installations easily
Icon=/home/mobian/MyWaydroidManager/icons/icon.svg
Categories=utility

Remove the bin bash Smile
I've tried that too and I didn't have luck Sad
Here's the whole option in the script, maybe i'm messing something up..?


if [ $(hostname) = 'mobian' ]; then
 
  notify-send "My Waydroid Manager" "Check Your Terminal"
 
  # copy application directory
  cd ..
  sudo mkdir -p /home/mobian/MyWaydroidManager
  sudo cp My_Waydroid_Manager.py /home/mobian/MyWaydroidManager
  sudo cp -r icons /home/mobian/MyWaydroidManager
  sudo cp -r scripts /home/mobian/MyWaydroidManager
  cd  ~/.local/share/applications/
  sudo touch MyWaydroidManager.desktop
  echo "#!/bin/bash
[Desktop Entry]
Type=Application
NoDisplay=false
Version=0.1.9
Type=Application
Terminal=true
Exec=/home/mobian/MyWaydroidManager/MyWaydroidManager.py
X-Purism-FormFactor=Workstation;Mobile;
Name=My Waydroid Manager
Comment=Manage Waydroid installations easily
Icon=/home/mobian/MyWaydroidManager/icons/icon.svg
Categories=utility">MyWaydroidManager.desktop

 
 
this option is in a directory called scripts, since the program is in 'scripts' when this option is ran, I have it cd .. back up a directory to start.
  Reply


Messages In This Thread
Mobian .desktop file creation - by MadameMalady - 07-20-2023, 01:08 PM
RE: Mobian .desktop file creation - by MadameMalady - 07-20-2023, 03:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  bookworm vs trixie discussion for mobian in pinephone pro. zetabeta 16 2,422 04-28-2024, 01:52 AM
Last Post: diederik
  Disable the GDM service in Mobian. mburns 0 495 11-25-2023, 10:19 PM
Last Post: mburns
  The Mobian Phosh Experience mburns 1 961 11-18-2023, 08:21 AM
Last Post: crocspot
  "failed to start simple desktop display manager" PinePhonePro / Plasma Beta15 RC4 OhMeadhbh 1 712 11-09-2023, 07:39 AM
Last Post: mburns
  Fix the Mobian Weather App mburns 0 533 11-07-2023, 10:01 AM
Last Post: mburns
  Megapixels on Mobian Bookworm on PinePhone Pro - Not Launching X0X0X0X0X0 1 769 11-07-2023, 09:44 AM
Last Post: mburns
  Mobian Phosh Gnome Software Is Recommending A Broken Update. mburns 0 637 10-14-2023, 11:57 AM
Last Post: mburns
  Mobian libnotify custom notifications MadameMalady 5 1,507 08-01-2023, 08:51 AM
Last Post: MadameMalady
  XFCE mobian running nicely but some oddities grump_fiddle_reinstall 0 834 07-01-2023, 08:18 AM
Last Post: grump_fiddle_reinstall
  [Mobian] : Battery consumption and OS compatibility freelectro 2 1,143 06-02-2023, 06:55 AM
Last Post: Fred Zyphal

Forum Jump:


Users browsing this thread: 1 Guest(s)