Re: [Dorset] Getting programs on to the 'Application Launcher' menu

2023-02-03 Thread Ralph Corderoy
Hi Patrick,

> I downloaded the .deb package from their website at MicroBlocks.fun
> and opened it as an archive file to see what the .desktop file
> contains:
>
> > [Desktop Entry]
> > Name=MicroBlocks
> > Comment=MicroBlocks is a graphical and dynamic blocks language for
> > 32 bit microcontroller boards such as the BBC micro:bit, the
> > Adafruit Circuit Playground Express, the NodeMCU and many Arduinos.
> > Exec=/usr/local/bin/ublocks
> > Icon=/usr/share/icons/MicroBlocks.png
> > Type=Application
> > Categories=Development;<80>
>
> This seems to show that MicroBlocks should appear in the Development
> submenu. If it doesn't, I see two possibilities:

You email has a byte with the value 0x80 after the semicolon in the
Categories line, rendered as ASCII above, by the time it reaches here.

Is it in the .desktop file or did it get added somewhere between there
and here?  If it's in the file, perhaps that's stopping it being fully
processed?

The email has ‘Content-Transfer-Encoding: 7bit’ so that eighth bit did
well to get here, and the software badly for letting it.  It's the only
top-bit-set byte.

$ tr -d '\000-\177' http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Getting programs on to the 'Application Launcher' menu

2023-02-03 Thread Patrick Wigmore
Re-sending this as I originally mistakenly sent it directly to Peter
(at 17:13) instead of to the list.

On Fri, 03 Feb 2023 12:25:35 +, Peter Merchant via dorset wrote:
> Tried Locate - /usr/share/applications/MicroBlocks.desktop

If you view the .desktop file as text, it should contain the command 
you need in order to run the application.

I downloaded the .deb package from their website at MicroBlocks.fun 
and opened it as an archive file to see what the .desktop file 
contains:

> [Desktop Entry]
> Name=MicroBlocks
> Comment=MicroBlocks is a graphical and dynamic blocks language for
> 32 bit microcontroller boards such as the BBC micro:bit, the
> Adafruit Circuit Playground Express, the NodeMCU and many Arduinos.
> Exec=/usr/local/bin/ublocks
> Icon=/usr/share/icons/MicroBlocks.png
> Type=Application
> Categories=Development;

This seems to show that MicroBlocks should appear in the Development 
submenu. If it doesn't, I see two possibilities:

1. The menu hasn't been "rebuilt" to take into account new .desktop
   files since MicroBlocks was installed.

2. Something is preventing the MicroBlocks.desktop file from getting
   included whenever the menu is built.

In the case of possibility no. 1, then you could try running

kbuildsycoca5

Which should result in the menu getting regenerated (among other 
things). I vaguely remember doing this in the past when an application 
wasn't showing up in my menu. It is supposed to happen automatically, 
though.

In the case of possibility no. 2, then I suppose I might suspect the 
file permissions on the desktop file to be incorrect. Or, you might 
get some useful output from kbuildsycoca5 telling you something's 
wrong with the .desktop file.

If you create a new item in the KDE Menu editor, as Terry suggested, 
then it will create a new .desktop file in ~/.local/share/applications 
containing the information you enter.

Anyway, I hope this is in some way helpful.

Patrick
-- 
  Next meeting: Online, Jitsi, Tuesday, 2023-02-07 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Getting programs on to the 'Application Launcher' menu

2023-02-03 Thread Peter Merchant

On 03/02/2023 16:43, Peter Merchant wrote:

On 03/02/2023 13:40, Peter Merchant wrote:

On 03/02/2023 12:42, Terry Coles wrote:

On 03/02/2023 11:39, Peter Merchant via dorset wrote:
Ah, herein is the rub. I don't know where the program is stored. And with the Arduino one, I have installed and  removed it so many times trying to find a version that works for me that I am sure that my computer is full of junk. PS Arduino IDE vn.2 I couldn't get on with trying to find the hardware that i needed. It has a known bug. 


You shouldn't need to know where the program is stored; just the command to 
launch it.  Since you say that it works from the command line, then you should 
have enough to get it to work.


