LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-16-2020, 04:47 PM   #31
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Original Poster
Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784

kate, k3b, and most of the applications are now ported to Qt5 already
 
3 members found this post helpful.
Old 02-16-2020, 04:54 PM   #32
slackware-current
Member
 
Registered: Jun 2019
Posts: 60

Rep: Reputation: 6
need to build cmake for qt5 or no going forward
 
Old 02-16-2020, 05:55 PM   #33
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by slackware-current View Post
need to build cmake for qt5 or no going forward

Hmmmm,

Quote:
Sat Feb 15 22:57:25 UTC 2020

d/cmake-3.16.4-x86_64-2.txz: Rebuilt.
Recompiled against qt5-5.13.2.
 
3 members found this post helpful.
Old 02-17-2020, 04:35 AM   #34
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by Alien Bob View Post
Not everything you need should be part of the core distribution. Qt5 applications will respect and adopt the configuration of the Desktop Environment. If you use a Window Manager or an old Desktop Environment that does not interact well with Qt5 based applications, you can for instance set the environment variable "XDG_CURRENT_DESKTOP=KDE" and use the Plasma5 systemsettings5 to configure your environment. The XDG_CURRENT_DESKTOP variable is something you can define in the Window manager startup while the theming/fonts/icons only have to be set once in systemsetting5.
Am I correct in thinking /etc/environment exists in 14.2 but not in current?

It could be that it exists in neither, and that I have simply forgotten creating the file myself. I did create the file in current and added QT_QPA_PLATFORMTHEME=kde to it but it had no effect. Xfce with kwin still had huge titlebar fonts.

I'll try this method of yours next time I have current up and running.
 
Old 02-17-2020, 05:29 AM   #35
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by Gerard Lally View Post
Am I correct in thinking /etc/environment exists in 14.2 but not in current?

It could be that it exists in neither, and that I have simply forgotten creating the file myself. I did create the file in current and added QT_QPA_PLATFORMTHEME=kde to it but it had no effect. Xfce with kwin still had huge titlebar fonts.

I'll try this method of yours next time I have current up and running.
The file /etc/environment exists and is used only on PAM-ified systems.
 
3 members found this post helpful.
Old 02-19-2020, 09:33 AM   #36
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
/etc/environment was added in current for a short period of time when sudo was complaining about its absence, but that bug got fixed and Pat removed it again.

I wrote this quick and dirty C program to get xdm to support /etc/environment on a non-pam system:

envrun.c:
Code:
// Load environment from /etc/environment and run command.

#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>

int set_env_from_file( FILE *infile )
{
    int status = 1;
    char *linebuf;
    size_t linebuf_size = 0;
    ssize_t length = 0;

    errno = 0;
    
    while ( (length = getline(&linebuf, &linebuf_size, infile)) != -1 )
    {
        if ( length > 1 && linebuf[0] != '#' )
        {
            if ( linebuf[length - 1] == '\n' )
                linebuf[--length] = '\0'; /* remove a trailing '\n' */

            putenv(strdup(linebuf));
        }
    }
    if ( errno != 0 )
        status = 0;

    free(linebuf);

    return status;
}

int main( int argc, char *argv[] )
{    
    int status = EXIT_FAILURE;
    char const envfilename[] = "/etc/environment";
    FILE *infile; 

    if ( (infile = fopen(envfilename, "r")) != NULL ) {
        set_env_from_file(infile);
        fclose(infile);
    }

    execv(argv[1], &argv[1]);
    
    return status;
}
Just compile it and stick it in /usr/local/bin and you can replace the #!/bin/bash at the top of /etc/X11/xdm/Xsession with #!/usr/local/bin/envrun /bin/bash and Bob's your teapot!

Alternatively, you can wait for PAM to come along and do the job for you.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
qt5-styleplugins compile error on -current Daedra Slackware 3 03-09-2019 05:44 PM
Qt5.11.3 Slackware64-current package: Strange colors Johncc330 Slackware 5 02-03-2019 09:10 PM
[SOLVED] Building qt5 on slackwarearm-current stormtracknole Slackware - ARM 9 03-06-2018 07:14 PM
[SOLVED] current: lazarus/qt5 SIGSEGV when program exit baldzhang Slackware 2 02-02-2018 09:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration