LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-25-2010, 02:03 PM   #1
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
My first open-source project!


https://sourceforge.net/projects/qlauncher/
 
Old 08-25-2010, 02:33 PM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Congratulations!
 
Old 08-25-2010, 02:45 PM   #3
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
KUDOS

Good job... will pack this for Arch and test it...

BRGDS

Alex
 
Old 08-25-2010, 02:49 PM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Congrats!!!
 
Old 08-25-2010, 03:04 PM   #5
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443

Original Poster
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
I didn't expect such a positive reaction!

Anyway, if you want to compile it, remember that it uses QMake instead of GNU autotools like most people are used to. To compile:

Code:
qmake && make
Also, it can be opened in the Qt Creator IDE.

EDIT:

It uses the .desktop files in /usr/share/applications to build up its list of apps, and I would like it to put the app's icon in front of the name. I found that the Icon listed in them isn't the full path to the icon. How do I figure out the path to the icon from it?

Last edited by MTK358; 08-25-2010 at 03:08 PM.
 
Old 08-25-2010, 03:06 PM   #6
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Congrats MTK, it's time to install QT now for ... testing
 
Old 08-25-2010, 03:12 PM   #7
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443

Original Poster
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Note that for it to be useful, you must set up a key binding in your DE/WM to run it. I chose Super+Space, but it doesn't matter.
 
Old 08-25-2010, 03:19 PM   #8
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
Hi

This does create something like a ~/.qlauncherrc where the prefixes of the apps are stored, right...?

I'm asking this because I am still typing from my Slack box... as soon as I change to my Arch i will make a PKGBUILD for this and install it...
 
Old 08-25-2010, 03:30 PM   #9
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443

Original Poster
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
It uses QSettings.

http://doc.trolltech.com/4.6/qsettings.html

The location and file format isn't chosen by me. AFAIK it uses the platform's preferred format, such as INI-like files for Linux, XML files for Mac, and the Registry for Windows.

And what do you mean by "Prefixes"?

EDIT: Version 0.2 has a serious usability bug: the "Cancel" button, instead of the entry, is focused by default. I'll upload the fixed version.

Last edited by MTK358; 08-25-2010 at 03:34 PM.
 
Old 08-25-2010, 03:35 PM   #10
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
Hi

AFAIK ( correct me if I am wrong... ) This is a fast launcher for applications, some sort of launcher menu.

There must be ( it case this is what i think it is ) a way of storing information about what is to be launched, where it is, and probably some environment settings prior to launching the application ( similar to what one does in a shell prior to launch some script/app )... my question was about where this information is stored, figured that some .**rc file living in ~ would be an obvious choice...
 
Old 08-25-2010, 03:41 PM   #11
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443

Original Poster
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
It stores the number of times each one was launched, and sorts them first so it takes less keystrokes to get them to the top of the list.

Then, pressing "Enter" launches the one at the top of the list.

If you really want to know how it works, open up the source code and look at widget.cpp, that's where 99% of the action is. I commented it.

Last edited by MTK358; 08-25-2010 at 03:44 PM.
 
Old 08-25-2010, 06:04 PM   #12
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
Correct me if I'm wrong, but doesn't the Alt-F2 Run dialog in most DEs provide a similar functionality?

Don't get me wrong, I think it's great that you've started up your own FOSS project (something I'm still reluctant to try ), I'm just wondering if you might be unnecessarily duplicating functionality here...
 
Old 08-25-2010, 06:35 PM   #13
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
I've moved this over to Programming. Congrats on your project.
 
Old 08-25-2010, 06:41 PM   #14
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by MrCode View Post
Correct me if I'm wrong, but doesn't the Alt-F2 Run dialog in most DEs provide a similar functionality?

Don't get me wrong, I think it's great that you've started up your own FOSS project (something I'm still reluctant to try ), I'm just wondering if you might be unnecessarily duplicating functionality here...
And why can't applications be launched from any file browser ?
 
Old 08-25-2010, 06:53 PM   #15
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443

Original Poster
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
This remembers what you launched before and offers them after just typing a letter or two, instead of the whole name.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Morevna - An Open Source Anime Project Using Open Source Tools Only LXer Syndicated Linux News 0 07-22-2010 02:30 AM
LXer: Open access and open source intersect in Public Knowledge Project LXer Syndicated Linux News 0 03-24-2007 12:31 PM
LXer: Open-xchange Unveils Community Project To Build Open Source ... LXer Syndicated Linux News 0 03-12-2007 11:32 PM
I want to do a open source project coolguy_iiit Programming 11 04-29-2005 03:47 PM
Help me find an open-source project Creep Programming 4 11-16-2003 10:05 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration