By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 1934 - Trinity apps not readily usable in non Trinity desktops
Summary: Trinity apps not readily usable in non Trinity desktops
Status: NEW
Alias: None
Product: TDE
Classification: Unclassified
Component: other (any) (show other bugs)
Version: R14.0.x [Trinity]
Hardware: Other Linux
: P5 critical
Assignee: Timothy Pearson
URL:
Depends on:
Blocks:
 
Reported: 2014-02-14 17:41 CST by Darrell
Modified: 2018-05-27 10:50 CDT (History)
5 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darrell 2014-02-14 17:41:54 CST
Because of a common heritage shared with KDE, Trinity still shares many app and library names with KDE. Therefore to avoid conflicts, the normal practice is to install Trinity to /opt/trinity.

Because of this atypical installation location, on many systems non-Trinity desktops and window managers will not find Trinity apps. For distros designed to use /etc/profile.d, the Trinity packager will include appropriate scripts to populate all necessary environment variables.

A different mechanism is needed for other systems, notably Debian based systems. Minimally the XDG_CONFIG_DIRS and XDG_DATA_DIRS environment variables must be modified to find the /opt/trinity directory.

Currently we have no remedy for getting other environments to source /opt/trinity in the XDG_* environment variables. We have no web site or wiki tutorial explaining how to correctly package Trinity in such systems.
Comment 1 Darrell 2014-02-14 18:41:16 CST
The tutorial should include instructions for packagers to install the tde.desktop session file in the respective directories of other login managers.
Comment 2 Martin Hodges 2014-02-17 14:21:26 CST
Is there any hope with this of getting trinity apps to work in a ssh -X tunnelled envvironment?
Comment 3 Darrell 2014-02-17 14:46:40 CST
>Is there any hope with this of getting trinity apps to work in a ssh -X
>tunnelled environment?

I hope so. Would you please provide detailed steps how this fails for you? Include information about desktops being used in client side, server side, distro used, whether /etc/profile.d exists, etc.
Comment 4 Martin Hodges 2014-02-27 09:46:26 CST
Client and server sides Debian Wheezy installed through the network-install cd and seeded with a list of packages. i.e. NOT tde-trinity.

R14 ppa is in the list of apt sources.

Tdm is the X session manager on both machines.

/etc/profile.d exists but only contains bash_completion.sh script.

Path on the sloginned session does not include /opt/trinity/bin and none of the XDG or TDE environment variables are set.
Comment 5 Martin Hodges 2014-02-27 09:47:55 CST
Client and server sides Debian Wheezy installed through the network-install cd and seeded with a list of packages. i.e. NOT tde-trinity.

R14 ppa is in the list of apt sources.

Tdm is the X session manager on both machines.

/etc/profile.d exists but only contains bash_completion.sh script.

Path on the sloginned session does not include /opt/trinity/bin and none of the XDG or TDE environment variables are set.
Comment 6 Aleksey Midenkov 2014-05-20 03:08:17 CDT
It's not critical. It's major.
Comment 7 Darrell 2014-05-20 11:21:12 CDT
>It's not critical. It's major.
It needs to be fixed.
Comment 8 Aleksey Midenkov 2014-05-21 07:11:56 CDT
> It needs to be fixed.

As all major bugs!
Comment 9 Darrell 2014-06-09 13:29:51 CDT
If this bug report ever receives attention, I hope the topic of full renaming is discussed. One reason for complete renaming is Trinity no longer would need to be treated like a black sheep with always being installed in /opt.

The Mate project folks have done this. The renaming does not have to magical. For example, change konsole or kate to trinity-konsole and trinity-kate, or tde-konsole and tde-kate. As most users launch apps through the menu, they would barely notice the renaming. The Mate folks have done this with many of their files, although I believe the motivating reason was the original apps all were named gnome-*. Nonetheless, such a renaming scheme would allow Trinity to rejoin /usr land.

I am aware of the amount of work and testing required, but complete renaming seems a sane long-term decision.

Based on GTK2, Mate is snappy on older hardware. The project is gaining momentum, is supported in most distros, and will only grow in popularity. Moreso, Mate does not have $PATH or $XDG_DATA_DIR problems because everything is installed in /usr.
Comment 10 Timothy Pearson 2014-06-10 11:45:34 CDT
The reason this report has not received much attention is that it depends on a full renaming as you have mentioned.  There are some serious problems with this, even though it is a good long-term strategy.  For example, what to call Konsole?  Tonsole?  I don't think so. :-)

Also, you should see some of the flak I have been getting for years regarding the renaming I have done to just the user-invisible libraries.  Some of it borders on hate mail.  Naturally I am a bit tired of this and would like someone else to pick up the torch on the renaming project for a while.

At minimum, we need an Etherpad mapping old names to new names, as many of the names will need to be completely re-imagined.  The binary "namespace" of most distributions is quite crowded and it will be hard to avoid stepping on other applications.
Comment 11 Darrell 2014-06-10 14:06:02 CDT
>For example, what to call Konsole?  Tonsole?  I don't think so.
>The binary "namespace" of most distributions is quite crowded
As I mentioned, the mate folks use a simple 'mate' prefix. That would be an option for Trinity. Using a 'tde-' prefix would avoid conflicts.

I am not arguing. Just conversing. The fact that Trinity is forced to live in /opt rather than /usr is going to hurt. I saw at least one review where the reviewer could not run apps from the command line or launcher because $PATH was not configured correctly.
Comment 12 Timothy Pearson 2014-06-10 18:13:40 CDT
(In reply to Darrell from comment #11)
> >For example, what to call Konsole?  Tonsole?  I don't think so.
> >The binary "namespace" of most distributions is quite crowded
> As I mentioned, the mate folks use a simple 'mate' prefix. That would be an
> option for Trinity. Using a 'tde-' prefix would avoid conflicts.

Interesting, I did not know that!  If it is actually working for them then we might be able to do the same.

If we do this, would a suffix or a prefix be more desirable?  I'm leaning toward a suffix personally, but I'd like to hear others' opinions.
Comment 13 Timothy Pearson 2014-06-10 18:15:23 CDT
(In reply to Timothy Pearson from comment #12)
> > As I mentioned, the mate folks use a simple 'mate' prefix. That would be an
> > option for Trinity. Using a 'tde-' prefix would avoid conflicts.
> 
> Interesting, I did not know that!  If it is actually working for them then
> we might be able to do the same.

Upon re-reading this report I see the mention of the -mate suffix in your response.  Sorry for overlooking that.

Would -tde or-trinity be better?

Tim
Comment 14 Darrell 2014-06-10 18:26:29 CDT
They use a 'mate-' PREFIX, not suffix. I believe they do that partly out of renaming apps from the GNOME 2 days, as Mate is a fork/spin-off from GNOME 2 and partly because some apps retain the gnome-* prefix. Such as gnome-terminal, which is still used in GNOME 3.

To me a prefix makes more sense. 'tde' is shorter to type than 'trinity'. Typing tde-konsole will require some adjustment by long-time users, but as long as the bugs are fully repaired before release nobody will have anything to complain about. Anybody who has made menu or launcher shortcuts would have to update, but our r14-xdg-update script would include all of that. Any effort to rename in this manner needs a check list for each bin file to ensure r14-xdg-update is updated.

To remain consistent, share/apps and share/config files should be renamed the same.

A potential mess and a lot of work but living in /opt is not sane or healthy.
Comment 15 Timothy Pearson 2014-06-10 18:42:11 CDT
We could modify the TDE launcher to infer a tde- prefix if a.) the user did not put a tde- prefix on the front and b.) a tde-* executable exists by that name.  That should alleviate much of the problems with long-term users' finger memory (myself included).  Does this seem sane?
Comment 16 Darrell 2014-06-10 18:57:21 CDT
Could be bothersome when users want to mix Trinity and KDE apps. I don't use KDE apps in Trinity except for quick comparison testing, but who knows, some folks might. The apps in KDE that have no Trinity counterpart would not be affected. I am thinking best to not presume and not have the launcher do that.

We threw a lot of effort into the r14-xdg-update script but with a full scale renaming I suspect the script would become unwieldly. After a full scale rename we might have to tell users to just start with a new profile. Not a great move but not unprecedented. Then again, perhaps all files in share/apps and share/config don't have to be renamed.

