Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 527236 Details for
Bug 635366
media-tv/tvbrowser-4.0 version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
4.0.1-remove-registrykey.patch, derived from 3.4.3
4.0.1-remove-registrykey.patch (text/plain), 7.11 KB, created by
Robert Schedel
on 2018-04-12 21:10:19 UTC
(
hide
)
Description:
4.0.1-remove-registrykey.patch, derived from 3.4.3
Filename:
MIME Type:
Creator:
Robert Schedel
Created:
2018-04-12 21:10:19 UTC
Size:
7.11 KB
patch
obsolete
>--- src/tvbrowser/TVBrowser.java.orig 2018-03-18 12:14:52.059137201 +0100 >+++ src/tvbrowser/TVBrowser.java 2018-03-18 12:15:40.281135637 +0100 >@@ -85,9 +85,6 @@ import org.pushingpixels.substance.api.s > import com.jgoodies.looks.LookUtils; > import com.l2fprod.gui.plaf.skin.SkinLookAndFeel; > >-import ca.beq.util.win32.registry.RegistryKey; >-import ca.beq.util.win32.registry.RegistryValue; >-import ca.beq.util.win32.registry.RootKey; > import devplugin.Date; > import devplugin.ProgramFieldType; > import devplugin.Version; >@@ -591,77 +588,6 @@ public class TVBrowser { > SwingUtilities.invokeLater(() -> { > ChannelList.completeChannelLoading(); > initializeAutomaticDownload(); >- if (Launch.isOsWindowsNtBranch()) { >- try { >- RegistryKey desktopSettings = new RegistryKey( >- RootKey.HKEY_CURRENT_USER, "Control Panel\\Desktop"); >- RegistryValue autoEnd = desktopSettings >- .getValue("AutoEndTasks"); >- >- if (autoEnd.getData().equals("1")) { >- RegistryValue killWait = desktopSettings >- .getValue("WaitToKillAppTimeout"); >- >- int i1 = Integer.parseInt(killWait.getData().toString()); >- >- if (i1 < 5000) { >- JOptionPane pane = new JOptionPane(); >- >- String cancel = mLocalizer.msg("registryCancel", >- "Close TV-Browser"); >- String dontDoIt = mLocalizer.msg("registryJumpOver", >- "Not this time"); >- >- pane.setOptions(new String[] { >- Localizer.getLocalization(Localizer.I18N_OK), dontDoIt, >- cancel }); >- pane.setOptionType(JOptionPane.YES_NO_CANCEL_OPTION); >- pane.setMessageType(JOptionPane.WARNING_MESSAGE); >- pane >- .setMessage(mLocalizer >- .msg( >- "registryWarning", >- "The fast shutdown of Windows is activated.\nThe timeout to wait for before Windows is closing an application is too short,\nto give TV-Browser enough time to save all settings.\n\nThe setting hasn't the default value. It was changed by a tool or by you.\nTV-Browser will now try to change the timeout.\n\nIf you don't want to change this timeout select 'Not this time' or 'Close TV-Browser'.")); >- >- pane.setInitialValue(mLocalizer.msg("registryCancel", >- "Close TV-Browser")); >- >- JDialog d = pane.createDialog(UiUtilities >- .getLastModalChildOf(mainFrame), UIManager >- .getString("OptionPane.messageDialogTitle")); >- d.setModalityType(ModalityType.DOCUMENT_MODAL); >- UiUtilities.centerAndShow(d); >- >- if (pane.getValue() == null >- || pane.getValue().equals(cancel)) { >- mainFrame.quit(); >- } else if (!pane.getValue().equals(dontDoIt)) { >- try { >- killWait.setData("5000"); >- desktopSettings.setValue(killWait); >- JOptionPane >- .showMessageDialog( >- UiUtilities.getLastModalChildOf(mainFrame), >- mLocalizer >- .msg("registryChanged", >- "The timeout was changed successfully.\nPlease reboot Windows!")); >- } catch (Exception registySetting) { >- JOptionPane >- .showMessageDialog( >- UiUtilities.getLastModalChildOf(mainFrame), >- mLocalizer >- .msg( >- "registryNotChanged", >- "<html>The Registry value couldn't be changed. Maybe you haven't the right to do it.<br>If it is so contact you Administrator and let him do it for you.<br><br><b><Attention:/b> The following description is for experts. If you change or delete the wrong value in the Registry you could destroy your Windows installation.<br><br>To get no warning on TV-Browser start the Registry value <b>WaitToKillAppTimeout</b> in the Registry path<br><b>HKEY_CURRENT_USER\\Control Panel\\Desktop</b> have to be at least <b>5000</b> or the value for <b>AutoEndTasks</b> in the same path have to be <b>0</b>.</html>"), >- Localizer.getLocalization(Localizer.I18N_ERROR), >- JOptionPane.ERROR_MESSAGE); >- } >- } >- } >- } >- } catch (Throwable registry) { >- } >- } > > if (currentVersion != null > && currentVersion.compareTo(new Version(2, 71, false)) < 0) { >--- src/tvbrowser/ui/settings/StartupSettingsTab.java.orig 2018-03-18 12:16:33.610133908 +0100 >+++ src/tvbrowser/ui/settings/StartupSettingsTab.java 2018-03-18 12:17:09.834132734 +0100 >@@ -47,8 +47,6 @@ import com.jgoodies.forms.layout.CellCon > import com.jgoodies.forms.layout.FormLayout; > import com.jgoodies.forms.layout.RowSpec; > >-import ca.beq.util.win32.registry.RegistryKey; >-import ca.beq.util.win32.registry.RootKey; > import tvbrowser.TVBrowser; > import tvbrowser.core.Settings; > import tvbrowser.core.icontheme.IconLoader; >@@ -161,41 +159,6 @@ public class StartupSettingsTab implemen > .getBoolean()); > mSettingsPn.add(mShowStartScreenChB, cc.xy(2, ++y)); > >- if (System.getProperty("os.name").toLowerCase().startsWith("windows") && !TVBrowser.isTransportable()) { >- layout.insertRow(++y, RowSpec.decode("1dlu")); >- layout.insertRow(++y, RowSpec.decode("pref")); >- >- try { >- RegistryKey shellFolders = new RegistryKey(RootKey.HKEY_CURRENT_USER, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders"); >- String path = shellFolders.getValue("Startup").getData().toString(); >- >- if(path == null || path.length() < 1 || !(new File(path)).isDirectory()) { >- throw new Exception(); >- } >- >- mLinkFileFile = new File(path,"TV-Browser.url"); >- >- try { >- mLinkFile = new LinkFile(mLinkFileFile); >- >- if(mLinkFileFile.isFile()) { >- try { >- if (!mLinkFile.hasTarget((new File("tvbrowser.exe")).getAbsoluteFile())) { >- createLink(mLinkFile); >- } >- }catch(Exception linkException) { >- mLinkFileFile.delete(); >- } >- } >- }catch(FileNotFoundException fe) {} >- >- mAutostartWithWindows = new JCheckBox(mLocalizer.msg("autostart","Start TV-Browser with Windows"), >- mLinkFileFile.isFile()); >- >- mSettingsPn.add(mAutostartWithWindows, cc.xy(2, y)); >- } catch (Throwable e) {e.printStackTrace();} >- } >- > y++; > > mSettingsPn.add(createRefreshPanel(), cc.xyw(1,++y,5)); >@@ -575,4 +538,4 @@ public class StartupSettingsTab implemen > return super.equals(obj); > } > } >-} >\ Kein Zeilenumbruch am Dateiende. >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 635366
:
527232
|
527234
| 527236