It doesn't run from the command line, but it is found and runs from the search 
bar in the Application Launcher. When It is found this way, I can bring up the 
properties with a right click, but haven't yet found how to set it in the 
Application Launcher. Will try again later - duty calls.

P.



I found the Microblocks in what Terry called the friendly name, and selected 
the application location and put that in the program name  in the application 
launcher menu item, and that sorted that.   Thanks Terry,

I found an Arduino link  as per Hugh's suggestion in 
/home/peterm/.local/share/applications/arduino-arduinoide.desktop

But doing the same  as above doesn't work. It 'cannot find the application'


Correction: Using the full 'friendly' name does work, so everything is now 
sorted.

"env 
BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/arduino_arduino.desktop 
/snap/bin/arduino"

Thanks everyone.

Peter



I did a locate on Arduino-arduinoide and found about 30 locations.

Still working on it.

P.




--
 Next meeting: Online, Jitsi, Tuesday, 2023-02-07 20:00
 Check to whom you are replying
 Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
 New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Getting programs on to the 'Application Launcher' menu

2023-02-03 Thread Peter Merchant

On 03/02/2023 13:40, Peter Merchant wrote:

On 03/02/2023 12:42, Terry Coles wrote:

On 03/02/2023 11:39, Peter Merchant via dorset wrote:
Ah, herein is the rub. I don't know where the program is stored. And with the Arduino one, I have installed and  removed it so many times trying to find a version that works for me that I am sure that my computer is full of junk. PS Arduino IDE vn.2 I couldn't get on with trying to find the hardware that i needed. It has a known bug. 


You shouldn't need to know where the program is stored; just the command to 
launch it.  Since you say that it works from the command line, then you should 
have enough to get it to work.


It doesn't run from the command line, but it is found and runs from the search 
bar in the Application Launcher. When It is found this way, I can bring up the 
properties with a right click, but haven't yet found how to set it in the 
Application Launcher. Will try again later - duty calls.

P.



I found the Microblocks in what Terry called the friendly name, and selected 
the application location and put that in the program name  in the application 
launcher menu item, and that sorted that.   Thanks Terry,

I found an Arduino link  as per Hugh's suggestion in 
/home/peterm/.local/share/applications/arduino-arduinoide.desktop

But doing the same  as above doesn't work. It 'cannot find the application'

I did a locate on Arduino-arduinoide and found about 30 locations.

Still working on it.

P.
--
 Next meeting: Online, Jitsi, Tuesday, 2023-02-07 20:00
 Check to whom you are replying
 Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
 New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Getting programs on to the 'Application Launcher' menu

2023-02-03 Thread Terry Coles


On 03/02/2023 13:40, Peter Merchant wrote:
It doesn't run from the command line, but it is found and runs from 
the search bar in the Application Launcher. When It is found this way, 
I can bring up the properties with a right click, but haven't yet 
found how to set it in the Application Launcher. Will try again later 
- duty calls. 


That's weird!  I thought that typing a command into the search bar 
invoked the same process as if you'd run it from the shell. Presumably 
not.  I assume that means is that you are typing the friendly name of 
the program into the search bar and the application is offered to you in 
the list underneath?  If it is, the search bar has found it and offered 
a path to the command, but I can't see how to find out that command name.


Have you tried googling this?

--

Terry Coles


--
 Next meeting: Online, Jitsi, Tuesday, 2023-02-07 20:00
 Check to whom you are replying
 Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
 New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Getting programs on to the 'Application Launcher' menu

2023-02-03 Thread Hugh Frater
Google suggests that the arduino ide binary is located in ~/.local


On Fri, 3 Feb 2023 at 13:40, Peter Merchant 
wrote:

