Commit Graph

78 Commits

Author SHA1 Message Date
Evgenii Ilichev
0f89cdcc86 [IJI-2420] musl-compatible fsnotifier
GitOrigin-RevId: f199319dc773f8cf230812f0e90333d7713fd7b4
2025-06-02 14:26:21 +00:00
artem.bochkarev
336265215c IJPL-156149 Drop support of GLobalMenuLinux
cleanup java code

GitOrigin-RevId: 549cfbe58406612d44960f43ff07edcac813719b
2024-07-15 07:26:15 +00:00
Roman Shevchenko
8c0ffaaded [platform] using new restarter on Linux (IDEA-327235 prerequisite)
GitOrigin-RevId: ec238fb9cb8c21ffc6df8c393d45d8556c70bf96
2023-09-29 19:42:15 +00:00
Roman Shevchenko
853ac54288 [platform] using the full path for invoking restart.py under Linux; preferring Python 3 (IDEA-279337)
GitOrigin-RevId: c8c0fd2ad25359b6ce55a1a20e5b8609efea6d1a
2023-01-16 19:36:19 +00:00
Roman Shevchenko
4d07e99dc1 [platform] updating Linux fsnotifier binaries with pinned artifacts
GitOrigin-RevId: 21d96dd91492bfb88fbb4c1dd2d28dbe04bd632e
2022-06-13 13:23:25 +00:00
Roman Shevchenko
825c930c50 [platform] arch-independent names of Linux binary artifacts
GitOrigin-RevId: cf35459a0cce96ba1b21b8462c784933f51d58e5
2022-06-13 10:34:02 +00:00
Vladislav Rassokhin
0e8583fec9 [linux-menu] add libdbm for aarch64, rebuild for x86_64
GitOrigin-RevId: e294f90bca177e99765245e44e399f259b50e9fe
2022-05-30 07:56:36 +00:00
Vladislav Rassokhin
314890b18a IJI-844 Update fsnotifier for Linux to 222.2688
GitOrigin-RevId: 08e341d58df3609e41ee0857b87ec43097eab2cb
2022-05-30 07:56:11 +00:00
Daniil Kalinin
ee8a848f85 Remove printenv.py script for obtaining environment variables to avoid problems like IDEA-281405. Changes:
There is no need in Python on linux anymore to obtain environment variables

Python script changed to direct `env -0` call on linux

printenv binary for macOS and its source code updated to write output directly to stdout, not to temporary file

Added tests with testcontainers to detect problems on different linux distros

(cherry picked from commit 72f7f7ad782cdb4632980d2622023d117e4485dc)

IJ-CR-19090

GitOrigin-RevId: 95b4cc5cca0cff27856a4e92d4ed26fd8aead416
2022-01-31 12:03:49 +00:00
Roman Shevchenko
3cd36497e7 [platform, build scripts] dropping x86 support (IDEA-270576)
GitOrigin-RevId: 80735ea7cd0d026ba3fa73dbfe01d3d4d2dd2149
2021-06-07 09:29:54 +00:00
Roman Shevchenko
63b9ff43e9 [vfs] restoring accidentally broken Linux/WSL fsnotifier ignored roots detection code
GitOrigin-RevId: 16a27d6975f42734c799f4b5c0002ab77113c392
2021-04-19 12:48:56 +03:00
Roman Shevchenko
bae7e84023 [vfs] restoring accidentally broken Linux/WSL fsnotifier event reporting routine
GitOrigin-RevId: 56212c37c8cecc9e0700acf6d02e6f278fdce360
2021-04-19 11:50:30 +03:00
Roman Shevchenko
d44629ff7d [vfs] updating logging in Linux/WSL fsnotifier
Dropping unwarranted use of varargs; reusing printing code; warnings; formatting

GitOrigin-RevId: 9661fafcb44df27adcfe2a7821ea42f7fac37dd7
2021-04-17 00:18:50 +03:00
Roman Shevchenko
7163a25b10 [vfs] updating in Linux/WSL fsnotifier
Dropping `syslog(3)` use; forwarding errors and warnings to the IDE via `stderr`

GitOrigin-RevId: c981356950a0ac3cdcd60990a714f8e7e7220496
2021-04-16 13:21:12 +03:00
artem.bochkarev
60272bba37 IDEA-240623: use separate glib-loop (in separate thread with thread-default context)
fixed IDEA-240623 KDE Global Menu does not work. But it's work with PhpStorm

GitOrigin-RevId: 56b75d6ae4209a12dfc4fcbbc6e9486b07e868d2
2021-02-26 16:22:23 +00:00
Roman Shevchenko
7a47d99d43 [vfs] localizable fsnotifier messages
GitOrigin-RevId: 4757b274e7b87548d6110b0372b2c64d8fae6db5
2020-08-27 16:50:39 +00:00
Nikita Gubarkov
f976641111 [linux-menu] JBR-2565 Create new main context instead of using default one in GlobalMenuLinux
GitOrigin-RevId: 7d686579bc9c694dea7391e0c6ccf95fd1adaf9c
2020-08-08 10:09:03 +00:00
Andrey Vlasovskikh
f07f53d38e PY-40974 Always treat environment variables as raw bytes
It's unnecessary and sometimes wrong to assume any encoding
for an environment variable. They can be encoded differently
depending on the requirements of programs that utilize them.
In our case we just need to pass all the environment
variables "as is" to the IDE process.

I've modified printenv.py so that it's the same version of
the script for both Linux and macOS and for all the Python
versions from 2.3 to at least 3.9.

GitOrigin-RevId: 40d73ef6eb56da8609d75fbce8a4a04c52e317b4
2020-05-31 15:45:29 +03:00
Roman Shevchenko
de98ec1d97 [platform] recognizes 'fuse.osxfs' in Linux file watcher (IDEA-224971)
GitOrigin-RevId: 2c9dacc0e5837b85c620b323de38c8ac0d735168
2019-10-18 15:09:42 +00:00
Roman Shevchenko
c3e404caf7 [platform] drops linux-arm build of fsnotifier; links to compilation instructions on exotic architectures
GitOrigin-RevId: d06b2e1f53e2645dc31f2541a8bd194fdecfb29b
2019-10-18 15:09:42 +00:00
Artem Bochkarev
47b0afad19 linux-menu: fixed mnemonics processing under KDE
process key-events (for mnemonic shortcuts) within ide
2019-02-01 13:32:58 +03:00
Roman Shevchenko
4ef969cc1a [platform] makes fsnotifier look for '/proc/mounts' if '/etc/mtab' is missing (IDEA-198080) 2018-12-17 19:13:21 +01:00
Artem Bochkarev
0eee89e393 linux-menubar: show swing-menu in full screen mode
fixed IDEA-201291 Linux Native menu bar: if 'windows-style' menu (i.e. located on the window title bar) is used, menu can't be used in the Full Screen mode
2018-11-15 16:50:32 +07:00
Artem Bochkarev
b39ba77c58 linux-menubar: fixed IDEA-201286 Linux Native Menu bar: the order of actions in menu can change unexpectedly 2018-11-12 19:08:20 +07:00
Artem Bochkarev
dbbc923321 linux-menubar: impl accelerators for menu items
fixed IDEA-201276 Linux Native menu: shortcuts disappeared from main menu panel
2018-11-12 19:08:20 +07:00
Artem Bochkarev
cef5f29227 linux-menubar: run glib-loop when javafx can't be started 2018-10-24 18:26:29 +07:00
Artem Bochkarev
8e25d2bde5 fixed IDEA-200822 Opening any Markdown file freezes recent IntelliJ Ultimate EAP 183.3795.13 2018-10-24 09:41:01 +07:00
Artem Bochkarev
efe12a1b3f linux-menubar: fixes
fixed IDEA-200379 linux Native menu bar on Ubuntu Linux: the View menu actions have incorrect state
fixed IDEA-151200 Unity menu bar is not available for detached editor tabs and floating tool windows
fixed IDEA-200724 IntelliJ IDEA does not fully start after update, ends with window with menubar and nothing else
fixed IDEA-200374 Throwable at com.intellij.openapi.wm.impl.GlobalMenuLinux.lambda$handleEvent$4
fixed IDEA-200768 Start Splash window doesn't hide
fixed IDEA-200822 Opening any Markdown file freezes recent IntelliJ Ultimate EAP 183.3795.13

