Xfce Forum

Sub domains
 

You are not logged in.

#1 2009-07-06 17:05:42

guy_c
Member
Registered: 2009-07-05
Posts: 21

using kfind instead of catfish

I am putting here the bottom line so one can do it w/o reading the discussion.

Using synaptic, install kfind. You should find in usr/share/applications the folder kde4 and in it, the file kfind.desktop.

In order to have kfind categorized as catfish (in accessories) You will need to make the following changes to kfind.desktop BUT I'd recommend that you do them w/o xfce running; e.g. with nano or whatever.


Changes to the file: Commented out by me are marked Comment guy and eventually followed by a different directive
[Desktop Entry]
Comment guy Exec=kfind %u
Exec=kfind
Comment guy Icon=system-search
Icon=kfind
Comment guy X-DocPath=kfind/index.html
Comment guy X-KDE-StartupNotify=true
StartupNotify=true
Comment guy OnlyShowIn=KDE;
Comment guy Category Qt;KDE;Core;
Categories=GTK;Utility;Filesystem

Many thanks to S0ulslack

---------------start of original discussion-----------------------------------------------
Hello,

I have just installed xfce and installed catfish as file finder. It's been added in 'accessories' category. Now I much prefer kfind from kde4 and installed it with synaptic. The problem is that it did not appear in any category and in order to launch it I need to go with thunar to usr/share/applications/kde4 and launch kfind.desktop to see its window. Can you please tell how I put it as an icon in a category? say by catfish?
(tried appfinder with no success)
Many thanks in advance
Guy

Offline

#2 2009-07-06 18:55:57

FrancescoA
Member
Registered: 2009-04-27
Posts: 38

Re: using kfind instead of catfish

guy_c wrote:

Hello,

I have just installed kde4 and installed catfish as file finder. It's been added in 'accessories' category. Now I much prefer kfind from kde4 and installed it with synaptic. The problem is that it did not appear in any category and in order to launch it I need to go with thunar to usr/share/applications/kde4 and launch kfind.desktop to see its window. Can you please tell how I put it as an icon in a category? say by catfish?
(tried appfinder with no success)
Many thanks in advance
Guy

