You are not logged in.

#1 2011-07-03 14:50:05

Guff
Member
Registered: 2009-09-30
Posts: 158
Website

fehlstart: a simple, quick application launcher written in C

So for a couple days now, I've been contributing a little to fehlstart. As the title states, it's a simple application launcher, and that's all it is. No tweeting, no file management, no nothin' that ain't launchin'.

maep is the primary author, and he's done almost all the work thus far. I've just tweaked a few lines here and there, and added the config file stuff.

Features include:
  • A configuration file in your xdg config directory (i.e. ~/.config/fehlstart/fehlstart.rc) that currently does nothing but set the hotkey to launch fehlstart with.

  • A command line option, --one-way, that makes fehlstart pop up immediately and then exit once you're done, as opposed to staying in the background listening for the hotkey.

  • Pretty icons! Well, whatever icon is specified by the selected application's desktop file, or a default icon if one isn't found

  • Choice learning (i.e., it remembers what string you used to launch which application)

Future features (hopefully) include:
  • More robust matching. Specifically, the ability to detect acronyms (e.g. "gimp" instead of "GNU Image Manipulation Program").

  • Learning. Rarely is the question asked: is our fehlstart learning? Well, right now, no. It isn't.

  • Other stuff?

Dependencies
Screenshots:

tOWM5bA tOWM5aQ tOWM5ag

AUR

You can find fehlstart-git here in the AUR.

Feedback and suggestions appreciated.

Last edited by Guff (2011-07-12 19:21:58)

Offline

#2 2011-07-03 22:56:11

twix
Member
Registered: 2010-10-07
Posts: 63

Re: fehlstart: a simple, quick application launcher written in C

Great idea, i was looking for a lightweight application launcher !

However, i could not get the interface, it is not responsive to super + space.

Info : arch x86_64 up-to-date, version fehlstart-git-20110704-1, Option "XkbLayout" "fr", libkeybinder installed from AUR

Offline

#3 2011-07-03 23:33:43

Guff
Member
Registered: 2009-09-30
Posts: 158
Website

Re: fehlstart: a simple, quick application launcher written in C

twix wrote:

Great idea, i was looking for a lightweight application launcher !

However, i could not get the interface, it is not responsive to super + space.

Info : arch x86_64 up-to-date, version fehlstart-git-20110704-1, Option "XkbLayout" "fr", libkeybinder installed from AUR

Hmm. Are there no error messages?
Are you sure the binding isn't taken by something else, like, say, your window manager or anything?

Offline

#4 2011-07-04 10:14:29

twix
Member
Registered: 2010-10-07
Posts: 63

Re: fehlstart: a simple, quick application launcher written in C

I've tested it on openbox, and the default binding worked. So I think a conflict is the problem.

Second problem : on openbox, the typing box does not get the focus when launched, while there is no problem about that on gnome3 fallback

EDIT : there was no error messages, just

(fehlstart:11239): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
reading /home/twix/.local/share/applications

(fehlstart:11239): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

Last edited by twix (2011-07-04 10:28:08)

Offline

#5 2011-07-04 14:11:55

Guff
Member
Registered: 2009-09-30
Posts: 158
Website

Re: fehlstart: a simple, quick application launcher written in C

twix wrote:

I've tested it on openbox, and the default binding worked. So I think a conflict is the problem.

Second problem : on openbox, the typing box does not get the focus when launched, while there is no problem about that on gnome3 fallback

EDIT : there was no error messages, just

(fehlstart:11239): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
reading /home/twix/.local/share/applications

(fehlstart:11239): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

I did a little something that might help with the focus issues, but no guarantees. Can you upgrade and try again?

Also, on openbox when that happens, does clicking the window give it focus?

Offline

#6 2011-07-04 15:22:57

twix
Member
Registered: 2010-10-07
Posts: 63

Re: fehlstart: a simple, quick application launcher written in C

I have updated Fehlstart, and the problem is still here : the focus is not acquired by fehlstart when lauched on openbox, and the last update removed icon display too.

On XFCE there is no focus problem.

On all environment, clicking the window give focus on it

Offline

#7 2011-07-04 15:53:02

Guff
Member
Registered: 2009-09-30
Posts: 158
Website

Re: fehlstart: a simple, quick application launcher written in C

twix wrote:

I have updated Fehlstart, and the problem is still here : the focus is not acquired by fehlstart when lauched on openbox, and the last update removed icon display too.

