[krusader] [Bug 381675] Can't run shared object (library)

2018-06-02 Thread amilino
https://bugs.kde.org/show_bug.cgi?id=381675

--- Comment #16 from amilino  ---
I managed to resolve issue with not seeing terminal window by adding this line
at the beginning of the shell script:

# If the script is not running in a terminal then it restarts itself in
Terminal.
tty -s; if [ $? -ne 0 ]; then x-terminal-emulator -e "$0"; exit; fi

and if I don't want terminal to be closed immediately after execution is
finished I also add this line at the very end of the shell script:

# Prevent closing the terminal
$SHELL

-- 
You are receiving this mail because:
You are watching all bug changes.

[krusader] [Bug 381675] Can't run shared object (library)

2018-06-01 Thread Nikita Melnichenko
https://bugs.kde.org/show_bug.cgi?id=381675

--- Comment #15 from Nikita Melnichenko  ---
Please file a separate bug for .desktop files, so we can prioritize
accordingly. We consider this (running binaries) to be resolved.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krusader] [Bug 381675] Can't run shared object (library)

2018-06-01 Thread amilino
https://bugs.kde.org/show_bug.cgi?id=381675

--- Comment #14 from amilino  ---
Yes, I can also confirm that. But if did you try it with Krusader privileged
mode? In my case even Kate will not be opened. Please fix this, I would like to
have desktop file executed in "normal" and privileged mode (root).

-- 
You are receiving this mail because:
You are watching all bug changes.

[krusader] [Bug 381675] Can't run shared object (library)

2018-06-01 Thread Toni Asensi Esteve
https://bugs.kde.org/show_bug.cgi?id=381675

Toni Asensi Esteve  changed:

   What|Removed |Added

 CC||toni.ase...@kdemail.net

--- Comment #13 from Toni Asensi Esteve  ---
Created attachment 112994
  --> https://bugs.kde.org/attachment.cgi?id=112994&action=edit
A screenshot after double-clicking a .desktop file. What it happened was that
Kate was launched

I attach a screenshot after I:
- launched the K Menu, 
- dragged the Dolphin icon to the desktop, 
- executed `chmod +x 'org.kde.dolphin.desktop`,
- double-clicked the .desktop file. 

What it happened was that Kate was launched. I tried it using Dolphin, and
dolphin executed that desktop file.

> [...] if I run shell file in normal Krusader mode [...] then it will be 
> executed, but desktop file will be opened in Kate editor.

> Desktop files are not executed, whatever I do.

The same happens to me (using Kubuntu 18.04).

-- 
You are receiving this mail because:
You are watching all bug changes.

[krusader] [Bug 381675] Can't run shared object (library)

2018-05-31 Thread amilino
https://bugs.kde.org/show_bug.cgi?id=381675

--- Comment #12 from amilino  ---
After some more testing :), I realized that shell files are executed in the
background I don't see terminal.

Desktop files are not executed, what every I do.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krusader] [Bug 381675] Can't run shared object (library)

2018-05-31 Thread amilino
https://bugs.kde.org/show_bug.cgi?id=381675

amilino  changed:

   What|Removed |Added

 CC||amil...@gmail.com

--- Comment #11 from amilino  ---
After doing some testing on Kubuntu 18.04. I have two cases if I run Krusader
as root, nothing happened when I run executable file (tested with shell and
desktop files). In second case if I run shell file in normal Krusader mode (not
root mode) then it will be executed, but desktop file will be opened in Kate
editor.

In Dolphin or Double commander (root mode) I have no issues, files are normally
executed.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krusader] [Bug 381675] Can't run shared object (library)

2018-05-16 Thread Nikita Melnichenko
https://bugs.kde.org/show_bug.cgi?id=381675

Nikita Melnichenko  changed:

   What|Removed |Added

 Resolution|WAITINGFORINFO  |UPSTREAM
 Status|NEEDSINFO   |RESOLVED

--- Comment #10 from Nikita Melnichenko  ---
It says "shared library" on both yours and my exe.

I'm using KF 5.43. Please try to upgrade whenever you are ready and reopen if
it doesn't fix the issue.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krusader] [Bug 381675] Can't run shared object (library)