Whenever we move forward with this bug report, we should first get the R14 bug list out of the way. Then freeze everything and tell GIT users to grab the last set of packages created before the freeze. If we keep three or four folks actively working, then we could finish in a few weeks. But not at the pace we've been going.
Comment 17 Timothy Pearson 2014-06-10 19:46:47 CDT
(In reply to Darrell from comment #16)
> Could be bothersome when users want to mix Trinity and KDE apps. I don't use
> KDE apps in Trinity except for quick comparison testing, but who knows, some
> folks might. The apps in KDE that have no Trinity counterpart would not be
> affected. I am thinking best to not presume and not have the launcher do
> that.

Or an option could be provided to turn it off.  In either case, I'm still leaning towards a suffix as typing "tde-" all the time will get old very fast--at least with a suffix, tab completion will do that for me.

> We threw a lot of effort into the r14-xdg-update script but with a full
> scale renaming I suspect the script would become unwieldly. After a full
> scale rename we might have to tell users to just start with a new profile.
> Not a great move but not unprecedented. Then again, perhaps all files in
> share/apps and share/config don't have to be renamed.

I don't think we have to rename anything that doesn't end up in /usr/bin or /usr/lib.  By using the tde suffix or prefix we've made our intention quite clear--the application's official name is the same as before.

> Whenever we move forward with this bug report, we should first get the R14
> bug list out of the way. Then freeze everything and tell GIT users to grab
> the last set of packages created before the freeze. If we keep three or four
> folks actively working, then we could finish in a few weeks. But not at the
> pace we've been going.

I agree that our pace is terrible.  I've been out of the loop for too long myself; I hope to fix that soon but I cannot guarantee anything at this time.

Tim
Comment 18 Darrell 2014-07-13 17:35:43 CDT
The following one-liner reveals duplicate bin names for both TDE and KDE4 environments:

for f in `/bin/ls -1 /usr/bin`; do if [ -e /opt/trinity/bin/$f ]; then echo $f; fi; done

Somebody with complete full installs of Trinity and KDE4 would be able to provide a full list of duplicates.

A full list might be unnecessary. A possible trick to reduce $PATH issues would be to create /usr/bin sym links to anything populated in /opt/trinity/bin. The file names in /usr/bin would use the tde- prefix. The LibreOffice folks do something similar.
Comment 19 Darrell 2014-11-28 15:29:42 CST
>A possible trick to reduce $PATH issues would be to create /usr/bin sym
>links to anything populated in /opt/trinity/bin. The file names in /usr/bin
>would use the tde- prefix.
I still think this is the best approach. GNOME, Mate, and Cinnamon use respective prefixes in their /usr/bin app names. Using a prefix rather than a suffix would keep TDE consistent with the other desktops. Using tde- rather than trinity- would save some typing, but most people use *.desktop files and menus so mostly would not be bothered by the prefixes. I almost never need the prefixes when using the other desktops.

Populating /usr/bin with sym links to /opt/trinity/bin would be easiest to avoid $PATH issues. Each TDE module that creates a bin file would need a sym link. Perhaps this could be part of the common modules.

While too late for R14.0.0, hopefully this bug report is on the short list for R14.0.1.
Comment 20 Darrell 2014-11-28 15:57:13 CST
I tested sym links in /usr/bin and ran KDE4. I tested running apps from within KDE4 konsole and had no problems running TDE apps. I had to type the 'tde-' prefix for everything in this proof-of-concept test, but if respective *.desktop files contained the same information, users would be able to run individual TDE apps in non TDE desktops and users would not need to tinker with $PATH.

$PATH should remain preset in starttde. Just change all respective *.desktop files to use tde-{appname} and create sym links when building packages.
Comment 21 Darrell 2014-12-30 01:17:51 CST
In a test with Fedora 21 and R14, I ran 'kfmclient openProfile filemanagement' in a MATE desktop. R14 is installed to /opt/trinity. While konqueror opened and ran without errors, the environment is insufficient and konq does not use the user's profilerc file. Thus all file associations set in an actual full TDE session are ignored. The loss of file associations impedes konqueror's usefulness in other desktops.

Testing other apps, such as konsole, do not seem as significantly affected.

At this point I do not know how to resolve the file association problem. I believe the root problem is profilerc not being accessed.