Index » PageStream Support » General » Running from desktop icon - Linux |
Sign in to add a comment. | Pages: 1 |
2012-01-11 01:49:40 CT | #1 |
---|---|
Frank Swygert From: United States Registered: 2012-01-08 Posts: 22 |
I'm using Linux Mint 12. I can run Pagestream using the start script once I go to the Pagestream directory (/home/Pagestream5). I copied the script to my desktop and would like to run Pagestream from there. I changed the second line in the run script (export PGSPATH=`dirname "$0"`) to read: I'm not real familiar with Linux, but it was indicated to me in the Mint forum that the path change should work. So what do I need to do to make this run from a script on my desktop? I don't want to move the main program or any components or directories, just want to run it from a desktop icon. Well, I'd like to get it in the Mint Menu system too, but I'll work on that later! |
2012-01-10 20:07:16 CT | #2 |
---|---|
Tim Doty From: United States Registered: 2006-02-06 Posts: 2939 |
Hi, welcome to the list! On Jan 10, 2012, at 7:49 PM, farna@att.net wrote: > I'm using Linux Mint 12. I can run Pagestream using the start script once I go to the Pagestream directory (/home/Pagestream5). I copied the script to my desktop and would like to run Pagestream from there. I changed the second line in the run script (export PGSPATH=`dirname "$0"`) to read: Okay, so first off directories right in /home are for users, not applications. If everything is set right it should still work, but it I don't recommend putting PageStream where you have placed it. You might consider creating /opt/PageStream, or something similar, and putting PageStream there. But that is really just an organization issue. What I suggest doing is running PageStream from the command line to help figure out where the problem is. If you open a terminal window and change to the directory where the script is and run it the output may be informative. For example, my home directory is '/home/tim' so if the startup script were on my desktop I would do the following (after opening a terminal window): cd ~/Desktop Strictly speaking it shouldn't matter which directory you run it from (given that you made the edit) so from the command line you could do: ~/Desktop/Run-PageStream5 The $0 on the line you are changing should not be there with how you want to run it. $0 is a bash variable that gives the name of the script, what is happening is that it is setting the environment variable to the directory that the script is in. That works only if you have the script in the same directory as the executable. > I'm not real familiar with Linux, but it was indicated to me in the Mint forum that the path change should work. So what do I need to do to make this run from a script on my desktop? I don't want to move the main program or any components or directories, just want to run it from a desktop icon. Well, I'd like to get it in the Mint Menu system too, but I'll work on that later! Actually, that might be easier. I'm not familiar with Mint, but if you use the original script and leave it in the PageStream directory then it should work to add the script as the command to start PageStream. (Not that it matters if you have an altered script on your desktop as well.) Tim Doty |
2012-01-11 12:04:01 CT | #3 |
---|---|
Jan Simonson From: Sweden Registered: 2006-02-10 Posts: 69 |
onsdagen den 11 januari 2012 01.49.40 skrev du: I'm not familiar with Mint, but on my Fedora 16 system I have created a To make this work on your system: 1. Copy the enclosed pagestream.desktop into /usr/share/applications/ 2. Copy the enclosed pagestream.png into /usr/share/icons/ 3. Adjust the line starting with Exec= in pagestream.desktop to where you have Note that you have to be root to do this. Regards [Non-text portions of this message have been removed] |
2012-02-10 18:27:32 CT | #4 |
---|---|
Frank Swygert From: United States Registered: 2012-01-08 Posts: 22 |
Jan, I hope you're reading this!! I copied the Icon file over just fine. I don't know what you mean by "1. Copy the enclosed pagestream.desktop into /usr/share/applications/". There is no such file in the Pagestream directory. I don't know how to create such a file -- or rather don't know what to put in it. I can use gedit to create it. Since I have no such file, of course I can't edit it. --- In PageStreamSupport@yahoogroups.com, Jan Simonson <nytt@...> wrote: |
2012-02-10 22:02:53 CT | #5 |
---|---|
Jan Simonson From: Sweden Registered: 2006-02-10 Posts: 69 |
fredagen den 10 februari 2012 18.27.32 skrev du: First of all, I'm sending this to you directly as well as any attached file is [Desktop Entry] This is the same as the enclosed file. Remember to change the line > There is no such file in the Pagestream directory. I don't know how to Regards [Non-text portions of this message have been removed] |
2012-02-13 00:45:21 CT | #6 |
---|---|
Frank Swygert From: United States Registered: 2012-01-08 Posts: 22 |
Jan, you're a life saver! Your pagestrem.desktop file worked perfectly! Pagestream is not in the menu right now, but once I restart the system it may appear. If not it really doesn't matter, but I will probably work with the Mint support group to figure that out. Again, thank you for the help! --- In PageStreamSupport@yahoogroups.com, Jan Simonson <nytt@...> wrote: |
2012-02-12 18:07:21 CT | #7 |
---|---|
David Breakey From: United States Registered: 2006-03-05 Posts: 64 |
Another option is to just use the Menu editor; this will do the same This utility is also used to control what items show up on your personal *Technically* since PageStream is not packaged, you *shouldn't* be On Debian/Ubuntu (and probably Mint as well), this app is just called |
2012-02-13 15:54:04 CT | #8 |
---|---|
Frank Swygert From: United States Registered: 2012-01-08 Posts: 22 |
Well, I had it in my home folder, then moved it on the recommendation that it shouldn't be there, and now... Okay I understand it's just a preference, and really doesn't matter. Since I have it working I'll leave it where it is. I've got to get the different file structure of Linux down anyway. Don't know where to find most stuff right now! Once you get used to the logic behind where things are it makes some sense, but when used to a simpler file structure Linux seems complicated. I'm having an issue with the menu editor in Mint 12, but will take that up with the Mint guys. Right now I'm pretty happy that I have a desktop icon I can click on to run the program! --- In PageStreamSupport@yahoogroups.com, David Breakey <david@...> wrote: |
2012-02-13 13:52:41 CT | #9 |
---|---|
Tim Doty From: United States Registered: 2006-02-06 Posts: 2939 |
Hi, On Feb 13, 2012, at 9:54 AM, farna@att.net wrote: > Well, I had it in my home folder, then moved it on the recommendation that it shouldn't be there, and now... Pretty much. In practice I extract PgS to my desktop, but I wouldn't consider that "installed". There are a variety of conventions about where things should go, at least two if not three or more. LSB (http://en.wikipedia.org/wiki/Linux_Standard_Base) was supposed to resolve this, but every distro had their own implementation of LSB and no two were alike so… Just as an example, Google Chrome installs itself under /opt/ -- in fact /opt is a favored dumping ground for a lot of non-distro software. Installing software in your home directory is just a work around for not having administrative permissions on unix/linux system. Or, preference, or (as in my case) laziness. For what its worth /usr/bin is, according to the "standard" (http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard), the location for 'Non-essential command binaries; for all users' Tim Doty > Since I have it working I'll leave it where it is. I've got to get the different file structure of Linux down anyway. Don't know where to find most stuff right now! Once you get used to the logic behind where things are it makes some sense, but when used to a simpler file structure Linux seems complicated. It is. Should an executable be under /bin, /sbin, /usr/bin, /usr/sbin, /opt or somewhere else? In practice, I let the distro I'm using worry about such things and put things I "install" (like PageStream) wherever I feel like ;) > I'm having an issue with the menu editor in Mint 12, but will take that up with the Mint guys. Right now I'm pretty happy that I have a desktop icon I can click on to run the program! I'm glad that is working for you. Tim Doty > |
Sign in to add a comment. | Pages: 1 |
Index » PageStream Support » General » Running from desktop icon - Linux |