how to make a terminal command run as an icon in arch-phosh
#1
I have an application (blender) that only runs with
Code:
LIBGL_ALWAYS_SOFTWARE=1 blender
how can I make it so I can use a blender icon in the phone's home menu to run the above command
  Reply
#2
Does Blender already have an icon in the launcher? If so, you will probably find the corresponding .desktop file in /usr/share/applications/. In that file insert setting the variable on the "Exec=" line:
Code:
Exec=env LIBGL_ALWAYS_SOFTWARE=1 blender
If you want to keep this file from being overwritten (e. g. with package updates), you can copy the .desktop file to ~/.local/share/applications/ which will take precedence over the one in /usr/share/applications.

If no .desktop file for blender exists, you have to create a new one.
  Reply
#3
(09-24-2021, 06:57 PM)kqlnut Wrote: Does Blender already have an icon in the launcher? If so, you will probably find the corresponding .desktop file in /usr/share/applications/. In that file insert setting the variable on the "Exec=" line:
Code:
Exec=env LIBGL_ALWAYS_SOFTWARE=1 blender
If you want to keep this file from being overwritten (e. g. with package updates), you can copy the .desktop file to ~/.local/share/applications/ which will take precedence over the one in /usr/share/applications.

If no .desktop file for blender exists, you have to create a new one.

OR:
Create a 1-line script with your code, make it executable and name something like "blender-code" and place in /usr/local/bin;
Then create your own launcher called "blender.desktop" in ~/.local/share/share/applications with the following lines:
    [Desktop Entry]
   Name=Blender
   Type=Application
   Icon=[PATH-TO-YOUR-BLENDER-ICON].png
   Exec=/usr/local/bin/blender-code
   Categories=Utility;

Reboot, and check to see if the blender icon is now visible on the desktop. If so, click it to launch blender...
  Reply
#4
menulibre https://aur.archlinux.org/packages/menulibre/ may be what you're looking for
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  stuck between phosh and plasma aular 0 161 02-27-2024, 05:55 PM
Last Post: aular
  Updating Arch Linux _radv_ 8 561 02-20-2024, 09:35 AM
Last Post: _radv_
  PinePhone AND/OR PinePhone Pro Arch Complete Install and Setup mikehenson 2 2,050 01-14-2024, 08:43 AM
Last Post: shifras
  How to install arch with FDE user641 3 638 01-11-2024, 10:18 PM
Last Post: Kevin Kofler
  How to find software app, on Arch Phosh? general_lee 5 1,796 10-15-2023, 10:12 PM
Last Post: Kevin Kofler
  Arch auto mount usb example Lazy_one 2 2,761 10-06-2023, 09:36 AM
Last Post: luppivega
  Repeat previous command in console ionmich 0 478 08-16-2023, 08:00 AM
Last Post: ionmich
  Arch with FDE user641 1 837 07-29-2023, 08:27 AM
Last Post: alpineduck
  No keyboard on Arch Plasma when entering password on document Chief 0 798 12-03-2022, 08:35 PM
Last Post: Chief
  Curious About Arch Ferriah 2 2,061 11-07-2022, 04:38 PM
Last Post: Ferriah

Forum Jump:


Users browsing this thread: 1 Guest(s)