fixed GLIB-WARN (child/parent mismatches)
add traces
return checking of registry key linux.native.menu
fix loading of class GlobalMenuLib
2018-10-19 17:02:13 +07:00
Artem Bochkarev
fccc4c43e6 linux-menubar: check for dbus-service (AppMenu) instead of desktop env filters
fixed PY-32237 GUI tests Unable to register window, error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name com.canonical.AppMenu.Registrar was not provided by any .service files
fixed IDEA-200273 Exceptions: GlobalMenuLinux - Unable to register window and AppMenu-service can't register xid
2018-10-16 18:37:12 +07:00
Artem Bochkarev
d4456d65ef linux-menubar: remake interaction model, add events filtering
some of desktop env (KDE for example) doesn't like hierarchy changes when menu is shown, so use 'fixed' internal hierarchy
KDE regulary calls 'about-to-show' for all top-level menus, avoid handling of them with use of event-filter
2018-10-04 23:36:56 +07:00
Artem Bochkarev
91131843b2 linux-menubar: support mnemonics
also add setItemShortcut
2018-09-24 16:35:53 +07:00
Artem Bochkarev
4f839ae920 linux-menubar: implemented global menu for unity 2018-09-18 12:50:45 +07:00
Roman Shevchenko
e1d771b14e [platform] logs optional command exit code in Unix restarter 2018-04-05 19:42:37 +02:00
Roman Shevchenko
ac4fadbb14 [platform] exception logging in Unix restarter script 2017-09-01 09:35:47 +03:00
Roman Shevchenko
ecd27b5418 Cleanup (correct permissions for fsnotifier* binaries) 2017-08-21 15:57:47 +02:00
Roman Shevchenko
fae03c518d [java] replaces libbreakgen with external signal 2016-10-27 14:51:14 +02:00
Roman Shevchenko
cf80f2738e Cleanup (formatting) 2016-10-19 11:06:21 +02:00
Roman Shevchenko
5fbaa08989 [platform] ignore SIGHUP in restarter script (IDEA-162263)
When the IDE is launched in it's own terminal (File Manager | Run in Terminal), shutting it down kills the restarter script as well. Ignoring the signal allows the script to outlive a terminal and successfully restart the IDE.
2016-10-18 20:35:46 +02:00
Roman Shevchenko
5cb324e90a [platform] passes the PID to watch for to the restarter script (IDEA-162263) 2016-10-18 19:43:40 +02:00
Dmitry Trofimov
8f610a89c4 Fix obtaining virtualenv envs on Linux (PY-21055) 2016-10-11 19:12:42 +02:00
Dmitry Trofimov
92ea85e4f7 For cross-platform build take the linux version of printenv.py 2016-09-29 16:41:28 +02:00
Roman Shevchenko
e4082dec4f [platform] fixes for Linux restarter
- correct launcher script name
- correct parent process termination condition on systemd-based systems
2016-09-26 16:02:43 +02:00
Roman Shevchenko
e7571b78c0 [platform] better restarter for Linux (IDEA-161186) 2016-09-24 17:21:11 +03:00
Roman Shevchenko
b3e2ed3518 [vfs] minor fsnotifier (Linux) cleanup/optimization 2016-02-18 14:04:55 +01:00
Pavel Fatin
db531b5f33 ARM architecture support
Tested on Raspberry Pi 2 (Raspbian, Arch Linux) and Raspberry Pi 1 (Arch Linux) with Oracle JDK 8 for ARM.
2015-06-16 14:30:31 +02:00
Roman Shevchenko
68953bdfd4 platform: fsnotifier notification URLs updated 2015-01-22 20:23:37 +01:00
Roman Shevchenko
7f3d5a71e3 IDEA-133844 (correct handling of DT_UNKNOWN in fsnotifier) 2014-12-19 11:02:13 +01:00
Roman Shevchenko
4d26c0a72d platform: system notifications reworked 2014-02-25 10:24:31 +01:00
Denis Fokin
6017ab7b76 IDEA-118708 libnotify is not avaliable in 32bit java 64bit OS configuration 2013-12-26 15:47:43 +04:00
Denis Fokin
adaceb9405 IDEA-118281 Enable SystemNotifications.systemNotify() on Linux 2013-12-18 14:59:01 +04:00