Crates.io | dlauncher |
lib.rs | dlauncher |
version | 0.1.1 |
source | src |
created_at | 2022-05-24 04:10:53.639299 |
updated_at | 2022-05-24 04:10:53.639299 |
description | An application launcher for Linux that is based on Ulauncher |
homepage | https://github.com/diced/dlauncher |
repository | https://github.com/diced/dlauncher |
max_upload_size | |
id | 592401 |
size | 155,763 |
Basically a one to one copy of Ulauncher, with a different backend.
Dlauncher is available as an AUR package. Install the dlauncher
package if you do not want to build. Install the dlauncher-git
package if you want to build from source.
git clone https://github.com/diced/dlauncher
make build
The executables are located in the target/release
folder.
If you are using xinit, you can add dlauncher &
to it.
If you are running in daemon mode, you can run the dlauncher-toggle
command to toggle the window from appearing.
Due to how Dlauncher is built, it is 100% compatible with Ulauncher themes! All you need to do is move your theme from ~/.config/ulauncher/user-themes
to ~/.config/dlauncher/themes
.
cp -r ~/.config/ulauncher/user-themes/* ~/.config/dlauncher/themes`
If you would like to migrate your recent apps that show at the start, you can
I love the way Ulauncher works and looks, but I had some issues: Ulauncher's preferences are controlled through a Webkit frontend, which can consume a lot of memory. This coupled with the fact its using python also contributes to the fact that it uses a lot of memory (it isnt really that much its like a few hundred mb's but can total up to 500 sometimes with "ghost" webkit processes, etc).
Many other factors such as extensions can also add tons of memory to the process, dlauncher even with ports of the extensions I use, runs at the same 40-60 MB that the base binary runs at.
Since Ulauncher is made using GTK libraries, it made it easy to create a clone of Ulauncher since I could reuse the design files for Ulauncher (which is what I did). After doing so, I could use the code from Ulaunchers codebase, to figure out how it would translate the best in Rust, which was also made very easy due to how similar the GTK and GDK implementations are.
Once I was able to replicate the same UI that Ulauncher had I started to focus more on the backend, and how extensions would work
At the start, extensions would have been a command ran by Dlauncher then its stdout would get parsed yet that did not work well and had absolutely zero functionality. I was able to figure out how to use FFI and shared object libraries (.so
files) which could be loaded in at runtime using libloading
. This effectively made extensions much more robust and flexible as to what the developer wanted to do. As of now the API is kind of limited, yet it is possible to do whatever you would like to do.
get_matching_blocks
which I have just decided to copy over to here since I did not want to import this as a dependency/use anything from it except that.dlauncher.druncache
Dlauncher runs consistently at around 40-60 MB compared to almost the 200-400 MB that Ulauncher uses (sometimes extensions can make this go up even more).
Nothing! Your Ulauncher themes will work perfectly with Dlauncher.
I plan to keep working on making Dlauncher more performant! The code also is kinda garbage, any help is appreciated!
Modifications done to Ulauncher's original source