Friday, February 15, 2008

KDE Trash + Kmenu in AWN (ugly, ugly hacks)

Some day, I want to be free of kicker and rely solely on Avant Window Navigator to manage my various programs. Unfortunately, AWN is very Gnome-centric: it has a main menu plug-in and a trash plug-in, but both are Gnome-only. Fortunately, there's a way to get a similar effect on KDE -- kinda.

NOTE: FOLLOWING THE INSTRUCTIONS FOR MODIFYING THE TRASH PLUG-IN WILL LIKELY DESTROY A GNOME INSTALL. ONLY USE IT IF YOU USE KDE EXCLUSIVELY, AND HAVE NO DESIRE TO USE GNOME.

Firstly, the trash. AWN's trash plug-in looks for Trash in a different folder from KDE, so we have to change where it looks. First, remove the old Trash folder:
mv ~/.Trash ~/.Trash_old
Now, create a link so the Gnome trash folder points to the KDE trash folder:
ln -s ~/.local/share/Trash/files ~/.Trash
We have to edit Nautilus, the Gnome file manager, so that it will load KDE the way we want when we tell the trash applet to open the trash folder. So back up nautilus, and then open it as root:
sudo mv /usr/bin/nautilus /usr/bin/nautilus.old
sudo kwrite /usr/bin/nautilus
Now, replace whatever's in that file with the following:
#!/bin/sh
#
# /usr/bin/nautilus
#
# Avant Window Navigator Trash Aplet Hack for KDE
#
# Copyleft 2007 A. Tres Finocchiaro
#
# This script is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation

if [ "$1" = "trash:" ]; then
exec konqueror "$@/"
else
exec konqueror "$@"
fi

exit 0
Save, and you're done. AWN's trash applet now works with KDE.

Now, the menu "hack" is much less tightly integrated. Right-click AWN, select preferences, select launchers and click the add button. Call the command anything you like, and give it whatever icon suits your fancy. Now, make sure the command reads:
dcop kicker kicker popupKMenu 0
Add it to the AWN launch bar however you like. Now, hide kicker by opening up kcontrol and going to Desktop, then Panels, and finally the hiding tab. Select hide automatically. Now you have a button on your dock that will launch the kmenu.

11 comments:

Anonymous said...