I have tried it (it also didn't work):

I copied it to /usr/share/applications/kfind.desktop (don't know if it is necessary)
than:

OnlyShowIn=KDE; (remove that)
NoDisplay=false (if it is true, set it to false)

Offline

#3 2009-07-07 14:46:46

guy_c
Member
Registered: 2009-07-05
Posts: 21

Re: using kfind instead of catfish

Hi Francesco,

Have you finally succeeded to have kfind somewhere in the xfce menu?

If so, please explain how exactly you proceeded

Many thanks

Offline

#4 2009-07-08 10:46:30

FrancescoA
Member
Registered: 2009-04-27
Posts: 38

Re: using kfind instead of catfish

guy_c wrote:

Hi Francesco,

Have you finally succeeded to have kfind somewhere in the xfce menu?

If so, please explain how exactly you proceeded

Many thanks

Hmm, I would look for an application, which appear in your menu. Then search for the app desktop file, look at it and try to narrow those entries to kfind.desktop. Maybe you copy first kfind.desktop to /usr/share/applications.
For what I saw:
remove: OnlyShowIn=KDE;
add Application or System, ... Categories=Qt;KDE;Core;
remove NoDisplay=true

than log out or restart

When that does not help, pleas ask another one. I'm no expert... wink

Offline

#5 2009-07-15 05:41:07

guy_c
Member
Registered: 2009-07-05
Posts: 21

Re: using kfind instead of catfish

Finally I installed it on the desktop (right click, link to kfind.bin + kfind icon) so I can access it by closing all windows. Not ideal but acceptable

Offline

#6 2009-07-15 11:37:39

ManOfSteel
Member
Registered: 2005-10-06
Posts: 104

Re: using kfind instead of catfish

guy_c wrote:

I can access it by closing all windows

You don't necessarily have to close all your windows. There's a "show desktop" button somewhere.

Besides, you could also make a quick launcher for it (kfind).

Offline

#7 2009-07-15 11:45:14

guy_c
Member
Registered: 2009-07-05
Posts: 21

Re: using kfind instead of catfish

Hello, That's what I did: a quick launcher. But I wanted to have it categorized in the panel under, say, system > file management -> kfind, Thunar, catfish etc

Offline

#8 2009-07-15 11:56:05

s0ulslack
Member
From: Idaho
Registered: 2005-12-25
Posts: 291

Re: using kfind instead of catfish

You can create a .desktop file and slap it in ~/.local/share/applications/.  Read over http://wiki.xfce.org/howto/customize-menu or just copy one from /usr/share/applications/

Theres a shortcut for Show Desktop, default I think is ctrl+alt+d... you can set it in Settings-> Window Manager-> Keyboard

Offline

#9 2009-07-15 14:04:52

guy_c
Member
Registered: 2009-07-05
Posts: 21

Re: using kfind instead of catfish

What is ~? is it a placeholder for "a specific user"

I don't have a ".desktop" in /usr/share/applications/ I do have a "desktop"

Surprisingly kfind finds no file of the type "desktop configuration" (there are plenty of them) unless their name ends with .desktop (?!)

Offline

#10 2009-07-15 16:45:51

s0ulslack
Member
From: Idaho
Registered: 2005-12-25
Posts: 291

Re: using kfind instead of catfish

~ is $HOME, as in /home/username/.

As for the ".desktop" files, they all end in .desktop.  Take a peak at /usr/share/applications/Thunar.desktop you won't have to change much for your needs, save it in ~/.local/share/applications/kfind.desktop or whatever

Offline

#11 2009-07-17 09:11:08

guy_c
Member
Registered: 2009-07-05
Posts: 21

Re: using kfind instead of catfish

Hello,

Thunar does not show the same filenames as cli "dir" commend. kfind looks for filenames shown by "dir" :? I have the impression that Thunar is working with a special smart switch which make this confusion.

Is there a resource giving a user level description of typical Debian file structure with common symbols and abbreviations such as "~" "$HOME"?

Thanks in advance for your time

Offline

#12 2009-07-18 08:07:15

ManOfSteel
Member
Registered: 2005-10-06
Posts: 104

Re: using kfind instead of catfish

You mean the "ls" command?
Is there any difference between "ls" or "ls -l"?
Do you see files names starting with "." (dots) with "ls"? These are mostly settings files usually hidden from normal view. In Thunar you may have to do: View > Show Hidden Files (or press ctrl+H).

The tilde (~) represents the current user's home directory on *nix systems. It's just a standard.
Everything starting with a dollar sign is an environment variable. These are not solely related to the file structure. For example $PAGER defines your shell pager.
In most *nix systems you have a .profile file in your home directory where these env variables are defined and exported. You may also have one in /.profile which serves as a template.
Check your man pages for more information.

Offline

#13 2009-07-18 15:31:24

guy_c
Member
Registered: 2009-07-05
Posts: 21

Re: using kfind instead of catfish

Tried to copy /usr/share/applications/kde4/kfind.desktop to /usr/share/applications/kfind.desktop.

Now when I startx I can no more move / resize / terminate windows and there is a permanent command line window at the top left. The cursor is a bold X except when in the cli window


ps ax shows xfdesktop and xfce4-panel

Tried to uninstall and reinstall xfce4 but getting same behavior

I am stuck; please help

Offline

#14 2009-07-18 15:57:58

s0ulslack
Member
From: Idaho
Registered: 2005-12-25
Posts: 291

Re: using kfind instead of catfish

hah just sounds like xfwm4 died for some odd reason, see if its running... if not, alt+f2-> xfwm4

you'll probably want to look at /usr/share/applications/kfind.desktop to make sure nothing like OnlyShowIn=KDE etc is still in there too

Offline

#15 2009-07-18 16:36:40

guy_c
Member
Registered: 2009-07-05
Posts: 21

Re: using kfind instead of catfish

no there was no xfwm4 and yes it fixed everything.

Removed kfind from applications and will only put it back  when I'll be sure it won't harm. If you can help, here it is

[Desktop Entry]
Exec=kfind %u
Icon=system-search
X-DocPath=kfind/index.html
Type=Application
Terminal=false
Name=Find Files/Folders
Name[af]=Soek Lêers/Gidse
Name[ar]=إبحث عن ملفات/مجلّدات
Name[as]=নথিপত্ৰ/পঞ্জিকা বিচাৰক
Name[be]=Пошук файлаў і тэчак
Name[be@latin]=Pošuk fajłaŭ i katalohaŭ
Name[bg]=Търсене на файлове
Name[bn]=ফাইল/ফোল্ডার অনুসন্ধান
Name[bn_IN]=ফাইল/ফোল্ডার অনুসন্ধান
Name[br]=Klask restroù/renkelloù
Name[ca]=Cerca fitxers i carpetes
Name[cs]=Najít soubory/složky
Name[csb]=Szëkba lopków/katalogów
Name[da]=Find filer/mapper
Name[de]=Dateien/Ordner suchen
Name[el]=Αναζήτηση αρχείων/φακέλων
Name[eo]=Trovi dosierojn/dosierujojn
Name[es]=Buscar archivos/carpetas
Name[et]=Failide/kataloogide otsimine
Name[eu]=Bilatu fitxategiak/karpetak
Name[fa]=یافتن پرونده‌ها/پوشه‌ها
Name[fi]=Etsi tiedostoja ja kansioita
Name[fr]=Recherche de fichiers / dossiers
Name[fy]=Triemmen/mappen sykje
Name[ga]=Aimsigh Comhaid/Comhadlanna
Name[gl]=Procurar ficheiros/cartafoles
Name[gu]=ફાઇલો/ફોલ્ડરો શોધો
Name[he]=חפש קבצים או תיקיות
Name[hi]=फ़ाइलें/फोल्डर ढूंढें
Name[hne]=फाइल मन ल/फोल्डर मन ल खोजव
Name
=Traži datoteke/mape
Name[hsb]=Dataje/zapiski namakać
Name[hu]=Fájlkereső
Name[is]=Finna skrár/möppur
Name[it]=Trova file/cartelle
Name[ja]=ファイル/フォルダを検索
Name[ka]=ფაილთა და საქაღალდეთა ძიება
Name[kk]=Файлды не қапшықты табу
Name[km]=រក​ឯកសារ/ថត
Name[kn]=ಕಡತಗಳನ್ನು/ಕಡತಕೋಶಗಳನ್ನು ಹುಡುಕು
Name[ko]=파일/폴더 찾기
Name[ku]=Pelan/peldankan Bibîne
Name[lt]=Rasti failus/aplankus
Name[lv]=Meklēt failus/mapes
Name[mai]=फाइलसभ/फोल्डरसभ ढूँढू
Name[mk]=Пронајди датотеки/папки
Name[ml]=രേഖകളും കൂടകളും തിരയുക
Name[mr]=फाइल/फोल्डर पहा
Name[ms]=Cari Fail/Folder
Name[nb]=Finn filer/mapper
Name[nds]=Dateien/Ornern söken
Name[ne]=फाइल/फोल्डर फेला पार्नुहोस्
Name[nl]=Bestanden/mappen zoeken
Name[nn]=Finn filer/mapper
Name[or]=ଫାଇଲ/ଫୋଲଡର ଖୋଜନ୍ତୁ
Name[pa]=ਫਾਇਲ/ਫੋਲਡਰ ਖੋਜ
Name[pl]=Wyszukiwanie plików/katalogów
Name[pt]=Procurar Ficheiros/Pastas
Name[pt_BR]=Procurar arquivos/pastas
Name[ro]=Caută fișiere/dosare
Name[ru]=Поиск файлов и папок
Name[se]=Oza fiillaid dahje máhpaid
Name[sk]=Hľadať súbory/priečinky
Name[sl]=Najdi datoteke in mape
Name[sr]=Тражење фајлова и фасцикли
Name[sr@latin]=Traženje fajlova i fascikli
Name[sv]=Hitta filer eller kataloger
Name[ta]=கோப்புகள்/அடைவுகளைக் கண்டுபிடி
Name[te]=దస్త్రాలు/ఫొల్డర్లను వెతుకు
Name[tg]=Ҷустуҷӯи файлҳо/феҳристҳо
Name[th]=ค้นหาแฟ้ม/โฟลเดอร์
Name[table]------------------------------------------------------------------
[td]=Dosya / Dizin Bul
Name[uk]=Пошук файлів та тек
Name[uz]=Fayl/jildlarni qidirish
Name[uz@cyrillic]=Файл/жилдларни қидириш
Name[vi]=Tìm Tập tin/Thư mục
Name[wa]=Trover des fitchîs/ridants
Name[x-test]=xxFind Files/Foldersxx
Name[zh_CN]=查找文件/文件夹
Name[zh_TW]=尋找檔案/資料夾
X-KDE-StartupNotify=true
OnlyShowIn=KDE;
Categories=Qt;KDE;Core;

Offline

#16 2009-07-18 16:38:33

s0ulslack
Member
From: Idaho
Registered: 2005-12-25
Posts: 291

Re: using kfind instead of catfish

That wasn't what caused xfwm4 to die, it doesn't care about .desktop files.
Also, like I mentioned... OnlyShowIn=KDE; - remove that line

You'll also wanna check the Categories line, you can see how others are listed by checking their .desktop file in /usr/share/applications/

Offline

#17 2009-07-19 09:31:14

guy_c
Member
Registered: 2009-07-05
Posts: 21

Re: using kfind instead of catfish

I did as you said and mimicked the catfish .desktop.
It's been categorized as catfish. It's been named "Find files/Folders" as mentioned in the .desktop.
The name is repeated twice on two consecutive lines(?), both with the correct kfind icon

Offline

#18 2009-07-19 09:40:08

guy_c
Member
Registered: 2009-07-05
Posts: 21

Re: using kfind instead of catfish

But this time I copied it from applications/kde4 to applications from the cli w/o xfce running by cp kfind.desktop ..

Offline

#19 2009-07-19 09:41:28

s0ulslack
Member
From: Idaho
Registered: 2005-12-25
Posts: 291

Re: using kfind instead of catfish

Hrm, that doesn't make much sense.  If you remove the .desktop file you created do both disappear?

Offline

#20 2009-07-19 10:24:55

guy_c
Member
Registered: 2009-07-05
Posts: 21

Re: using kfind instead of catfish

You are right: one from applications and he other from applications/kde4. "it" looks in subdirs for desktops too

Offline

Board footer

Powered by FluxBB