New project, a .desktop launcher editor
Posted
#1
(In Topic #707)
Banned
It has potential i think
No docs yet but if you understand how .desktop files work this will be straight forward enough.
it's a launcher editor but unlike the rest you can also edit the alternative Actions
for those who do not know "Actions" are other ways to run the program you can set and can be selected by right clicking the launcher when it is in certain places (like a panel)
Like for example how you can right click the Gambas3 launcher icon in a panel and run it with gtk3 or qt
Here's a couple of screenshots of how the gambas launcher icon looks in this application…
The main page..
(attachment removed)
The Actions page…
(attachment removed)
As you can see i also have my gambas set so from the panel icon i can also copy the System Information (needed on the bugtracker) and run it as root.
this app works but has the following issues…
launchers (in panels and other areas do not update till next boot)
there may be a way to make the launchers update right away but i do not know how.
I have the launchers on my desktop and i edit those files. when changed i then remover the panel launcher and drag the desktop one over again to make anew.
It's gtk only as you can drag launchers onto the app to load them but with qt the drop data does not include the paths on some files.
i will further develop this a bit and add more features/handling.
Maybe others will find it useful as an app to use or a starting base for their own version?
i've had to import and monkey about with the DesktopFile.class to get the Actions able to save.
Seems to work okay now
Enjoy
Posted
Banned
(attachment removed)
Posted
Banned
An example of how to get the application installed.
Simply run the gambas application from your desired location and select "create launcher" from the menu.
A desktop launcher or menu item can be created.
That launcher can then be simply dragged onto your panel (as shown in this clip…)
<VIDEO content="http://bws.org.uk/images/screenrecord-2021-07-18_20.59.56.mp4">[video]
Now your desktop launcher icons can be dragged onto this applications icon and it will load the .desktop file for editing.
Posted
Banned
If I am on the Bugtracker webpage and gambas is closed i had to do the following to get the system info Ben wants…
Load gambas..
Load a project..
Select the system information menu to open the info page..
Press "Copy" to copy to clipboard..
Then paste into the web page but do not close gambas or the clipboard clears.
Now i have done this.
I installed clipit
sudo apt-get install clipit
clipit is a global clipboard utility that allows clips to survive when an app is closed (plus other features)
Now if i am on the Bugtracker i just right click my gambas panel launcher icon and hit "Copy system info" then paste in the bugtracker.
the launcher executes the file /usr/bin/g3toclip …
it looks like this..
Code
#!/usr/bin/env bash
gambas3 --system-information|clipit
I could not get the clipboard info to survive without making a seperate bash script and running it, using the command directly did not work.
But that did.
Maybe it's useful for you?
Posted
Enthusiast

changed project/properties/components/gb.gtk3 → gb.gui (afaik everything works)
Startup:
Code (gambas)
- FMain.GridView1.Columns.Count = 3
when starting a program from a module at least the setting application.theme works so why not …
FMain:
me.center fix the diffent opening behaviour between gtk and qt
<COLOR color="#BF0000">error if path does not exist</COLOR>
as usual i am running on majaro with xfce
good work and as always a nice idea !
Posted
Banned
PJBlack said
after a first quick look i've changed a few things:
changed project/properties/components/gb.gtk3 → gb.gui (afaik everything works)
good work and as always a nice idea !
dragging files on to the app does not work with QT , QT is buggy.
that's why i used gtk
(i thought i'd explained that lol)
check out this clip of me dragging icons onto the app with QT and the debugger printing the paths…
I only started writing this a couple of days ago. it's probably got some creases to iron out
Posted
Banned
Updated version on git…
Bruce Steers / DesktopIconEd · GitLab
1 guest and 0 members have just viewed this.





