VectorLinux
July 30, 2014, 12:47:28 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: Print Dialog not launching  (Read 4572 times)
wcs
Packager
Vectorian
****
Posts: 1144


« on: January 02, 2008, 06:10:06 am »

Not exactly about printing, but...
I simply cannot get the Print Dialog in Accessories to launch from the menu (in 5.9). This was also a problem for me in RC3.
What I find puzzling is that running xfprint4 in the command line launches it, but the menu doesn't, even though the desktop file is supposed to call xfprint4.

Anyone else have this problem?
Logged
Triarius Fidelis
Vecteloper
Vectorian
****
Posts: 2399


Domine, exaudi vocem meam


WWW
« Reply #1 on: January 02, 2008, 08:58:22 am »

When you edit the launcher properties, is there anything telling?
Logged

"Leatherface, you BITCH! Ho Chi Minh, hah hah hah!"

Formerly known as "Epic Fail Guy" and "Döden" in recent months
wcs
Packager
Vectorian
****
Posts: 1144


« Reply #2 on: January 02, 2008, 02:44:28 pm »

Quote
When you edit the launcher properties, is there anything telling?

Excluding the names, generic names, and comments in different languages, this is what the file looks like.
It doesn't seem to be a permissions problem and I have bee unable to launch it ever since first booting into 5.9 .

Code:
[Desktop Entry]
Encoding=UTF-8
Name=Xfce 4 Print Dialog
Comment=Print a file and allow you to set up its layout
Exec=/usr/bin/xfprint4
Icon=printer
Terminal=false
Type=Application
Categories=X-XFCE;Utility;
OnlyShowIn=XFCE;
GenericName=Print Dialog
Logged
Triarius Fidelis
Vecteloper
Vectorian
****
Posts: 2399


Domine, exaudi vocem meam


WWW
« Reply #3 on: January 02, 2008, 11:24:06 pm »

 Huh

Very strange. I'm afraid I can't help more because I use Fluxbox.
Logged

"Leatherface, you BITCH! Ho Chi Minh, hah hah hah!"

Formerly known as "Epic Fail Guy" and "Döden" in recent months
exeterdad
Packager
Vectorian
****
Posts: 2046



« Reply #4 on: January 03, 2008, 05:57:52 am »

My menu entry works as expected (VL5.9 Gold)

Aside from what you omitted, my desktop looks the same as what you posted.

That is until the Exec= line.
Mine has Exec=xfprint4 and yours have the full path.  And your path IS correct.

While packaging occasionally I run acrossed a .desktop file I just can not get to work.  Even some I put together myself.  I suspect whitespace or some other invisible to the naked eye stuff.