> On 03/02/2023 12:42, Terry Coles wrote:
> > On 03/02/2023 11:39, Peter Merchant via dorset wrote:
> >> Ah, herein is the rub. I don't know where the program is stored. And
> with the Arduino one, I have installed and  removed it so many times trying
> to find a version that works for me that I am sure that my computer is full
> of junk. PS Arduino IDE vn.2 I couldn't get on with trying to find the
> hardware that i needed. It has a known bug.
> >
> > You shouldn't need to know where the program is stored; just the command
> to launch it.  Since you say that it works from the command line, then you
> should have enough to get it to work.
> >
> It doesn't run from the command line, but it is found and runs from the
> search bar in the Application Launcher. When It is found this way, I can
> bring up the properties with a right click, but haven't yet found how to
> set it in the Application Launcher. Will try again later - duty calls.
>
> P.
>
>
> --
>   Next meeting: Online, Jitsi, Tuesday, 2023-02-07 20:00
>   Check to whom you are replying
>   Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
>   New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk
>
-- 
Sent from my iPhone
-- 
  Next meeting: Online, Jitsi, Tuesday, 2023-02-07 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Getting programs on to the 'Application Launcher' menu

2023-02-03 Thread Peter Merchant

On 03/02/2023 12:42, Terry Coles wrote:

On 03/02/2023 11:39, Peter Merchant via dorset wrote:
Ah, herein is the rub. I don't know where the program is stored. And with the Arduino one, I have installed and  removed it so many times trying to find a version that works for me that I am sure that my computer is full of junk. PS Arduino IDE vn.2 I couldn't get on with trying to find the hardware that i needed. It has a known bug. 


You shouldn't need to know where the program is stored; just the command to 
launch it.  Since you say that it works from the command line, then you should 
have enough to get it to work.


It doesn't run from the command line, but it is found and runs from the search 
bar in the Application Launcher. When It is found this way, I can bring up the 
properties with a right click, but haven't yet found how to set it in the 
Application Launcher. Will try again later - duty calls.

P.


--
 Next meeting: Online, Jitsi, Tuesday, 2023-02-07 20:00
 Check to whom you are replying
 Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
 New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Getting programs on to the 'Application Launcher' menu

2023-02-03 Thread Terry Coles

On 03/02/2023 11:39, Peter Merchant via dorset wrote:
Ah, herein is the rub. I don't know where the program is stored. And 
with the Arduino one, I have installed and  removed it so many times 
trying to find a version that works for me that I am sure that my 
computer is full of junk. PS Arduino IDE vn.2 I couldn't get on with 
trying to find the hardware that i needed. It has a known bug. 


You shouldn't need to know where the program is stored; just the command 
to launch it.  Since you say that it works from the command line, then 
you should have enough to get it to work.


--

Terry Coles


--
 Next meeting: Online, Jitsi, Tuesday, 2023-02-07 20:00
 Check to whom you are replying
 Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
 New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Getting programs on to the 'Application Launcher' menu

2023-02-03 Thread Peter Merchant via dorset

On 03/02/2023 11:39, Peter Merchant via dorset wrote:

On 03/02/2023 09:39, Terry Coles wrote:

On 03/02/2023 09:26, Peter Merchant wrote:

I recently installed a program to my Kubuntu 20.04 system called Microblocks. 
It is a scratch-like program for things like an ESP-32.

The problem is that it doesn't appear anywhere in my application launcher, but 
if I type the name in on the 'search' bar of the AL, it finds it. Does anybody 
know how I can add it to the Application Launcher?  I am having the same 
problem with the Arduino IDE.


Peter,

There are two ways to do this; one for the main Application launcher as you 
requested and one for the Widgets on an Activity.

I can't give you a step by step, because it depends on the program concerned.  
For the main Launcher; right-click the launcher icon and select 'Edit 
Applications...'.  This launches the KDE Menu Editor.  Click on the appropriate 
Menu Item, eg 'System', right=click on that and select 'New Item'.  Then fill 
in the blanks including the command that launches the program.

Ah, herein is the rub. I don't know where the program is stored. And with the 
Arduino one, I have installed and  removed it so many times trying to find a 
version that works for me that I am sure that my computer is full of junk. PS 
Arduino IDE vn.2 I couldn't get on with trying to find the hardware that i 
needed. It has a known bug.


To do it as a Widget you need the Widget 'QuickLaunch' installed then simply 
right-click within the QuickLaunch area and proceed as with the main App 
Launcher.