On XFCE there is no focus problem.

On all environment, clicking the window give focus on it

Oh, yeah, for the icon thing, just add

[Icons]
show=true

to your ~/.config/fehlstart/fehlstart.rc or just delete the file and it will be generated with all the defaults when you launch it again.

Does openbox have focus stealing prevention features? That's the only thing I can think of that would be giving you this trouble.

Offline

#8 2011-07-04 16:25:08

twix
Member
Registered: 2010-10-07
Posts: 63

Re: fehlstart: a simple, quick application launcher written in C

Ok, the icon thing was trivial tongue

For the focus, openbox give it to new windows by default, and I've checked the config file, it's good :

<focus>
    <focusNew>yes</focusNew>
    <!-- always try to focus new windows when they appear. other rules do
       apply -->
    <followMouse>no</followMouse>
    <!-- move focus to a window when you move the mouse into it -->
    <focusLast>yes</focusLast>
    <!-- focus the last used window when changing desktops, instead of the one
       under the mouse pointer. when followMouse is enabled -->
    <underMouse>no</underMouse>
    <!-- move focus under the mouse, even when the mouse is not moving -->
    <focusDelay>200</focusDelay>
    <!-- when followMouse is enabled, the mouse must be inside the window for
       this many milliseconds (1000 = 1 sec) before moving focus to it -->
    <raiseOnFocus>no</raiseOnFocus>
    <!-- when followMouse is enabled, and a window is given focus by moving the
       mouse into it, also raise the window -->
  </focus>

Offline

#9 2011-07-04 16:36:59

Guff
Member
Registered: 2009-09-30
Posts: 158
Website

Re: fehlstart: a simple, quick application launcher written in C

Hmm. Well, the author has apparently also encountered this bug. We'll both try and figure out how to deal with it.
I'll take a look at kupfer's code, see if there's anything to deal with focus issues.

Offline

#10 2011-07-04 18:21:17

Guff
Member
Registered: 2009-09-30
Posts: 158
Website

Re: fehlstart: a simple, quick application launcher written in C

Twix, I think I might have solved it. At least, it solved the problem for me in my test environment.
I've pushed the change out, so can you upgrade and try it one more time?

Offline

#11 2011-07-04 19:31:13

twix
Member
Registered: 2010-10-07
Posts: 63

Re: fehlstart: a simple, quick application launcher written in C

Nice ! You solved it, it now works like a charm wink

I will look into you push, as I'm interested in C/C++ development, but do not have currently the full knowledge and ideas to start with.

Hehe, your fix is simple, just the windows type was bad isn't it ?

Offline

#12 2011-07-04 19:51:06

Guff
Member
Registered: 2009-09-30
Posts: 158
Website

Re: fehlstart: a simple, quick application launcher written in C

twix wrote:

Nice ! You solved it, it now works like a charm wink

I will look into you push, as I'm interested in C/C++ development, but do not have currently the full knowledge and ideas to start with.

Hehe, your fix is simple, just the windows type was bad isn't it ?

Ah, good.

Well, this project isn't too complicated. Maybe too much for a beginner, but hey, I'm fairly new to programming myself. I'd say one of the things that's been the most helpful for me is just sprucing up and reorganizing code other people have written. It helps one to get an understanding of what's going on, but the work isn't extremely involved.

Yup, that was it. GTK_WINDOW_POPUP windows aren't under the control of the window manager, so it doesn't have to fight for input focus. I'm still fairly new to GTK, though, so I wasn't immediately aware of how to make it an override redirect window.

Offline

#13 2011-07-04 21:20:28

pogeymanz
Member
Registered: 2008-03-11
Posts: 1,020

Re: fehlstart: a simple, quick application launcher written in C

Just a suggestion for your matching issue (gimp versus gnu image manipulation program). You could look at dmenu-launch in the AUR and see how it does it. It's written in bash, but its matching works like you said you want this to.

Offline

#14 2011-07-05 01:08:12

Guff
Member
Registered: 2009-09-30
Posts: 158
Website

Re: fehlstart: a simple, quick application launcher written in C

pogeymanz wrote:

Just a suggestion for your matching issue (gimp versus gnu image manipulation program). You could look at dmenu-launch in the AUR and see how it does it. It's written in bash, but its matching works like you said you want this to.

