Author Topic: zenity script  (Read 7649 times)

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: zenity script
« Reply #15 on: July 06, 2010, 05:57:19 PM »
I think I figured it out. This part of the script
Code: [Select]
  if [ ! -d $HOME/.plymouth ]; then mkdir -p $HOME/.plymouth; fi
  ln -fs /usr/share/plymouth/themes/$PLY_SELECT/$PLY_SELECT.plymouth $HOME/.plymouth/default
fi

needs to be changed to put the default file in /usr/share/plymouth/themes. I think.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: zenity script
« Reply #16 on: July 06, 2010, 06:24:02 PM »
Adding in
Code: [Select]
echo "$HOME/.plymouth/default" | switch-themes
should do the switch, if I have the correct script form here; i.e.
Code: [Select]
echo "This is the input" | the_other_script.sh 

I'm not used to calling another script from a script, though, so I may have this completely wrong.

Offline tschommer

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1890
  • MLU and BLU (Bacon lovin' user)
Re: zenity script
« Reply #17 on: July 07, 2010, 09:44:34 AM »
Good to hear that the script works!  :D

Calling a second script is just like

Code: [Select]
echo "now i'm in script1 and will call script2"
/<some path>/script2
echo "script2 has finished and i'm back in script1"

Fingers crossed...
Our defense is in the preservation of the spirit which prizes liberty as the heritage of all men, in all lands, everywhere."
Abraham Lincoln --September 11, 1858 Speech at Edwardsville, Illinois

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3739
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: zenity script
« Reply #18 on: July 07, 2010, 09:50:16 AM »
Hi Neal,
for what you need it?

The themes at last works for me perfectly...

I'm trying to create a GUI for changing between plymouth boot themes.

That's sound good  ;)
With the help from tschommer, that will work  :)

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: zenity script
« Reply #19 on: July 07, 2010, 10:37:00 AM »
Testing now.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: zenity script
« Reply #20 on: July 07, 2010, 10:49:12 AM »
Another failed test. :(

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3739
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: zenity script
« Reply #21 on: July 07, 2010, 10:54:31 AM »
Can i get the actually script?

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: zenity script
« Reply #22 on: July 07, 2010, 11:51:08 AM »
Been working on it. Again. But I will attach it as it is at the moment.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: zenity script
« Reply #23 on: July 07, 2010, 02:20:18 PM »
Another one that failed. :( Attached.

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3739
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: zenity script
« Reply #24 on: July 07, 2010, 02:50:02 PM »
heavy, i can now see the window Select a Plymouth Theme,
but no files inside  ::)

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: zenity script
« Reply #25 on: July 07, 2010, 03:07:40 PM »
Try the last script I posted.

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3739
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: zenity script
« Reply #26 on: July 07, 2010, 03:15:51 PM »
I try it, by me it's comes nothing, only with words
Quote
This program will change your plymouth bootsplash theme to the theme of your choice!

Do you wish to continue with the theme switch?
when i click ok, nothing is gone.

I changed a little, so i can see the Listbox without entries  ::)

Thinking, there is no filelist generated...

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: zenity script
« Reply #27 on: July 07, 2010, 03:25:42 PM »
I get a list of my installed plymouth themes with the attached script, though it doesn't change it.

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3739
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: zenity script
« Reply #28 on: July 07, 2010, 03:33:19 PM »
okay, with your latest script, i get the list, too  :)
but the info Plymouth theme unchanged. will not display, commando not found  ::)

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: zenity script
« Reply #29 on: July 07, 2010, 03:40:56 PM »
Yea, that's what I get. :( I've rewritten that part of the script so many times, I've lost count. Still, I think this will be useful to our users, so I'll continue to try.