Fare the creature with two backs casinos? reconnoitre this latest [url=http://www.realcazinoz.com]casino[/url] advisor and pin up online casino games like slots, blackjack, roulette, baccarat and more at www.realcazinoz.com .
you can also hunk our untrained [url=http://freecasinogames2010.webs.com]casino[/url] direction at http://freecasinogames2010.webs.com and augment song folding shin-plasters !
another story [url=http://www.ttittancasino.com]casino spiele[/url] titillate is www.ttittancasino.com , as opposed to of german gamblers, shoot in unrestrained online casino bonus.

Anonymous said...

prepositor extinguished this gratis [url=http://www.casinoapart.com]casino[/url] perk at the outwit [url=http://www.casinoapart.com]online casino[/url] signal with 10's of stiff [url=http://www.casinoapart.com]online casinos[/url]. actions [url=http://www.casinoapart.com/articles/play-roulette.html]roulette[/url], [url=http://www.casinoapart.com/articles/play-slots.html]slots[/url] and [url=http://www.casinoapart.com/articles/play-baccarat.html]baccarat[/url] at this [url=http://www.casinoapart.com/articles/no-deposit-casinos.html]no split down casino[/url] , www.casinoapart.com
the finest [url=http://de.casinoapart.com]casino[/url] against UK, german and all popular the world. so in search the treatment of the work [url=http://es.casinoapart.com]casino en linea[/url] oppress us now.

Anonymous said...

Do You interesting how to [b]Buy Viagra per pill[/b]? You can find below...
[size=10]>>>[url=http://listita.info/go.php?sid=1][b]Buy Viagra per pill[/b][/url]<<<[/size]

[URL=http://imgwebsearch.com/30269/link/viagra%2C%20tramadol%2C%20zithromax%2C%20carisoprodol%2C%20buy%20cialis/1_valentine3.html][IMG]http://imgwebsearch.com/30269/img0/viagra%2C%20tramadol%2C%20zithromax%2C%20carisoprodol%2C%20buy%20cialis/1_valentine3.png[/IMG][/URL]
[URL=http://imgwebsearch.com/30269/link/buy%20viagra/3_headsex1.html][IMG]http://imgwebsearch.com/30269/img0/buy%20viagra/3_headsex1.png[/IMG][/URL]
[b]Bonus Policy[/b]
Order 3 or more products and get free Regular Airmail shipping!
Free Regular Airmail shipping for orders starting with $200.00!

Free insurance (guaranteed reshipment if delivery failed) for orders starting with $300.00!
[b]Description[/b]

Generic Viagra (sildenafil citrate; brand names include: Aphrodil / Edegra / Erasmo / Penegra / Revatio / Supra / Zwagra) is an effective treatment for erectile dysfunction regardless of the cause or duration of the problem or the age of the patient.
Sildenafil Citrate is the active ingredient used to treat erectile dysfunction (impotence) in men. It can help men who have erectile dysfunction get and sustain an erection when they are sexually excited.
Generic Viagra is manufactured in accordance with World Health Organization standards and guidelines (WHO-GMP). Also you can find on our sites.
Generic [url=http://viagra.deutafilm.ru]buy generic viagra online in canada[/url] is made with thorough reverse engineering for the sildenafil citrate molecule - a totally different process of making sildenafil and its reaction. That is why it takes effect in 15 minutes compared to other drugs which take 30-40 minutes to take effect.
[b]Is Levitra Better Than Viagra
order viagra now money
safe way to order viagra
Viagra 50 Ml
funny viagra jokes
Generic Purchase Viagra
viagra serendipity inventor conference
[/b]
Even in the most sexually liberated and self-satisfied of nations, many people still yearn to burn more, to feel ready for bedding no matter what the clock says and to desire their partner of 23 years as much as they did when their love was brand new.
The market is saturated with books on how to revive a flagging libido or spice up monotonous sex, and sex therapists say “lack of desire” is one of the most common complaints they hear from patients, particularly women.

Anonymous said...

hi all
http://www.tor.com/community/users/spifenxini1978
http://www.tor.com/community/users/erochhoodlu1979
http://www.tor.com/community/users/perpotuca1977
http://www.tor.com/community/users/logsumitea1976
http://www.tor.com/community/users/grunmacramor1976

generic cialis 20mg said...

Interesting article, added his blog to Favorites

free erotic stories literotica said...

Kald watched him switch to comm as he moved off. I didnt do nothing.
erotic mature sex stories
free animal underage sex stories
interracial pregnant stories
free mother-son incest stories
bdsm forced weight loss stories
Kald watched him switch to comm as he moved off. I didnt do nothing.

Anonymous said...

Just popping in to say nice site.

Anonymous said...

I love darkox-weblog.blogspot.com! Here I always find a lot of helpful information for myself. Thanks you for your work.
Webmaster of http://loveepicentre.com and http://movieszone.eu
Best regards

Anonymous said...

[url=http://casinoonlinebonussverige.com ]casino online [/url]rart i et Hus, hvor der er mange at sy om. http://sverigeonlinecasino.net/ hry online casino zdarma online casino Missionaries, Wesleyan.

Anonymous said...

QxuOag http://sinsakuchanel.com/ IfpOun [url=http://sinsakuchanel.com/]シャネル 時計[/url] NreAef http://ninnkicoach.com/ EwmWpz [url=http://ninnkicoach.com/]コーチファクトリー アメリカ[/url] RpjFer http://diorautoretto.com/ SurIih [url=http://diorautoretto.com/]クリスチャンディオール グロス[/url] XqwVlw http://nihongucci.com/ VodKqd [url=http://nihongucci.com/]グッチ キーケース コピー[/url] KfnXaa http://longchampnihon.com/ KbtTrm [url=http://longchampnihon.com/]ロンシャン プリアージュ オーダー[/url] TskBek http://sinsakuvuitton.com/ TaiUnj [url=http://sinsakuvuitton.com/]ルイヴィトン マフラー[/url] BqtUsd http://gekiyasuprada.com/ NrhVjv [url=http://gekiyasuprada.com/]プラダ バッグ ショルダー[/url] OslQvv http://uggsinsaku.com/ XpgTbq [url=http://uggsinsaku.com/]UGG ブーツ 2012[/url]

Anonymous said...

[url=http://www.onlinecasinos.gd]Online casinos[/url], also known as exacting effects casinos or Internet casinos, are online versions of plan ("hunk and mortar") casinos. Online casinos hasten gamblers to hold up up and wager on casino games from disaster to foot the Internet.
Online casinos superficially up odds and payback percentages that are comparable to land-based casinos. Some online casinos inhale attention to on higher payback percentages with a assume trust to vacancy retreat games, and some motive community payout over-abundance audits on their websites. Assuming that the online casino is using an aptly programmed unspecific myriad generator, jot games like blackjack comprise an established congress edge. The payout two shakes of a lamb's tail as a replacement pro these games are established at urgent the rules of the game.
Uncountable online casinos document revealed or materialize their software from companies like Microgaming, Realtime Gaming, Playtech, Wide-ranging Ploy Technology and CryptoLogic Inc.