2018-05-16 Thread Roman
https://bugs.kde.org/show_bug.cgi?id=381675

--- Comment #9 from Roman  ---
Actually it might depend on KF version. I have KDE Frameworks 5.28.0 and
encounter the same problem in Dolphin.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krusader] [Bug 381675] Can't run shared object (library)

2018-05-16 Thread Roman
https://bugs.kde.org/show_bug.cgi?id=381675

--- Comment #8 from Roman  ---
(In reply to Nikita Melnichenko from comment #7)

Does Krusader recognize the file type as application/x-sharedlib for you?

-- 
You are receiving this mail because:
You are watching all bug changes.

[krusader] [Bug 381675] Can't run shared object (library)

2018-05-15 Thread Nikita Melnichenko
https://bugs.kde.org/show_bug.cgi?id=381675

Nikita Melnichenko  changed:

   What|Removed |Added

 CC||nikita+...@melnichenko.name
 Resolution|--- |WAITINGFORINFO
 Status|CONFIRMED   |NEEDSINFO

--- Comment #7 from Nikita Melnichenko  ---
Can't repro:

- test.cpp -

#include 
#include 
using namespace std;

int main () {
  ofstream myfile;
  myfile.open ("example.txt");
  myfile << "Writing this to a file.\n";
  myfile.close();
  return 0;
}

- terminal -

$ g++ -fPIC -pie test.cpp
$ file a.out
a.out: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically
linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, not
stripped
$ ./a.out
$ ls
a.out  example.txt  test.cpp
$ rm example.txt
$ # run from krusader
$ ls
a.out  example.txt  test.cpp

-- 
You are receiving this mail because:
You are watching all bug changes.

[krusader] [Bug 381675] Can't run shared object (library)

2018-05-15 Thread Roman
https://bugs.kde.org/show_bug.cgi?id=381675

--- Comment #6 from Roman  ---
So I got the new version (2.7.0) and it's still not fixed.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krusader] [Bug 381675] Can't run shared object (library)

2017-06-26 Thread Roman
https://bugs.kde.org/show_bug.cgi?id=381675

--- Comment #5 from Roman  ---
Basically compile any C program with -fPIC -pie parameters. It will be runnable
shared object. Debian just seems to do it by default.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krusader] [Bug 381675] Can't run shared object (library)

2017-06-26 Thread Alex Bikadorov
https://bugs.kde.org/show_bug.cgi?id=381675

Alex Bikadorov  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Status|UNCONFIRMED |CONFIRMED

--- Comment #4 from Alex Bikadorov  ---
Can confirm with libc.so.6

-- 
You are receiving this mail because:
You are watching all bug changes.

[krusader] [Bug 381675] Can't run shared object (library)

2017-06-26 Thread Roman
https://bugs.kde.org/show_bug.cgi?id=381675

--- Comment #3 from Roman  ---
Created attachment 106317
  --> https://bugs.kde.org/attachment.cgi?id=106317&action=edit
binary produced by gcc6 on Debian. Just calls system("xterm")

(In reply to Alex Bikadorov from comment #2)
> Please provide an example file.

I think libc.so.6 is usually executable on most linux distros. It prints some
info when running.
Debian stretch builds C and C++ apps by default as executable shared objects.
If you still need example, I've attached simple C program that is shared object
but executable (upon downloading mark it as executable).

-- 
You are receiving this mail because:
You are watching all bug changes.

[krusader] [Bug 381675] Can't run shared object (library)

2017-06-26 Thread Alex Bikadorov
https://bugs.kde.org/show_bug.cgi?id=381675

Alex Bikadorov  changed:

   What|Removed |Added

 CC||alex.bikado...@kdemail.net

--- Comment #2 from Alex Bikadorov  ---
Please provide an example file.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krusader] [Bug 381675] Can't run shared object (library)

2017-06-26 Thread Roman
https://bugs.kde.org/show_bug.cgi?id=381675

--- Comment #1 from Roman  ---
(In reply to Roman from comment #0)
> Krusader does run such files. It asks to choose application to open file
> with instead.

I meant "does not"

-- 
You are receiving this mail because:
You are watching all bug changes.