It seems that the default Nautilus behaviour has been changed to always view the file, so double-clicking install-server won't work without changing this option first. Perhaps we can include a .desktop file or something.
Huh. Apparently the following .desktop file works with nautilus: [root@dhcp-254-223 tl-4.0.0post-server]# cat install-server.desktop [Desktop Entry] Type=Application Name=Install ThinLinc Server Exec='./install-server' It complains if the file isn't executable though.
Relative paths are formally not legal according to the desktop specification. This however is: Exec=sh -c "`dirname %k`/install-server"
Here's the upstream commit: https://git.gnome.org/browse/nautilus/commit/?id=72d6c7ce7febd573 I don't agree with any of the presented arguments though.
Perhaps worth noting is that this also affects the tlclient scripts, which can be a pain if you want to run the dynamic client for example.
One problem with the desktop file approach is that it's hard for us to specify icons. The standard is quite clear on the Icon field - it's either an absolute path to a file (which we can't use) or a name which will be looked up in the system locations (to which we haven't installed anything yet).
I suggest we use the system-software-install icon, which is part of the standard set of icons from the Icon Naming Specification, over at freedesktop.org: http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html
Fixed in r29915.
Tested and works great on Ubuntu 14.04, the icon is great.
The file is now executable, which means that bash and other things might try to execute it, with crappy results. If you use nautilus to mark a .desktop file as "trusted", it then puts this hash-bang at the top: #!/usr/bin/env xdg-open That prevents errors, but tends to open the file in a text editor. So we might need an explaining text in there same as in the shell script.
Apparently the text editor thing is a bug: https://bugzilla.gnome.org/show_bug.cgi?id=343896 However, it is still present which means we need to deal with it.
(In reply to comment #9) > The file is now executable, which means that bash and other things might try to > execute it, with crappy results. > > If you use nautilus to mark a .desktop file as "trusted", it then puts this > hash-bang at the top: > > #!/usr/bin/env xdg-open > > That prevents errors, but tends to open the file in a text editor. So we might > need an explaining text in there same as in the shell script. r30255.
Make it clear in README that one should either click the ThinLinc Server Installer icon or run install-server from a terminal.
(In reply to comment #12) > Make it clear in README that one should either click the ThinLinc Server > Installer icon or run install-server from a terminal. r30266.
(In reply to comment #13) > (In reply to comment #12) > > Make it clear in README that one should either click the ThinLinc Server > > Installer icon or run install-server from a terminal. > > r30266. Looks good.
(In reply to comment #14) > (In reply to comment #13) > > (In reply to comment #12) > > > Make it clear in README that one should either click the ThinLinc Server > > > Installer icon or run install-server from a terminal. > > > > r30266. > > Looks good. Almost, the README.txt uses "install-server" while the rest "./install-server" which is more proper.
Verified "ThinLinc Server Installer" desktop file functionality. Works as expected.
(In reply to comment #15) > (In reply to comment #14) > > (In reply to comment #13) > > > (In reply to comment #12) > > > > Make it clear in README that one should either click the ThinLinc Server > > > > Installer icon or run install-server from a terminal. > > > > > > r30266. > > > > Looks good. > > Almost, the README.txt uses "install-server" while the rest "./install-server" > which is more proper. Fixed in r30273: they're all the same as the text in README.txt now.
(In reply to comment #17) > (In reply to comment #15) > > (In reply to comment #14) > > > (In reply to comment #13) > > > > (In reply to comment #12) > > > > > Make it clear in README that one should either click the ThinLinc Server > > > > > Installer icon or run install-server from a terminal. > > > > > > > > r30266. > > > > > > Looks good. > > > > Almost, the README.txt uses "install-server" while the rest "./install-server" > > which is more proper. > > Fixed in r30273: they're all the same as the text in README.txt now. Looks good, closing..