KevinTsui1234 / tint2

Automatically exported from code.google.com/p/tint2
GNU General Public License v2.0
1 stars 0 forks source link

New config parameter launcher_apps_dir #381

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, when gnome 3 is released, my life is ruined again :)

I've moved to old-school mode, i've resurrect my old desktop and now use compiz 
with tint2 and nothing more.

Tint is really cool, but it lacks a lot of features at this moment. I don't 
have much time, but i am really lazy and most of the things i've doing, i've 
doing via scripts/patches and etc. When i've tried to use tint2 as launcher 
i've found very big problems:

1. I am unable to add 20-30 apps at one time, i need to write them manually in 
config. This is really depressing me :)
2. Tint2 is not supporting menus, this depressing me much much more.

First "problem" i've done in 2 minutes by the following patch (in attach). I 
don't known how you manage memory, how you plan to use glib, finally i don't 
known architecture of the project. Don't punish me for this, just look at the 
patch. I am really happy with it, it just works.

Original issue reported on code.google.com by mishael....@gmail.com on 27 Dec 2011 at 8:11

Attachments:

GoogleCodeExporter commented 8 years ago
This is an excellent addition..

After the patch, just edit the file to point to where all your .desktop files 
are at..

I keep mine in /home/myusername/bin so mine reads

launcher_apps_dir = /home/myusername/bin/

This patch then locates any already created .desktop file and uses it perfectly

Nice Addition!

Original comment by vast...@gmail.com on 28 Dec 2011 at 6:29

GoogleCodeExporter commented 8 years ago
I can see why this makes things easy if you already have the desktop files 
stored in some folder. However, I would not merge this into trunk, because 
there is no way to configure the order of the items.

But it is also very easy to put the entries in the config file by copy-paste, 
there is no need to add them one by one. For me (using nautilus as file manager 
and gedit as text editor), I just select the .desktop files in the file 
manager, copy, go to the config file open in the text editor, paste => I obtain 
the file names, each one on a line. Then all I need to do is prepend 
'launcher_item_app = ' to all, which can be done easily by selecting the text 
and replacing some prefix, e.g. '/usr' with 'launcher_item_app = /usr'. Problem 
solved.

Anyways, very soon I will (finally) update the configuration wizard to use the 
launcher too.

Original comment by mrovi%in...@gtempaccount.com on 28 Dec 2011 at 6:53

GoogleCodeExporter commented 8 years ago
You can easily configure order by naming .desktop files like 01-app.desktop, 
10-app.desktop and etc. Also this can be done through wizard and that would be 
nice.

Original comment by mishael....@gmail.com on 28 Dec 2011 at 8:16

GoogleCodeExporter commented 8 years ago
renaming like 01-app.desktop, 10-app.desktop is a good idea, but it does not 
seem to work as you would expect.  There seems to be another filtering process 
in determining the order

I am working on what that may be

Original comment by vast...@gmail.com on 28 Dec 2011 at 9:21

GoogleCodeExporter commented 8 years ago
I have tried every naming convention you can think of and edited even the 
.desktop files ... I have also added each .desktop to the folder one at a time, 
but I cannot figure out why I can not get the order I want ... there must be 
something else affecting the order of the .desktop files but after working on 
it for the last 3 hours I am no closer to the source

Original comment by vast...@gmail.com on 29 Dec 2011 at 1:01

GoogleCodeExporter commented 8 years ago
The ultimate solution for launchers would be if they were able to have the same 
task settings of toggle/iconify

Never have been able to sort correctly

Original comment by vast...@gmail.com on 29 Dec 2011 at 8:50

GoogleCodeExporter commented 8 years ago
Another possible way to handle this problem: 
https://code.google.com/p/tint2/issues/detail?id=376

Original comment by nodiscc on 30 Dec 2011 at 7:09

GoogleCodeExporter commented 8 years ago
Hi.

New version in attach. Now it sort files alphabetically, also directory 
scanning function moved to utils/common.c (maybe for future usage or so). This 
patch is incompatible with previous so you must get clean sources before apply 
them. Now you can name files with numbers, letters or anything you want. It 
will sort them alphabetically and add to the launcher in correct alphabetical 
order.

Happy NY to all.

PS: I use this naming convention and really happy for now:
10-evolution.desktop
20-gedit.desktop
30-gcalc.desktop
...

PPS: I think this is really nice if software can give you choice, how you will 
configure it.

Original comment by mishael....@gmail.com on 1 Jan 2012 at 12:54

Attachments:

GoogleCodeExporter commented 8 years ago
Confirmed.  Used the new patch and sort happens as it should from the 
naming/number conventions

Nice job!

Original comment by vast...@gmail.com on 1 Jan 2012 at 7:11

GoogleCodeExporter commented 8 years ago
Good to hear, thank for the testing.

Original comment by mishael....@gmail.com on 1 Jan 2012 at 7:29

GoogleCodeExporter commented 8 years ago
I put together a How To on the #! forums showing how to use the Launchers and 
Freespace patches

http://crunchbanglinux.org/forums/post/176490/#p176490

Original comment by vast...@gmail.com on 5 Jan 2012 at 8:22

GoogleCodeExporter commented 8 years ago
With launcher support in tint2conf, this request becomes obsolete. 

Original comment by mrovi9...@gmail.com on 1 Feb 2015 at 11:18

GoogleCodeExporter commented 8 years ago

Original comment by mrovi9...@gmail.com on 27 Feb 2015 at 8:35