Author Topic: repair-database (My first zenity script)  (Read 8769 times)

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3794
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: My first zenity script
« Reply #15 on: January 12, 2011, 01:35:09 PM »
Cancle button works here fine, by rebuilding database  ;)

What is the next what you need?  ;) ;)


Offline glamdring

  • Hero Member
  • *****
  • Posts: 552
Re: My first zenity script
« Reply #16 on: January 12, 2011, 01:45:17 PM »
Dose it delay? The button works for me but after hitting cancel everything disappears for about 10-30sec before the error message comes up.

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3794
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: My first zenity script
« Reply #17 on: January 12, 2011, 01:50:37 PM »
ahhh, no error messages displayed, when i cancelled.
Now i understand what you missing, works by my other scripts not, too...

Offline glamdring

  • Hero Member
  • *****
  • Posts: 552
Re: My first zenity script
« Reply #18 on: January 12, 2011, 02:33:24 PM »
I can't seem to figure out why it would do this. The code is exactly the same as the one for cleaning database(120).

Is there a link/area on the forums I can read about putting the script in the menu so I can launch it like launching getopenoffice.

-Thanks

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: My first zenity script
« Reply #19 on: January 12, 2011, 03:29:58 PM »
I answered that previously.
Quote from: Reply#4
You would need to create a .desktop file for it to have it show in your menu. Check /usr/share/applications for examples.

You need to create that .desktop file for there to be a menu entry.

Do you need it to be created by someone?

Offline glamdring

  • Hero Member
  • *****
  • Posts: 552
Re: My first zenity script
« Reply #20 on: January 12, 2011, 04:10:19 PM »
Well I would rather learn how.
Working on learning gtkdialog which might work better then zenity but it just seems like every thing makes a syntax error.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: My first zenity script
« Reply #21 on: January 12, 2011, 04:34:52 PM »
Well I would rather learn how.

I had thought that might be the case.
A tip: In the .desktop files that you can review, under Name= and Comment= there may be a lot of entries in many languages. When creating your .desktop file, you do not need to be concerned about these translations.

Quote
Working on learning gtkdialog which might work better then zenity but it just seems like every thing makes a syntax error.

Look at lxdecc for an example using gtkdialog.

IMO, for your script zenity is the better choice. However, if gtkdialog works for you, that is great, too. :)




Offline glamdring

  • Hero Member
  • *****
  • Posts: 552
Re: My first zenity script
« Reply #22 on: January 12, 2011, 07:51:27 PM »
Originally I saw the .desktop files but now I see this instead... There all executable etc.



(If pic goes blank its because I haven't paid my webhost in almost 2 months I need to do that)

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: My first zenity script
« Reply #23 on: January 12, 2011, 08:06:32 PM »
Right click on for example, addlocale. Open it with your text editor. You will see how this .desktop file is structured. Now do the same for various others.


Offline glamdring

  • Hero Member
  • *****
  • Posts: 552
Re: My first zenity script
« Reply #24 on: January 12, 2011, 08:22:59 PM »
Yeah I tried that any of the one like getopenoffice are just the bash script. But all the ones that look like a gear open like this (I tried kwrite, geany, and vim)

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: My first zenity script
« Reply #25 on: January 12, 2011, 08:29:17 PM »
Are you looking in /usr/share/applications and not /usr/bin?

Offline glamdring

  • Hero Member
  • *****
  • Posts: 552
Re: My first zenity script
« Reply #26 on: January 12, 2011, 08:58:29 PM »
Are you looking in /usr/share/applications and not /usr/bin?


Well lets pretend all those other posts never happened.  ;)

-Thanks it helps to like in the right spot

Offline glamdring

  • Hero Member
  • *****
  • Posts: 552
Re: My first zenity script
« Reply #27 on: January 12, 2011, 09:12:48 PM »
So far so good this turned out to be much easier then i expected! By the way the icon is great.

Now only thing left is fixing that cancel button.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: My first zenity script
« Reply #28 on: January 12, 2011, 09:29:06 PM »
 :) Thank you. I'm glad you like the icon.

Offline glamdring

  • Hero Member
  • *****
  • Posts: 552
Re: My first zenity script
« Reply #29 on: January 12, 2011, 09:34:45 PM »
Do you know some one even if its on another forum or something I can pm/email to try and get the last cancel button fixed? Its totally baffling me! Why is it the cancel button works just fine for one part but not another?