Here's mine to try if you think it may help? I used cat for your convenience.  Smiley
Code:
cat > /usr/share/applications/xfprint.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=Xfce 4 Print Dialog
Name[be]=Дыялёг друку Xfce 4
Name[bn_IN]=Xfce 4 প্রিন্ট ডায়লগ
Name[ca]=Diàleg d'impressió Xfce4
Name[cs]=Tiskový dialog Xfce 4
Name[de]=Xfce4-Druckdialog
Name[dz]=ཨེཀསི་ཨེཕ་སི་ཨི་༤དཔར་བསྐྲུན་ཌའི་ལོག།
Name[el]=Διάλογος εκτύπωσης Xfce 4
Name[en_GB]=Xfce 4 Print Dialogue
Name[eo]=Xfce 4 presa dialogujo
Name[et]=Xfce 4 Trükkimise dialoog
Name[eu]=Xfce 4 Inprimatze Elkarrizketa
Name[fi]=Xfce 4 tulostusdialogi
Name[fr]=Boîte de dialogue d'impression Xfce4
Name[gu]=Xfce 4 છાપન સંવાદ
Name[he]=תיבת הדפסה של Xfce 4
Name[hu]=Xfce 4 nyomtató párbeszéd
Name[it]=Finestra di dialogo di stampa di Xfce 4
Name[ja]=Xfce 4 プリントダイアログ
Name[ko]=Xfce 4 출력 대화상자
Name[lt]=Xfce 4 Spausdinimo Dialogo Langas
Name[lv]=Xfce 4 Drukas Dialogs
Name[mk]=Xfce 4 Дијалог прозорец за печатење
Name[mr]=Xfce 4 मुद्रण डायलॉग
Name[nb_NO]=Xfce 4 print
Name[nl]=Xfce 4 Print Venster
Name[pa]=Xfce 4 ਛਾਪਣ ਡਾਈਲਾਗ
Name[pl]=Xfce 4 Print Dialog
Name[pt_BR]=Diálogo de Impressão do Xfce 4
Name[pt_PT]=Diálogo de Impressão do Xfce 4
Name[ro]=Dialog de tipărire Xfce 4
Name[ru]=Диалог печати Xfce 4
Name[sk]=Xfce 4 Dialóg tlačiarne
Name[sv]=Xfce 4 Utskriftsdialog
Name[tr]=Xfce 4 Yazdırma Penceresi
Name[uk]=Діалогове вікно друку для Xfce 4
Name[vi]=Hộp thoại in của Xfce 4
Name[zh_CN]=xfce4 打印对话框
Name[zh_TW]=Xfce 4 列印對話
Comment=Print a file and allow you to set up its layout
Comment[be]=Друкуе файл і дазваляе вам наладзіць яго выгляд
Comment[ca]=Imprimeix un fitxer i us permet configurar el seu format
Comment[cs]=Vytiskne soubor a umožní Vám nastavit jeho rozvržení
Comment[de]=Hiermit können Sie eine Datei drucken und das Layout bestimmen.
Comment[dz]=ཡིག་སྣོད་དཔར་བསྐྲུན་འབདཝ་ད་ཁྱོད་ལུ་དེ་གི་སྒྲིག་བཀོད་གཞི་སྒྲིག་འབད་བཅུགཔ་ཨིན།
Comment[el]=Σελιδοποίηση και εκτύπωση αρχείων
Comment[en_GB]=Print a file and allow you to set up its layout
Comment[et]=Trükib faili ja lubab sul sättida selle paigutust
Comment[eu]=Fitxategia inprimatu eta bere ingurunea konfigruatzeko aukera ematen du
Comment[fi]=Tulosta tiedosto ja määritä sen asettelu
Comment[fr]=Imprime un fichier et permet de modifier sa disposition
Comment[he]=מדפיס לקובץ ומאפשר לך לקבוע את העיצוב שלו
Comment[hu]=Fájlt nyomtat beállítja az elrendezést
Comment[it]=Stampa un file e permette di impostarne l'aspetto
Comment[ja]=ファイルをプリントします。また、そのレイアウトを設定します。
Comment[ko]=화일을 출력하고 출력모양을 설정할 수 있게 함
Comment[lt]=Spausdinti failą ir leisti pasirinkti išdėstymą
Comment[lv]=Drukāt failu un ļaut izvēlēties tā izkārtojumu
Comment[mk]=Испечати датотека и дозвола да подесите нивен распоред
Comment[nb_NO]=Skriv ut en fil og tillater deg å justere utformingen.
Comment[nl]=Print een bestand en pas de layout aan
Comment[pa]=ਇੱਕ ਫਾਇਲ ਛਾਪਣ ਅਤੇ ਤੁਹਾਨੂੰ ਇਸਦਾ ਖਾਕਾ ਸੈੱਟਅੱਪ ਕਰਨ ਲਈ
Comment[pl]=Drukuje plik i pozwala na ustawienie wyglądu
Comment[pt_BR]=Imprime um arquivo e permite que você ajuste a sua disposição
Comment[pt_PT]=Imprime um ficheiro e permite que ajuste o seu layout
Comment[ro]=Tipărire fişier cu modificarea aspectului
Comment[sk]=Vytlačiť súbor a umožniť nastavenie jeho vzhľadu
Comment[sv]=Skriver ut en fil och tillåter dig att ställa in layouten för den
Comment[tr]=Dosya yazar ve size yerleşimini ayarlamanıza izin verir
Comment[uk]=Друк файлів та встановлення їх розташування
Comment[vi]=In một tập tin và cho phép người dùng xác lập vẻ ngoài của nó
Comment[zh_CN]=打印文件并让你设置其版面
Comment[zh_TW]=列印檔案並讓您設定其版面
Exec=xfprint4
Icon=printer
Terminal=false
Type=Application
Categories=X-XFCE;Utility;
OnlyShowIn=XFCE;
GenericName=Print Dialog
GenericName[be]=Дыялёг друку
GenericName[bn_IN]=প্রিন্ট ডায়লগ
GenericName[ca]=Diàleg d'impressió
GenericName[cs]=Dialog tisku
GenericName[de]=Druckdialog
GenericName[dz]=དཔར་བསྐྲུན་ཌའི་ལོག།
GenericName[el]=Διάλογος εκτύπωσης
GenericName[en_GB]=Print Dialogue
GenericName[eo]=Presa dialogujo
GenericName[et]=Trükkimise dialoog
GenericName[eu]=Inprimatze Elkarrizketa
GenericName[fi]=Tulostusdialogi
GenericName[fr]=Boîte de dialogue d'impression
GenericName[gu]=છાપન સંવાદ
GenericName[he]=תיבת הדפסה
GenericName[hu]=Nyomtatás párbeszéd
GenericName[it]=Finestra di dialogo di stampa
GenericName[ja]=プリントダイアログ
GenericName[ko]=출력 대화상자
GenericName[lt]=Spausdinimo Dialogo Langas
GenericName[lv]=Drukas Dialogs
GenericName[mk]=Дијалог прозорец за печатење
GenericName[mr]=द मुदण डायलॉगकरा
GenericName[nb_NO]=Skriv ut
GenericName[nl]=Print Venster
GenericName[pa]=ਛਾਪਣ ਡਾਈਲਾਗ
GenericName[pl]=Dialog wydruku
GenericName[pt_BR]=Diálogo de Impressão
GenericName[pt_PT]=Diálogo de Impressão
GenericName[ro]=Dialog de tipărire
GenericName[ru]=Диалог печати
GenericName[sk]=Dialóg tlačiarne
GenericName[sv]=Utskriftsdialog
GenericName[tr]=Yazdırma Penceresi
GenericName[uk]=Діалогове вікно друку
GenericName[vi]=Hộp thoại in
GenericName[zh_CN]=打印对话框
GenericName[zh_TW]=列印對話
EOF