Ah, thanks. Turns out, rather than actually matching against acronyms and whatnot, it just matches against both the executable and the application name. Which works in this case, because the GIMP's executable is just "gimp".

So, I added this functionality to fehlstart. Not sure if I still need to do real acronym matching or not though.

Offline

#15 2011-07-07 15:35:25

Guff
Member
Registered: 2009-09-30
Posts: 158
Website

Re: fehlstart: a simple, quick application launcher written in C

Just to let everyone know, maep has added some basic learning functionality to fehlstart. He's also done a great job cleaning up a lot of the code, and from now on you won't have to manually edit the configuration files every time a new option is added, that will be taken care of automatically without wiping your existing settings.

Offline

#16 2011-07-08 19:16:47

twix
Member
Registered: 2010-10-07
Posts: 63

Re: fehlstart: a simple, quick application launcher written in C

Nice work smile

Maybe you could point this thread to maep, or maybe start another one on a more "generic" forum, I think it will be better for everyone

Offline

#17 2011-07-08 22:11:51

Guff
Member
Registered: 2009-09-30
Posts: 158
Website

Re: fehlstart: a simple, quick application launcher written in C

twix wrote:

Nice work smile

Maybe you could point this thread to maep, or maybe start another one on a more "generic" forum, I think it will be better for everyone

I already let maep know soon after I posted it.

As to posting it somewhere else, well, I don't go much anywhere else. Any suggestions?

Offline

#18 2011-07-08 23:14:18

twix
Member
Registered: 2010-10-07
Posts: 63

Re: fehlstart: a simple, quick application launcher written in C

Hmm, in fact I don't go anywhere else too, apart reddit. Maybe a post in the linux or archlinux subreddit would make fehlstart more popular...

Offline

#19 2011-07-09 00:51:05

Guff
Member
Registered: 2009-09-30
Posts: 158
Website

Re: fehlstart: a simple, quick application launcher written in C

twix wrote:

Hmm, in fact I don't go anywhere else too, apart reddit. Maybe a post in the linux or archlinux subreddit would make fehlstart more popular...

Well, I first found out about it myself because maep posted it to r/linux. tongue I think a repost so soon would be considered poor etiquette.

Offline

#20 2011-07-09 18:33:48

maep
Member
Registered: 2011-07-09
Posts: 8

Re: fehlstart: a simple, quick application launcher written in C

greetings! I've been monitoring this thread for bug reports. also yes, I think posting it on r/linux again now would be bad form. maybe I'll write something on the LXDE forums. happy launching!

Offline

#21 2011-07-12 15:47:43

twix
Member
Registered: 2010-10-07
Posts: 63

Re: fehlstart: a simple, quick application launcher written in C

I have just tested it on WMFS and awesome, it works flawlessly, respecting screens and tags on default configuration
(I'm new to tiling WMs)

Offline

#22 2011-07-12 15:50:16

loganfynne
Member
Registered: 2010-11-08
Posts: 13

Re: fehlstart: a simple, quick application launcher written in C

I must say, I love this application.

Offline

#23 2011-07-12 19:24:10

Guff
Member
Registered: 2009-09-30
Posts: 158
Website

Re: fehlstart: a simple, quick application launcher written in C

twix wrote:

I have just tested it on WMFS and awesome, it works flawlessly, respecting screens and tags on default configuration
(I'm new to tiling WMs)

loganfynne wrote:

I must say, I love this application.

Thanks for the feedback, guys. Any suggestions?

Offline

#24 2011-07-13 10:03:28

twix
Member
Registered: 2010-10-07
Posts: 63

Re: fehlstart: a simple, quick application launcher written in C

Ok, here we go then :

- In the wiki, add example to the key binding, for two modifier keys, Fn keys etc

- Maybe allow customizing the size of window, position of the icon ... if it don't bloat out the program wink

Offline

#25 2011-07-13 10:28:37

DIDI2002
Member
Registered: 2009-08-06
Posts: 66

Re: fehlstart: a simple, quick application launcher written in C

Hi, I really like this work of yours!
Pretty amazing it's only 48k installed, I've never seen gtk in plain C.

How about this: When you type in "/home..." or anything that starts with a forward slash, you do xdg-open file:///home (or whatever way you can open a file-browser)4

Last edited by DIDI2002 (2011-07-13 10:31:13)

Offline

Board footer

Powered by FluxBB