diff options
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/any.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm index 7b5ede4e8..0fbe7e0a6 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -942,7 +942,10 @@ sub ask_user_and_root { } sub sessions() { - split(' ', run_program::rooted_get_stdout($::prefix, '/usr/sbin/chksession', '-l')); + my $old = chdir('$::prefix/usr/share/xsessions/'); + my @l = map { s/.desktop$//; $_ } glob("*.desktop"); + chdir($old); + @l; } sub sessions_with_order() { my %h = map { /(.*)=(.*)/ } split(' ', run_program::rooted_get_stdout($::prefix, '/usr/sbin/chksession', '-L')); |