I don't have much faith that will help you as you've mentioned it didn't work out of the box for you anyway.  But hey, you never know.
Logged
wcs
Packager
Vectorian
****
Posts: 1144


« Reply #5 on: January 03, 2008, 03:08:46 pm »

Thanks for answering, exterdad.
My exec line was xfprint4 as well, and that didn't work, so I changed it to the full path without results.

Your file didn't work either.

Now I realised that the icon doesn't work for me in 5.8 either (and I don't think it ever did). Very, very strange.

But I found that if I set Terminal=true, the menu icon works (opening a Terminal first).

Weird .desktop files.
Logged
exeterdad
Packager
Vectorian
****
Posts: 2046



« Reply #6 on: January 03, 2008, 05:24:41 pm »

That is so strange.  I completely believe you, and believe you to be completely capable.  I wonder if somehow a personal setting elsewhere in xfce is acting buggy with certain .desktop files.  Just seems odd that it's giving you grief with two different VL releases, but no one else.

[disclaimer]
There is no hidden meaning in that statement.  I am in no way hinting that you are crazy.   Cheesy
[/disclaimer]
Logged
newt
Vectorian
****
Posts: 1132



« Reply #7 on: January 03, 2008, 05:34:38 pm »

a long shot:
perhaps it's a permissons or ownership problem of that particular desktop file.... I know it doesn't make sense; that's why I say it's a long shot Cheesy
Logged
wcs
Packager
Vectorian
****
Posts: 1144


« Reply #8 on: January 04, 2008, 11:14:22 pm »

Quote
perhaps it's a permissons or ownership problem of that particular desktop file.... I know it doesn't make sense; that's why I say it's a long shot Cheesy

Yea, I thought about that as well, but it doesn't work as root or user and the permissions seem the same as (say) the print manager, which works:

Code:
-rw-r--r-- 1 root root 5256 2007-01-25 21:21 /usr/share/applications/xfprint-manager.desktop
-rw-r--r-- 1 root root  582 2008-01-03 23:19 /usr/share/applications/xfprint4.desktop

Logged
wcs
Packager
Vectorian
****
Posts: 1144


« Reply #9 on: January 04, 2008, 11:17:53 pm »

Quote
There is no hidden meaning in that statement.  I am in no way hinting that you are crazy.   Cheesy

I wouldn't have thought so  Wink

I think you might have hit the spot with the xfce settings... it seems the most plausible explanation, given that the problem shows up with both 5.8 and 5.9 .
Now what that setting might be, I don't know.

Since I'm still "testing" with 5.9, I'll soon reinstall it, and try the icon with a fresh intall to see if the problem is still there.

Right now, my problem is not so much the icon (that I got to run by setting Terminal=true), but that whenever I try to actually print the file (or use the right-click context option), I get a segmentation fault and nothing comes out (opened another thread for that).

Thank you all for the ideas!
Logged
wcs
Packager
Vectorian
****
Posts: 1144


« Reply #10 on: January 26, 2008, 03:26:52 pm »

After reinstalling 5.9, no such problem shows up.
No printer connected now, so maybe that was it.
I have an HP Photosmart coming tomorrow, and should give me no grief using hplip.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!