Running Linux Applications Under Sugar: Difference between revisions

AuntiMame (talk | contribs)
more cleanup
AuntiMame (talk | contribs)
more cleanup
Line 30: Line 30:
<li>Locate an icon you want to use/reuse.</li>
<li>Locate an icon you want to use/reuse.</li>
*You can copy any .svg file located in /usr/share/activities/*.activity/activity/*.svg
*You can copy any .svg file located in /usr/share/activities/*.activity/activity/*.svg
*Or you can use one of the icons CatMoran created--and downloaded using thewget commands listed above. plain.svg is a plain circle, ff.svg is a circle with the letters FF (for Firefox) inside, l.svg is a circle with the single letter L inside. Both of the latter files can be easily edited using any text editor and one or both character(s) changed.Each letter is in plain text just before the </tspan> tags, replace them and save the file.
*Or you can use one of the icons CatMoran created--and downloaded using thewget commands listed above. plain.svg is a plain circle, ff.svg is a circle with the letters FF (for Firefox) inside, l.svg is a circle with the single letter L inside. Both of the latter files can be easily edited using any text editor and one or both character(s) changed. Each letter is in plain text just before the </tspan> tags, replace them and save the file.


<li>Enter the following commands, to log in as root and execute the sug script.</li>
<li>Enter the following commands, to log in as root and execute the sug script. T quit the script at any time, just enter nothing at the prompt and hit the Enter button.</li>


  su
  su
  ./sug
  ./sug


You'll be prompted for an activity name. Enter a short, descriptive name with no spaces or punctuation, such as BibleTime, Firefox, or MC.
First, you'll be prompted for an activity name. Enter a short, descriptive name with no spaces or punctuation, such as BibleTime, Firefox, or MC.


You'll be prompted for an icon file to copy into the new task. Enter the [[Glossary|full path and filename]] of any .svg file. If the icon is in the same directory as the sug file, you can enter just the filename.
Second, you'll be prompted for an icon file to copy into the new task. Enter the [[Glossary|full path and filename]] of any .svg file. If the icon is in the same directory as the sug file, you can enter just the filename.


You'll be prompted for the command to start the program. This is the command you entered from Terminal to start the program, such as firefox.
Next, you'll be prompted for the command to start the program. This is the command you type at the Terminal prompt to start the program, such as firefox, totem, or mc.


You'll be prompted for an organization path, such as org.mozilla If you don't know what this is, just enter org.x
Finally, you'll be prompted for an organization path, such as org.mozilla If you don't know what this is, just enter org.x
 
(If at any of the prompts you want to quit the script, just enter nothing at the prompt.)


The script will give you a success message. Reboot sugar to see the new task in the Sugar taskbar.
The script will give you a success message. Reboot sugar to see the new task in the Sugar taskbar.