Not interested in this.


Let us know how you get on.





So far so Not so good.

Tried Whereis to find it - no luck

Tried which to find it - no luck

Tried Locate - /usr/share/applications/MicroBlocks.desktop

So I edited the application launcher,    but when I tried it - nothing happened.

.still working on it.


--
 Next meeting: Online, Jitsi, Tuesday, 2023-02-07 20:00
 Check to whom you are replying
 Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
 New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Getting programs on to the 'Application Launcher' menu

2023-02-03 Thread Peter Merchant via dorset

On 03/02/2023 09:39, Terry Coles wrote:

On 03/02/2023 09:26, Peter Merchant wrote:

I recently installed a program to my Kubuntu 20.04 system called Microblocks. 
It is a scratch-like program for things like an ESP-32.

The problem is that it doesn't appear anywhere in my application launcher, but 
if I type the name in on the 'search' bar of the AL, it finds it. Does anybody 
know how I can add it to the Application Launcher?  I am having the same 
problem with the Arduino IDE.


Peter,

There are two ways to do this; one for the main Application launcher as you 
requested and one for the Widgets on an Activity.

I can't give you a step by step, because it depends on the program concerned.  
For the main Launcher; right-click the launcher icon and select 'Edit 
Applications...'.  This launches the KDE Menu Editor.  Click on the appropriate 
Menu Item, eg 'System', right=click on that and select 'New Item'.  Then fill 
in the blanks including the command that launches the program.

Ah, herein is the rub. I don't know where the program is stored. And with the 
Arduino one, I have installed and  removed it so many times trying to find a 
version that works for me that I am sure that my computer is full of junk. PS 
Arduino IDE vn.2 I couldn't get on with trying to find the hardware that i 
needed. It has a known bug.


To do it as a Widget you need the Widget 'QuickLaunch' installed then simply 
right-click within the QuickLaunch area and proceed as with the main App 
Launcher.

Not interested in this.


Let us know how you get on.




--
 Next meeting: Online, Jitsi, Tuesday, 2023-02-07 20:00
 Check to whom you are replying
 Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
 New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Getting programs on to the 'Application Launcher' menu

2023-02-03 Thread Terry Coles

On 03/02/2023 09:26, Peter Merchant wrote:
I recently installed a program to my Kubuntu 20.04 system called 
Microblocks. It is a scratch-like program for things like an ESP-32.


The problem is that it doesn't appear anywhere in my application 
launcher, but if I type the name in on the 'search' bar of the AL, it 
finds it. Does anybody know how I can add it to the Application 
Launcher?  I am having the same problem with the Arduino IDE.


Peter,

There are two ways to do this; one for the main Application launcher as 
you requested and one for the Widgets on an Activity.


I can't give you a step by step, because it depends on the program 
concerned.  For the main Launcher; right-click the launcher icon and 
select 'Edit Applications...'.  This launches the KDE Menu Editor.  
Click on the appropriate Menu Item, eg 'System', right=click on that and 
select 'New Item'.  Then fill in the blanks including the command that 
launches the program.


To do it as a Widget you need the Widget 'QuickLaunch' installed then 
simply right-click within the QuickLaunch area and proceed as with the 
main App Launcher.


Let us know how you get on.

--
Terry Coles


--
 Next meeting: Online, Jitsi, Tuesday, 2023-02-07 20:00
 Check to whom you are replying
 Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
 New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


[Dorset] Getting programs on to the 'Application Launcher' menu

2023-02-03 Thread Peter Merchant

I recently installed a program to my Kubuntu 20.04 system called Microblocks. 
It is a scratch-like program for things like an ESP-32.

The problem is that it doesn't appear anywhere in my application launcher, but 
if I type the name in on the 'search' bar of the AL, it finds it. Does anybody 
know how I can add it to the Application Launcher?  I am having the same 
problem with the Arduino IDE.

Thanks,

Peter M


--
 Next meeting: Online, Jitsi, Tuesday, 2023-02-07 20:00
 Check to whom you are replying
 Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
 New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk